X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=sigrokdecode.h;h=be3ab98e05d9929bf2b2864c29f5508557c40f57;hp=25fdb4d563b0d03d744166ca82ac71f1fb5ca67f;hb=31b82285e5ca1fbd6a33eaaaa95bf83862b69eb1;hpb=3cf4ed56626bf1b775d38e3b582bae2c607d44b2 diff --git a/sigrokdecode.h b/sigrokdecode.h index 25fdb4d..be3ab98 100644 --- a/sigrokdecode.h +++ b/sigrokdecode.h @@ -45,11 +45,21 @@ #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 *decodername, uint8_t *inbuf, - uint64_t inbuflen, uint8_t **outbuf, - uint64_t *outbuflen); +int sigrokdecode_run_decoder(const char *modulename, const char *decodername, + uint8_t *inbuf, uint64_t inbuflen, + uint8_t **outbuf, uint64_t *outbuflen); int sigrokdecode_shutdown(void); #endif