summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Taylor <rob.taylor@codethink.co.uk>2007-08-15 20:58:14 +0100
committerRob Taylor <rob.taylor@codethink.co.uk>2007-08-15 20:58:14 +0100
commit18c21ca0a0ba3a662f17249a5bdd9ce040594e72 (patch)
tree6b108d2ae3f620a7e0dc58b33c36a61091e2b592
parent268a4c0485cb0b9ec7ce89f1e72a2fede65c909f (diff)
prefix struct names with underscore in public api
In preparation for having to cope with gtk-doc's limitations, prefix struct names with underscore in ohm-plugin.h.
-rw-r--r--ohmd/ohm-plugin-internal.h8
-rw-r--r--ohmd/ohm-plugin.h12
2 files changed, 11 insertions, 9 deletions
diff --git a/ohmd/ohm-plugin-internal.h b/ohmd/ohm-plugin-internal.h
index fb5d8f9..92c9bcb 100644
--- a/ohmd/ohm-plugin-internal.h
+++ b/ohmd/ohm-plugin-internal.h
@@ -33,10 +33,10 @@ G_BEGIN_DECLS
#define OHM_IS_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), OHM_TYPE_PLUGIN))
#define OHM_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), OHM_TYPE_PLUGIN, OhmPluginClass))
-typedef struct OhmPluginPrivate OhmPluginPrivate;
-typedef struct OhmPluginClass OhmPluginClass;
+typedef struct _OhmPluginPrivate OhmPluginPrivate;
+typedef struct _OhmPluginClass OhmPluginClass;
-struct OhmPlugin
+struct _OhmPlugin
{
GObject parent;
const OhmPluginDesc *desc;
@@ -48,7 +48,7 @@ struct OhmPlugin
OhmPluginPrivate *priv;
};
-struct OhmPluginClass
+struct _OhmPluginClass
{
GObjectClass parent_class;
};
diff --git a/ohmd/ohm-plugin.h b/ohmd/ohm-plugin.h
index 606acaa..382aeec 100644
--- a/ohmd/ohm-plugin.h
+++ b/ohmd/ohm-plugin.h
@@ -21,11 +21,13 @@
#ifndef __OHM_PLUGIN_H
#define __OHM_PLUGIN_H
-typedef struct OhmPlugin OhmPlugin;
-typedef struct OhmPluginDesc OhmPluginDesc;
-typedef struct OhmPluginKeyIdMap OhmPluginKeyIdMap;
+G_BEGIN_DECLS
-struct OhmPluginKeyIdMap {
+typedef struct _OhmPlugin OhmPlugin;
+typedef struct _OhmPluginDesc OhmPluginDesc;
+typedef struct _OhmPluginKeyIdMap OhmPluginKeyIdMap;
+
+struct _OhmPluginKeyIdMap {
const char *key_name;
gint local_key_id;
};
@@ -51,7 +53,7 @@ typedef enum {
* #OHM_PLUGIN_INTERESTED
* @padding: Padding for future expansion
*/
-struct OhmPluginDesc {
+struct _OhmPluginDesc {
const char *description;
const char *version;
const char *author;