]> sigrok.org Git - libsigrokdecode.git/blobdiff - decode.c
Python decoders: Add more metadata.
[libsigrokdecode.git] / decode.c
index e8828d7e01da40f2c9b7477035a7e2619679ef98..9f8c03408113ed45216b206f853431340dd76b04 100644 (file)
--- a/decode.c
+++ b/decode.c
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
+#include "config.h"
 #include <sigrokdecode.h> /* First, so we avoid a _POSIX_C_SOURCE warning. */
 #include <stdio.h>
 #include <string.h>
 #include <dirent.h>
-#include <config.h>
 
 /* Re-define some string functions for Python >= 3.0. */
 #if PY_VERSION_HEX >= 0x03000000
@@ -390,7 +390,7 @@ static int srd_unload_all_decoders(void)
  *
  * @return SRD_OK upon success, a (negative) error code otherwise.
  */
-int srd_shutdown(void)
+int srd_exit(void)
 {
        /* Unload/free all decoders, and then the list of decoders itself. */
        /* TODO: Error handling. */