]> sigrok.org Git - sigrok-cli.git/blobdiff - sigrok-cli.h
show: add support for -i <fn> --show, provide details on input stream
[sigrok-cli.git] / sigrok-cli.h
index c71586a1badbb0aabecf454ac697a847bd11c509..37746e3b8b25c3a38d09ecbe0b2e5fa22c7a0cfc 100644 (file)
@@ -58,6 +58,20 @@ GSList *device_scan(void);
 struct sr_channel_group *select_channel_group(struct sr_dev_inst *sdi);
 
 /* session.c */
+struct df_arg_desc {
+       struct sr_session *session;
+       int do_props;
+       struct input_stream_props {
+               uint64_t samplerate;
+               GSList *channels;
+               const struct sr_channel *first_analog_channel;
+               size_t unitsize;
+               uint64_t sample_count_logic;
+               uint64_t sample_count_analog;
+               uint64_t frame_count;
+               uint64_t triggered;
+       } props;
+};
 void datafeed_in(const struct sr_dev_inst *sdi,
                const struct sr_datafeed_packet *packet, void *cb_data);
 int opt_to_gvar(char *key, char *value, struct sr_config *src);
@@ -65,7 +79,7 @@ int set_dev_options(struct sr_dev_inst *sdi, GHashTable *args);
 void run_session(void);
 
 /* input.c */
-void load_input_file(void);
+void load_input_file(gboolean do_props);
 
 /* decode.c */
 #ifdef HAVE_SRD
@@ -99,6 +113,7 @@ extern gboolean opt_list_supported;
 extern gboolean opt_list_supported_wiki;
 extern gint opt_loglevel;
 extern gboolean opt_scan_devs;
+extern gboolean opt_dont_scan;
 extern gboolean opt_wait_trigger;
 extern gchar *opt_input_file;
 extern gchar *opt_output_file;