X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=sigrok-cli.h;h=443d4f6c629cd37b118b5c5879e7c2d68619c6ac;hp=ac866696eeed35660469060c777c4269cb4555c4;hb=e29b500cc4292c530ba928961f8f456d668ac6dc;hpb=3d24ca2da53f03585db396e67252a7dcd9e67e6e diff --git a/sigrok-cli.h b/sigrok-cli.h index ac86669..443d4f6 100644 --- a/sigrok-cli.h +++ b/sigrok-cli.h @@ -20,18 +20,19 @@ #ifndef SIGROK_CLI_SIGROK_CLI_H #define SIGROK_CLI_SIGROK_CLI_H -#include "config.h" +#include #ifdef HAVE_SRD /* First, so we avoid a _POSIX_C_SOURCE warning. */ #include #endif #include -#define DEFAULT_OUTPUT_FORMAT "bits:width=64" +#define DEFAULT_OUTPUT_FORMAT_FILE "srzip" +#define DEFAULT_OUTPUT_FORMAT_NOFILE "bits:width=64" #define SAVE_CHUNK_SIZE (512 * 1024) /* main.c */ -struct sr_context *sr_ctx; +extern struct sr_context *sr_ctx; int select_channels(struct sr_dev_inst *sdi); gboolean config_key_has_cap(struct sr_dev_driver *driver, const struct sr_dev_inst *sdi, struct sr_channel_group *cg,