]> sigrok.org Git - libsigrokdecode.git/blobdiff - controller.c
srd: Add .gitignore file.
[libsigrokdecode.git] / controller.c
index 4db4ee8543c174b4e09a85e5d577978fed599906..565bc0ae19afeb665895770c909cc23e654a47a2 100644 (file)
@@ -119,8 +119,9 @@ SRD_API int srd_exit(void)
 {
        srd_dbg("Exiting libsigrokdecode.");
 
-       srd_decoders_unload_all();
+       srd_decoder_unload_all();
        g_slist_free(pd_list);
+       pd_list = NULL;
 
        /* Py_Finalize() returns void, any finalization errors are ignored. */
        Py_Finalize();
@@ -151,7 +152,7 @@ SRD_PRIV int add_modulepath(const char *path)
        wchar_t *wc_new_path;
        char *item;
 
-       srd_dbg("adding %s to module path", path);
+       srd_dbg("Adding '%s' to module path.", path);
 
        new_path = g_string_sized_new(256);
        g_string_assign(new_path, g_strdup(path));
@@ -740,7 +741,7 @@ SRD_API int srd_session_start(int num_probes, int unitsize, uint64_t samplerate)
 }
 
 /**
- * Feed a chunk of logic sample data to a running decoder session.
+ * Send a chunk of logic sample data to a running decoder session.
  *
  * @param start_samplenum The sample number of the first sample in this chunk.
  * @param inbuf Pointer to sample data.
@@ -748,7 +749,7 @@ SRD_API int srd_session_start(int num_probes, int unitsize, uint64_t samplerate)
  *
  * @return SRD_OK upon success, a (negative) error code otherwise.
  */
-SRD_API int srd_session_feed(uint64_t start_samplenum, const uint8_t *inbuf,
+SRD_API int srd_session_send(uint64_t start_samplenum, const uint8_t *inbuf,
                             uint64_t inbuflen)
 {
        GSList *d;