summaryrefslogtreecommitdiff
path: root/gi/pygi-value.h
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2017-07-12 08:40:27 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2017-07-12 08:40:31 +0900
commit8e71f268f3e991f68355f535b399cc8cb51fc95d (patch)
tree25009f8fe0fd468c5e5f8e32aa6e8ad03d914a3c /gi/pygi-value.h
parent9e05f0b92b0d6cde13d729955af7b911f79ba833 (diff)
downloadpygobject2-8e71f268f3e991f68355f535b399cc8cb51fc95d.tar.gz
pygobject2-8e71f268f3e991f68355f535b399cc8cb51fc95d.tar.bz2
pygobject2-8e71f268f3e991f68355f535b399cc8cb51fc95d.zip
Imported Upstream version 3.11.5
Change-Id: I5b5a3e71a92ea82cb98feb0c11f00c68804188dc Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'gi/pygi-value.h')
-rw-r--r--gi/pygi-value.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/gi/pygi-value.h b/gi/pygi-value.h
new file mode 100644
index 0000000..544da3c
--- /dev/null
+++ b/gi/pygi-value.h
@@ -0,0 +1,44 @@
+/* -*- Mode: C; c-basic-offset: 4 -*-
+ * vim: tabstop=4 shiftwidth=4 expandtab
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef __PYGI_VALUE_H__
+#define __PYGI_VALUE_H__
+
+#include <glib-object.h>
+#include <girepository.h>
+#include <Python.h>
+
+G_BEGIN_DECLS
+
+GIArgument _pygi_argument_from_g_value(const GValue *value,
+ GITypeInfo *type_info);
+
+int pyg_value_from_pyobject(GValue *value, PyObject *obj);
+int pyg_value_from_pyobject_with_error(GValue *value, PyObject *obj);
+PyObject *pyg_value_as_pyobject(const GValue *value, gboolean copy_boxed);
+int pyg_param_gvalue_from_pyobject(GValue* value,
+ PyObject* py_obj,
+ const GParamSpec* pspec);
+PyObject *pyg_param_gvalue_as_pyobject(const GValue* gvalue,
+ gboolean copy_boxed,
+ const GParamSpec* pspec);
+PyObject *pyg_strv_from_gvalue(const GValue *value);
+int pyg_strv_to_gvalue(GValue *value, PyObject *obj);
+
+G_END_DECLS
+
+#endif /* __PYGI_VALUE_H__ */