From 55c3c5f4b9d38b85fae2c39a8a6150b4c50b1bdb Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Thu, 9 Feb 2012 19:11:53 +0100 Subject: srd: Add/use SRD_API/SRD_PRIV macros. This is not yet finished, more things should be made private. --- util.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'util.c') 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; -- cgit v1.2.3-70-g09d2