X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=sigrok-cli.h;h=443d4f6c629cd37b118b5c5879e7c2d68619c6ac;hp=897d5b496266575c3293b4817d21756816d8666f;hb=e29b500cc4292c530ba928961f8f456d668ac6dc;hpb=6f7b4c5d7eb49642f8221a85ee6987751fcd81ce diff --git a/sigrok-cli.h b/sigrok-cli.h index 897d5b4..443d4f6 100644 --- a/sigrok-cli.h +++ b/sigrok-cli.h @@ -20,17 +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 SAVE_CHUNK_SIZE 524288 +#define DEFAULT_OUTPUT_FORMAT_FILE "srzip" +#define DEFAULT_OUTPUT_FORMAT_NOFILE "bits:width=64" +#define SAVE_CHUNK_SIZE (512 * 1024) /* main.c */ +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,