From: unknown Date: Fri, 23 Apr 2010 16:49:17 +0000 (+0200) Subject: sigrokdecode.h: Add struct sigrokdecode_decoder_info. X-Git-Tag: libsigrokdecode-0.1.0~332 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=31b82285e5ca1fbd6a33eaaaa95bf83862b69eb1;p=libsigrokdecode.git sigrokdecode.h: Add struct sigrokdecode_decoder_info. --- diff --git a/sigrokdecode.h b/sigrokdecode.h index 4c30c34..be3ab98 100644 --- a/sigrokdecode.h +++ b/sigrokdecode.h @@ -45,6 +45,16 @@ #define SIGROKDECODE_ERR -1 /* Generic/unspecified error */ #define SIGROKDECODE_ERR_MALLOC -2 /* Malloc/calloc/realloc error */ +/* TODO: Documentation. */ +struct sigrokdecode_decoder_info { + char *id; + char *name; + char *description; + char *function; + char *inputformats; /* FIXME: Should be a list. */ + char *outputformats; /* FIXME: Should be a list. */ +}; + int sigrokdecode_init(void); int sigrokdecode_load_decoder_file(const char *name); int sigrokdecode_run_decoder(const char *modulename, const char *decodername,