diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2011-01-15 02:37:51 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2011-01-15 02:53:29 +0100 |
commit | 871d21e2555c345350ec951f1639b4a75dbd4fea (patch) | |
tree | 7a8aa181bb8101b31896c993217234b8dc47021f /sigrokdecode.h | |
parent | f301bde35eda4b33218d947243da33ef11d52d47 (diff) | |
download | libsigrokdecode-871d21e2555c345350ec951f1639b4a75dbd4fea.tar.gz libsigrokdecode-871d21e2555c345350ec951f1639b4a75dbd4fea.zip |
Don't expose libsigrokdecode's interal GSList.
Instead, add a libsigrokdecode_list_decoders() API call which gives you
the list of known protocol decoders.
Diffstat (limited to 'sigrokdecode.h')
-rw-r--r-- | sigrokdecode.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sigrokdecode.h b/sigrokdecode.h index ecd141a..8877611 100644 --- a/sigrokdecode.h +++ b/sigrokdecode.h @@ -49,9 +49,6 @@ #define SIGROKDECODE_ERR_PYTHON -4 /* Python C API error */ #define SIGROKDECODE_ERR_DECODERS_DIR -5 /* Protocol decoder path invalid */ -/* The list of loaded protocol decoders. */ -GSList *list_pds; - /* TODO: Documentation. */ struct sigrokdecode_decoder { char *id; @@ -66,6 +63,7 @@ struct sigrokdecode_decoder { }; int sigrokdecode_init(void); +GSList *sigrokdecode_list_decoders(void); int sigrokdecode_load_decoder(const char *name, struct sigrokdecode_decoder **dec); int sigrokdecode_run_decoder(struct sigrokdecode_decoder *dec, uint8_t *inbuf, uint64_t inbuflen, |