summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--decode.c10
-rw-r--r--sigrokdecode.h3
2 files changed, 8 insertions, 5 deletions
diff --git a/decode.c b/decode.c
index 50b87b4..fed9fa7 100644
--- a/decode.c
+++ b/decode.c
@@ -365,15 +365,17 @@ int srd_instance_set_probe(struct srd_decoder_instance *di,
}
int srd_instance_start(struct srd_decoder_instance *di,
- const char *driver, int unitsize, uint64_t starttime)
+ const char *driver, int unitsize, uint64_t starttime,
+ uint64_t samplerate)
{
PyObject *py_res;
if (!(py_res = PyObject_CallMethod(di->py_instance, "start",
- "{s:s,s:i,s:d}",
+ "{s:s,s:l,s:l,s:l}",
"driver", driver,
- "unitsize", unitsize,
- "starttime", starttime))) {
+ "unitsize", (long)unitsize,
+ "starttime", (long)starttime,
+ "samplerate", (long)samplerate))) {
if (PyErr_Occurred())
PyErr_Print(); /* Returns void. */
diff --git a/sigrokdecode.h b/sigrokdecode.h
index abc3baa..27f2734 100644
--- a/sigrokdecode.h
+++ b/sigrokdecode.h
@@ -109,7 +109,8 @@ struct srd_decoder_instance *srd_instance_new(const char *id);
int srd_instance_set_probe(struct srd_decoder_instance *di,
const char *probename, int num);
int srd_instance_start(struct srd_decoder_instance *di,
- const char *driver, int unitsize, uint64_t starttime);
+ const char *driver, int unitsize, uint64_t starttime,
+ uint64_t samplerate);
int srd_exit(void);
#ifdef __cplusplus