X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=util.c;h=5f186398a7697141c1d7acee44f34f019acddd96;hp=18b316e66cfe80b6811bdc8290958ce7c27c8d45;hb=a33a0e3bd59214cc4ddb021389f5c2ad91134587;hpb=c9bfccc6347e05e6faba6f27fe0e50a7d55f531c diff --git a/util.c b/util.c index 18b316e..5f18639 100644 --- a/util.c +++ b/util.c @@ -33,7 +33,7 @@ * @return SRD_OK upon success, a (negative) error code otherwise. * The 'outstr' argument points to a malloc()ed string upon success. */ -int py_attr_as_str(PyObject *py_obj, const char *attr, char **outstr) +SRD_PRIV int py_attr_as_str(PyObject *py_obj, const char *attr, char **outstr) { PyObject *py_str; int ret; @@ -73,7 +73,8 @@ int py_attr_as_str(PyObject *py_obj, const char *attr, char **outstr) * @return SRD_OK upon success, a (negative) error code otherwise. * The 'outstr' argument points to a malloc()ed string upon success. */ -int py_dictitem_as_str(PyObject *py_obj, const char *key, char **outstr) +SRD_PRIV int py_dictitem_as_str(PyObject *py_obj, const char *key, + char **outstr) { PyObject *py_value; int ret; @@ -110,7 +111,7 @@ int py_dictitem_as_str(PyObject *py_obj, const char *key, char **outstr) * @return SRD_OK upon success, a (negative) error code otherwise. * The 'outstr' argument points to a malloc()ed string upon success. */ -int py_str_as_str(PyObject *py_str, char **outstr) +SRD_PRIV int py_str_as_str(PyObject *py_str, char **outstr) { PyObject *py_encstr; int ret; @@ -163,7 +164,7 @@ err_out: * @return SRD_OK upon success, a (negative) error code otherwise. * The 'outstr' argument points to a malloc()ed char ** upon success. */ -int py_strlist_to_char(PyObject *py_strlist, char ***outstr) +SRD_PRIV int py_strlist_to_char(PyObject *py_strlist, char ***outstr) { PyObject *py_str; int list_len, i;