]>
sigrok.org Git - sigrok-cli.git/log
Bert Vermeulen [Thu, 31 May 2012 21:57:16 +0000 (23:57 +0200)]
cli: strip off PD arguments before selecting for annotation
This fixes the bug where -A didn't work if the PD in question had arguments.
Joel Holdsworth [Mon, 7 May 2012 12:57:43 +0000 (13:57 +0100)]
sr: Made hwcap const
Bert Vermeulen [Thu, 17 May 2012 01:17:28 +0000 (03:17 +0200)]
cli: support for SR_HWCAP_COUPLING
Bert Vermeulen [Thu, 17 May 2012 00:03:46 +0000 (02:03 +0200)]
cli: support SR_HWCAP_VDIV and the new SR_T_RATIONAL_VOLT type
Bert Vermeulen [Wed, 16 May 2012 00:08:20 +0000 (02:08 +0200)]
cli: use SR_T_RATIONAL_PERIOD
Bert Vermeulen [Tue, 15 May 2012 20:40:23 +0000 (22:40 +0200)]
cli: support for SR_HWCAP_FILTER and SR_DI_FILTERS
Bert Vermeulen [Tue, 15 May 2012 18:54:10 +0000 (20:54 +0200)]
cli: parameter support various new HWCAPs and types
Bert Vermeulen [Mon, 30 Apr 2012 17:58:21 +0000 (19:58 +0200)]
cli: support for frames, and limiting capture by number of frames.
Bert Vermeulen [Sun, 22 Apr 2012 22:27:30 +0000 (00:27 +0200)]
cli: use SR_DF_META_*, support for analog packets
Uwe Hermann [Wed, 30 May 2012 20:43:50 +0000 (22:43 +0200)]
cli: configure.ac: Bump version number to 0.3.1.
Uwe Hermann [Wed, 30 May 2012 20:15:29 +0000 (22:15 +0200)]
cli: Constify a few char *pointers.
Uwe Hermann [Wed, 30 May 2012 19:57:44 +0000 (21:57 +0200)]
cli: Update NEWS in preparation of 0.3.1 the release.
Uwe Hermann [Tue, 29 May 2012 22:18:59 +0000 (00:18 +0200)]
cli: Cosmetic fix for --help output.
Uwe Hermann [Tue, 29 May 2012 20:35:38 +0000 (22:35 +0200)]
cli: Fix compile error.
Uwe Hermann [Tue, 29 May 2012 18:55:22 +0000 (20:55 +0200)]
cli: Make --protocol-decoder-annotations plural.
This option supports (will support) multiple annotations from multiple
PDs, as well as multiple annotation formats per PD, so use plural.
Uwe Hermann [Tue, 29 May 2012 18:48:54 +0000 (20:48 +0200)]
cli: Add -A (alias for --protocol-decoder-annotation).
Uwe Hermann [Tue, 29 May 2012 18:39:57 +0000 (20:39 +0200)]
cli: manpage cosmetics, updates.
Uwe Hermann [Tue, 29 May 2012 18:30:15 +0000 (20:30 +0200)]
sr/srd/cli/gtk: ChangeLog -> MAINTAINERCLEANFILES.
If the (generated) ChangeLog file is marked for DISTCLEANFILES, it'll be
removed whenever "make distclean" is called (and is then gone forever if
you use the tarballs, for example).
Uwe Hermann [Mon, 28 May 2012 22:23:33 +0000 (00:23 +0200)]
cli: Output which file format was autodetected.
Bert Vermeulen [Tue, 29 May 2012 14:06:40 +0000 (16:06 +0200)]
document --protocol-decoder-annotation, and note PD stack is optional.
Bert Vermeulen [Tue, 29 May 2012 13:44:17 +0000 (15:44 +0200)]
cli: factor out output format setup
main() is now clean.
Bert Vermeulen [Tue, 29 May 2012 12:50:02 +0000 (14:50 +0200)]
cli: option to specify which annotation(s) to show
Also factor out PD stack setup, and remove redundant error messages.
Bert Vermeulen [Tue, 29 May 2012 10:38:36 +0000 (12:38 +0200)]
cli: stop immediately if SRD PD registration fails
Bert Vermeulen [Tue, 29 May 2012 10:12:51 +0000 (12:12 +0200)]
cli: loose string comparison helper
Bert Vermeulen [Tue, 29 May 2012 09:36:31 +0000 (11:36 +0200)]
cli: always show G_LOG_LEVEL_CRITICAL messages
Bert Vermeulen [Mon, 28 May 2012 14:57:33 +0000 (16:57 +0200)]
cli: cosmetics
Bert Vermeulen [Sun, 27 May 2012 17:30:30 +0000 (19:30 +0200)]
cli: halt session if SRD session fails to initialize
Bert Vermeulen [Sat, 26 May 2012 02:54:34 +0000 (04:54 +0200)]
cli: only output module or PD goes to stdout, everything else to stderr
Bert Vermeulen [Tue, 22 May 2012 23:35:23 +0000 (01:35 +0200)]
cli: removed obsolete debugging, setup for proper stderr logging
Bert Vermeulen [Tue, 22 May 2012 18:16:56 +0000 (20:16 +0200)]
cli: no need to specify stacking order if it's the same as the PD list
Pekka Nikander [Fri, 11 May 2012 16:23:21 +0000 (19:23 +0300)]
sr/srd/cli: Fix compiling with Homebrew.
Add ACLOCAL_DIR setting and AM_PROG_AR macro for compiling with Homebrew
under Mac OS X.
Applies essentially the same change to
{libsigrok,libsigrokdecode,sigrok-cli}/{autogen.sh,configure.ac}
It may be that the same fix is needed for the other autogen.sh and/or
configure.ac files, but that hasn't been tested and therefore not in
this commit.
Uwe Hermann [Wed, 9 May 2012 16:59:17 +0000 (18:59 +0200)]
cli: Print required/optional probes info.
When running 'sigrok-cli -a uart' (for example), we now additionally
print which required/optional probes the decoder needs.
Uwe Hermann [Tue, 8 May 2012 22:06:01 +0000 (00:06 +0200)]
cli: -V: Print protocol description upon "-l 3" or higher.
Thomas Jarosch [Fri, 4 May 2012 08:18:22 +0000 (10:18 +0200)]
Fix bracket placing
Make it consistent with the rest of the code
Signed-off-by: Thomas Jarosch <redacted>
Uwe Hermann [Tue, 17 Apr 2012 22:02:54 +0000 (00:02 +0200)]
cli: Generate ChangeLog upon 'make dist'.
Uwe Hermann [Mon, 16 Apr 2012 22:11:25 +0000 (00:11 +0200)]
cli: New 0.3.0 release.
Document the major user-visible changes in the NEWS file.
Uwe Hermann [Mon, 16 Apr 2012 19:49:05 +0000 (21:49 +0200)]
cli: Show sr/srd versions determined at run-time.
Uwe Hermann [Sat, 14 Apr 2012 16:50:22 +0000 (18:50 +0200)]
cli: NEWS: Add 0.1.0/0.2.0 release docs.
Uwe Hermann [Sat, 7 Apr 2012 16:15:34 +0000 (18:15 +0200)]
cli: Add (almost) empty NEWS file.
Uwe Hermann [Sat, 7 Apr 2012 16:14:39 +0000 (18:14 +0200)]
sr/srd: Use/fix SR(D)_MAX_NUM_PROBES.
Uwe Hermann [Wed, 28 Mar 2012 18:00:13 +0000 (20:00 +0200)]
sr: out: Use uint8_t (not char) for buffers.
Uwe Hermann [Sun, 25 Mar 2012 12:49:11 +0000 (14:49 +0200)]
srd/cli/qt: Some more API consistency renames.
Uwe Hermann [Wed, 21 Mar 2012 18:58:56 +0000 (19:58 +0100)]
cli: Fix -V/-h output a bit.
Options and their defaults should not be documented there, but rather in
the manpage or such.
Uwe Hermann [Wed, 21 Mar 2012 17:40:25 +0000 (18:40 +0100)]
sr/cli/gtk/qt: Fix package version numbers / docs.
The next (and first) libsigrok release will be called 0.1.0.
The next (and first) libsigrokdecode release will be called 0.1.0.
The next sigrok-cli release will be called 0.3.0 (as we already had a 0.1
and 0.2 release of sigrok-cli; those did not yet use the libs, though).
sigrok-gtk and sigrok-qt didn't have any releases yet, so their version
numbers are set to 0.1.0.
Also, consistently use three numbers/digits for our version numbers.
Uwe Hermann [Tue, 20 Mar 2012 17:09:18 +0000 (18:09 +0100)]
sr/cli: s/patternmode/pattern/ in a few places.
Uwe Hermann [Tue, 20 Mar 2012 16:58:25 +0000 (17:58 +0100)]
srd/cli/qt: s/srd_session_feed/srd_session_send/.
Uwe Hermann [Sun, 18 Mar 2012 19:30:42 +0000 (20:30 +0100)]
cli: Same order for params in manpage and -h.
Uwe Hermann [Sun, 18 Mar 2012 19:24:31 +0000 (20:24 +0100)]
cli: manpage: Document -l, -a, and -s.
Also, update list of supporter input/output formats.
Uwe Hermann [Sun, 18 Mar 2012 13:55:14 +0000 (14:55 +0100)]
cli: Fix/update manpage a bit.
Uwe Hermann [Fri, 16 Mar 2012 14:25:53 +0000 (15:25 +0100)]
srd/cli/qt:s/decoders/decoder/ for consistency.
Uwe Hermann [Sun, 18 Mar 2012 13:33:02 +0000 (14:33 +0100)]
sr: Rename -f|--format to -O|--output-format.
This is done for consistency with the -I|--input-format option. We now have:
-i|--input-file
-o|--output-file
-I|--input-format
-O|--output-format
Uwe Hermann [Wed, 29 Feb 2012 21:32:34 +0000 (22:32 +0100)]
sr: Name all callback data 'cb_data'.
Uwe Hermann [Wed, 29 Feb 2012 18:56:15 +0000 (19:56 +0100)]
sr/cli/gtk/qt: s/hw/driver/ in some places.
Uwe Hermann [Wed, 29 Feb 2012 18:17:36 +0000 (19:17 +0100)]
sr: s/sr_dev_probe_name/sr_dev_probe_name_set/.
Uwe Hermann [Tue, 28 Feb 2012 22:52:30 +0000 (23:52 +0100)]
sr/cli/gtk/qt/: s/plugin/driver/.
Uwe Hermann [Mon, 27 Feb 2012 21:27:33 +0000 (22:27 +0100)]
sr: sr_samplerate_string: Allow 3.15Hz etc. as output.
This is required for some hardware, e.g. ChronoVu LA8, where
33.333333 MHz or 2.439024 MHz are valid samplerates. This is because the
hardware takes a sampleperiod (in nanoseconds) as input, not a
samplerate (in Hz).
Uwe Hermann [Wed, 22 Feb 2012 20:48:30 +0000 (21:48 +0100)]
sr: No need for dynamic hardware driver registration.
We don't need or allow run-time registration of hardware
drivers/plugins, they're added at compile-time.
Uwe Hermann [Wed, 22 Feb 2012 18:16:03 +0000 (19:16 +0100)]
cli/gtk/qt: nsis: Better installer filename.
Uwe Hermann [Wed, 22 Feb 2012 17:57:34 +0000 (18:57 +0100)]
cli: nsis: Hook up to "Add/remove programs".
Uwe Hermann [Sat, 18 Feb 2012 11:11:15 +0000 (12:11 +0100)]
sr: s/config_set/dev_config_set/.
This functions is per-device-instance, so use dev_ as prefix as with
the other ones.
Uwe Hermann [Fri, 17 Feb 2012 23:31:35 +0000 (00:31 +0100)]
sr/cli/gtk/qt: s/configuration/config/.
Uwe Hermann [Fri, 17 Feb 2012 23:17:18 +0000 (00:17 +0100)]
sr/cli/gtk: s/capability/hwcap/.
Uwe Hermann [Fri, 17 Feb 2012 22:55:27 +0000 (23:55 +0100)]
sr/cli/gtk: A few more s/instance/inst/.
Uwe Hermann [Fri, 17 Feb 2012 21:25:01 +0000 (22:25 +0100)]
sr/cli/gtk/qt: s/device/dev/ in many places.
Also, a few s/instance/inst/ occurences.
Bert Vermeulen [Wed, 15 Feb 2012 02:18:48 +0000 (03:18 +0100)]
sr: rename all sr_hwplugin(s)_* functions to sr_hw_*
Bert Vermeulen [Tue, 14 Feb 2012 02:43:28 +0000 (03:43 +0100)]
srd: rename public API functions to srd_thing_action format
Bert Vermeulen [Tue, 14 Feb 2012 02:28:53 +0000 (03:28 +0100)]
srd: don't load all protocol decoders unless we really need to.
Bert Vermeulen [Mon, 13 Feb 2012 23:23:51 +0000 (00:23 +0100)]
sr: rename more functions to sr_thing_action format
Also improved the interface to find capabilities in a hardware plugin.
Bert Vermeulen [Mon, 13 Feb 2012 14:23:16 +0000 (15:23 +0100)]
sr: rename hwplugin functions to sr_thing_action format
Bert Vermeulen [Mon, 13 Feb 2012 13:00:47 +0000 (14:00 +0100)]
sr: rename all sr_device_* functions to sr_dev_*
Bert Vermeulen [Mon, 13 Feb 2012 02:36:32 +0000 (03:36 +0100)]
sr: more API cleanup and documentation
Bert Vermeulen [Sun, 12 Feb 2012 03:07:22 +0000 (04:07 +0100)]
srd: extra module path can now optionally be passed to srd_init()
Also environment variable SIGROKDECODE_DIR, if present, is prepended
to the module path.
Uwe Hermann [Sat, 11 Feb 2012 21:09:18 +0000 (22:09 +0100)]
Rename 'void *' callback parameters to 'user_data'.
This is better, both for consistency reasons, and also because 'data' is
a bit too generic and might be confusing, especially since we have other
'data' fields in the code in various places.
Uwe Hermann [Sat, 11 Feb 2012 21:38:17 +0000 (22:38 +0100)]
srd: Every callback should have a 'void *' parameter.
This is required in various situations and for various lib users,
especially so GUIs which might want to pass specific info via this
mechanism.
Uwe Hermann [Sat, 11 Feb 2012 19:06:46 +0000 (20:06 +0100)]
Use g_try_malloc/g_free/g_strdup consistently.
Avoid plain malloc()/free() in sr/srd, especially in the API calls.
Also avoid g_malloc*() in favor of g_try_malloc*().
Use g_strdup() instead of strdup() so that we can use g_free()
consistently everywhere.
Exceptions: Stuff that is allocated via other libs (not using glib),
should also be properly free'd using the respective free-ing function
(instead of g_free()). Examples: Stuff allocated by libusb, libftdi, etc.
Also, use sr_err() instead of sr_warn() for actual errors. sr_warn() is
meant for non-fatal/uncritical warnings.
Bert Vermeulen [Sat, 11 Feb 2012 17:06:56 +0000 (18:06 +0100)]
srd: rename all instance to inst
Uwe Hermann [Wed, 8 Feb 2012 21:04:13 +0000 (22:04 +0100)]
sr: Implement proper logging framework.
This is pretty much identical to the current libsigrokdecode API/framework.
Uwe Hermann [Wed, 8 Feb 2012 18:52:43 +0000 (19:52 +0100)]
srd: More consistent log related function names.
Also, fix typos, constify some parameters, add more Doxygen comments.
Uwe Hermann [Wed, 8 Feb 2012 00:33:34 +0000 (01:33 +0100)]
cli: nsis: Fix copy-paste error.
Uwe Hermann [Wed, 8 Feb 2012 00:24:06 +0000 (01:24 +0100)]
cli: nsis: Start menu shortcut (opens a "DOS box").
Uwe Hermann [Tue, 7 Feb 2012 23:33:54 +0000 (00:33 +0100)]
Add missing logo icon files for Windows installers.
Uwe Hermann [Tue, 7 Feb 2012 23:25:24 +0000 (00:25 +0100)]
nsis: Install missing msys-1.0.dll and msys-z.dll.
Thanks John-Eric Kamps ("MockUp") for testing on a pristine
Windows 7 (64 bit).
Uwe Hermann [Tue, 7 Feb 2012 23:16:25 +0000 (00:16 +0100)]
nsis: Request admin privileges for Windows Vista and Windows 7.
Uwe Hermann [Mon, 6 Feb 2012 20:39:13 +0000 (21:39 +0100)]
nsis: One installer file per frontend.
There will be a sigrok-cli-installer-0.1.exe,
sigrok-gtk-installer-0.1.exe, and sigrok-qt-installer-0.1.exe,
for example.
Also, add some more .gitignore entries.
Uwe Hermann [Sat, 4 Feb 2012 09:41:30 +0000 (10:41 +0100)]
Project-wide consistent naming for #include guards.
Document the naming scheme in HACKING.
Uwe Hermann [Sat, 4 Feb 2012 09:10:43 +0000 (10:10 +0100)]
sr/cli/gtk: Remove analog left-overs from API.
This will come back in some form or another later, but for now
don't clutter the API with non-working stuff. Removing stuff from APIs
is not possible without breaking the API, adding stuff later is simpler.
Uwe Hermann [Sun, 5 Feb 2012 11:54:44 +0000 (12:54 +0100)]
autogen.sh: aclocal support for Windows XP/Vista/7.
Bert Vermeulen [Wed, 1 Feb 2012 02:03:30 +0000 (03:03 +0100)]
cli: cleaned up debug output
Anatoly Sokolov [Sun, 29 Jan 2012 12:56:06 +0000 (16:56 +0400)]
Add sr_device_get_info
Uwe Hermann [Sat, 28 Jan 2012 20:26:56 +0000 (21:26 +0100)]
Update/enforce/document our build requirements.
Bert Vermeulen [Fri, 27 Jan 2012 07:22:19 +0000 (08:22 +0100)]
cli: correctly map probes on every instance, not just the last one.
Bert Vermeulen [Wed, 25 Jan 2012 00:50:46 +0000 (01:50 +0100)]
cli: use new PD instance find function
Bert Vermeulen [Tue, 24 Jan 2012 02:50:33 +0000 (03:50 +0100)]
cli: minor code cleanups
Bert Vermeulen [Tue, 24 Jan 2012 01:04:14 +0000 (02:04 +0100)]
cli: when deciding which PD's output to show, use instance id
Bert Vermeulen [Mon, 23 Jan 2012 23:11:45 +0000 (00:11 +0100)]
cli: use , as a separator for PD stacks, like all other options.
Bert Vermeulen [Mon, 23 Jan 2012 03:52:13 +0000 (04:52 +0100)]
cli: if PDs fail, signal a proper session shutdown instead of abort.
Bert Vermeulen [Sun, 22 Jan 2012 02:30:33 +0000 (03:30 +0100)]
cli: minor cleanup
Anatoly Sokolov [Sat, 21 Jan 2012 14:34:11 +0000 (18:34 +0400)]
add SR_HWCAP_DEMO_DEVICE capability
Bert Vermeulen [Fri, 20 Jan 2012 21:26:47 +0000 (22:26 +0100)]
cli: configuring SRD probes no longer deletes them from the hash
Bert Vermeulen [Tue, 17 Jan 2012 02:38:07 +0000 (03:38 +0100)]
CLI: use the new per-PD option setting API