X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=sigrokdecode.h.in;h=7a435bc867c9e388b2b178cfc5bba7b158dd75cd;hp=58fb056436406c11bdc3e5550be7463a8ab1acd7;hb=abbbd2ba56a70b9978c4f31a4988102364807997;hpb=03a66522d5aef7b49fbf63e4da475c4ab8b1fe2e diff --git a/sigrokdecode.h.in b/sigrokdecode.h.in index 58fb056..7a435bc 100644 --- a/sigrokdecode.h.in +++ b/sigrokdecode.h.in @@ -35,32 +35,32 @@ extern "C" { */ /** The libsigrokdecode package 'major' version number. */ -#define LIBSIGROKDECODE_MAJOR_VERSION @LIBSIGROKDECODE_MAJOR_VERSION@ +#define SRD_PACKAGE_VERSION_MAJOR @SRD_PACKAGE_VERSION_MAJOR@ /** The libsigrokdecode package 'minor' version number. */ -#define LIBSIGROKDECODE_MINOR_VERSION @LIBSIGROKDECODE_MINOR_VERSION@ +#define SRD_PACKAGE_VERSION_MINOR @SRD_PACKAGE_VERSION_MINOR@ /** The libsigrokdecode package 'micro' version number. */ -#define LIBSIGROKDECODE_MICRO_VERSION @LIBSIGROKDECODE_MICRO_VERSION@ +#define SRD_PACKAGE_VERSION_MICRO @SRD_PACKAGE_VERSION_MICRO@ /** The libsigrokdecode package version ("major.minor.micro") as string. */ -#define LIBSIGROKDECODE_VERSION_STRING "@LIBSIGROKDECODE_VERSION@" +#define SRD_PACKAGE_VERSION_STRING "@SRD_PACKAGE_VERSION@" /* * Library/libtool version macros (can be used for conditional compilation). */ /** The libsigrokdecode libtool 'current' version number. */ -#define LIBSIGROKDECODE_LT_CURRENT @LIBSIGROKDECODE_LT_CURRENT@ +#define SRD_LIB_VERSION_CURRENT @SRD_LIB_VERSION_CURRENT@ /** The libsigrokdecode libtool 'revision' version number. */ -#define LIBSIGROKDECODE_LT_REVISION @LIBSIGROKDECODE_LT_REVISION@ +#define SRD_LIB_VERSION_REVISION @SRD_LIB_VERSION_REVISION@ /** The libsigrokdecode libtool 'age' version number. */ -#define LIBSIGROKDECODE_LT_AGE @LIBSIGROKDECODE_LT_AGE@ +#define SRD_LIB_VERSION_AGE @SRD_LIB_VERSION_AGE@ /** The libsigrokdecode libtool version ("current:revision:age") as string. */ -#define LIBSIGROKDECODE_LT_VERSION_STRING "@LIBSIGROKDECODE_LT_VERSION@" +#define SRD_LIB_VERSION_STRING "@SRD_LIB_VERSION@" /* * Status/error codes returned by libsigrokdecode functions. @@ -136,7 +136,7 @@ struct srd_decoder { /** The (short) decoder name. Must be non-NULL. */ char *name; - /** The (long) decoder name. May be NULL. */ + /** The (long) decoder name. Must be non-NULL. */ char *longname; /** A (short, one-line) description of the decoder. Must be non-NULL. */ @@ -239,10 +239,10 @@ typedef struct { SRD_API int srd_init(const char *path); SRD_API int srd_exit(void); -SRD_API int srd_inst_options_set(struct srd_decoder_inst *di, - GHashTable *options); -SRD_API int srd_inst_probes_set(struct srd_decoder_inst *di, - GHashTable *probes); +SRD_API int srd_inst_option_set(struct srd_decoder_inst *di, + GHashTable *options); +SRD_API int srd_inst_probe_set_all(struct srd_decoder_inst *di, + GHashTable *probes); SRD_API struct srd_decoder_inst *srd_inst_new(const char *id, GHashTable *options); SRD_API int srd_inst_stack(struct srd_decoder_inst *di_from, @@ -252,8 +252,8 @@ SRD_API int srd_session_start(int num_probes, int unitsize, uint64_t samplerate); SRD_API int srd_session_send(uint64_t start_samplenum, const uint8_t *inbuf, uint64_t inbuflen); -SRD_API int srd_register_callback(int output_type, - srd_pd_output_callback_t cb, void *cb_data); +SRD_API int srd_pd_output_callback_add(int output_type, + srd_pd_output_callback_t cb, void *cb_data); /*--- decoder.c -------------------------------------------------------------*/ @@ -263,7 +263,7 @@ SRD_API int srd_decoder_load(const char *name); SRD_API int srd_decoder_unload(struct srd_decoder *dec); SRD_API int srd_decoder_load_all(void); SRD_API int srd_decoder_unload_all(void); -SRD_API char *srd_decoder_doc(const struct srd_decoder *dec); +SRD_API char *srd_decoder_doc_get(const struct srd_decoder *dec); /*--- log.c -----------------------------------------------------------------*/