* 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
if ((r = h_str(py_res, py_func, py_mod, "name", &(d->name))) < 0)
return r;
+ if ((r = h_str(py_res, py_func, py_mod, "longname",
+ &(d->longname))) < 0)
+ return r;
+
if ((r = h_str(py_res, py_func, py_mod, "desc", &(d->desc))) < 0)
return r;
+ if ((r = h_str(py_res, py_func, py_mod, "longdesc",
+ &(d->longdesc))) < 0)
+ return r;
+
+ if ((r = h_str(py_res, py_func, py_mod, "author", &(d->author))) < 0)
+ return r;
+
+ if ((r = h_str(py_res, py_func, py_mod, "email", &(d->email))) < 0)
+ return r;
+
+ if ((r = h_str(py_res, py_func, py_mod, "license", &(d->license))) < 0)
+ return r;
+
d->py_mod = py_mod;
Py_XDECREF(py_res);
*
* @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. */