aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/python
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-05-27 22:29:19 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-05-27 22:29:19 +0800
commit948235c3d1076dbe6ed2e57a24c16a083bbd9f01 (patch)
tree4133b1adfd94d8f889ca7ad4ad851346518f4171 /plugins/python
parentcc3a98fc1ad5bb87aa7335f3de404ee7feee1541 (diff)
downloadgsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar
gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar.gz
gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar.bz2
gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar.lz
gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar.xz
gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar.zst
gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.zip
Prefer GLib basic types over C types.
Diffstat (limited to 'plugins/python')
-rw-r--r--plugins/python/python-plugin-loader.c20
-rw-r--r--plugins/python/python-plugin-loader.h8
2 files changed, 14 insertions, 14 deletions
diff --git a/plugins/python/python-plugin-loader.c b/plugins/python/python-plugin-loader.c
index ea9ab4bfb0..4d7ead37da 100644
--- a/plugins/python/python-plugin-loader.c
+++ b/plugins/python/python-plugin-loader.c
@@ -28,7 +28,7 @@
#define d(x)
-static void *epp_parent_class;
+static gpointer epp_parent_class;
typedef struct _EPluginPythonPrivate {
PyObject *pModule;
@@ -40,13 +40,13 @@ typedef struct _EPluginPythonPrivate {
#define epp ((EPluginPython *)ep)
-void * load_plugin_type_register_function (void *a, void *b);
+gpointer load_plugin_type_register_function (gpointer a, gpointer b);
-static char *
-get_xml_prop(xmlNodePtr node, const char *id)
+static gchar *
+get_xml_prop(xmlNodePtr node, const gchar *id)
{
- char *p = xmlGetProp(node, id);
- char *out = NULL;
+ gchar *p = xmlGetProp(node, id);
+ gchar *out = NULL;
if (p) {
out = g_strdup(p);
@@ -56,8 +56,8 @@ get_xml_prop(xmlNodePtr node, const char *id)
return out;
}
-static void *
-epp_invoke(EPlugin *ep, const char *name, void *data)
+static gpointer
+epp_invoke(EPlugin *ep, const gchar *name, gpointer data)
{
EPluginPythonPrivate *p = epp->priv;
PyObject *pModuleName, *pFunc;
@@ -168,8 +168,8 @@ epp_init(GObject *o)
(GDestroyNotify) NULL);
}
-void *
-load_plugin_type_register_function (void *a, void *b)
+gpointer
+load_plugin_type_register_function (gpointer a, gpointer b)
{
static GType type = 0;
diff --git a/plugins/python/python-plugin-loader.h b/plugins/python/python-plugin-loader.h
index 4f9656e119..4f31ddd5a7 100644
--- a/plugins/python/python-plugin-loader.h
+++ b/plugins/python/python-plugin-loader.h
@@ -33,16 +33,16 @@ struct _EPluginPython {
struct _EPluginPythonPrivate *priv;
- char *location; /* location */
- char *pClass; /* handler class */
- char *module_name;
+ gchar *location; /* location */
+ gchar *pClass; /* handler class */
+ gchar *module_name;
};
struct _EPluginPythonClass {
EPluginClass plugin_class;
};
-void *org_gnome_evolution_python_get_type(void *a, void *b);
+gpointer org_gnome_evolution_python_get_type(gpointer a, gpointer b);
#endif /* ! _ORG_GNOME_EVOLUTION_PYTHON_H */