dbus/dbus dbus-glib.h,1.12,1.13

Murray Cumming murrayc at freedesktop.org
Sun Jun 19 08:31:27 PDT 2005


Update of /cvs/dbus/dbus/dbus
In directory gabe:/tmp/cvs-serv10247/dbus

Modified Files:
	dbus-glib.h 
Log Message:
2005-06-18  Murray Cumming  <murrayc at murrayc.com>

        * dbus/dbus-glib.h:
        * glib/dbus-gobject.c:
        * glib/dbus-gproxy.c:
        * glib/dbus-gvalue.c: Predeclare structs as
        typedef struct _Something Something instead of
        typedef struct Something Something, so we can
        redeclare the prototypes. Other GNOME libraries
        do this already.


Index: dbus-glib.h
===================================================================
RCS file: /cvs/dbus/dbus/dbus/dbus-glib.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- dbus-glib.h	17 Jun 2005 14:29:48 -0000	1.12
+++ dbus-glib.h	19 Jun 2005 15:31:25 -0000	1.13
@@ -35,15 +35,15 @@
 /**
  * Convert to DBusConnection with dbus_g_connection_get_connection() in dbus-glib-lowlevel.h
  */
-typedef struct DBusGConnection DBusGConnection;
+typedef struct _DBusGConnection DBusGConnection;
 /**
  * Convert to DBusMessage with dbus_g_message_get_message() in dbus-glib-lowlevel.h
  */
-typedef struct DBusGMessage DBusGMessage;
+typedef struct _DBusGMessage DBusGMessage;
 /**
  * Deliberately not possible to convert to DBusPendingCall
  */
-typedef struct DBusGPendingCall DBusGPendingCall;
+typedef struct _DBusGPendingCall DBusGPendingCall;
 
 typedef void (* DBusGPendingCallNotify) (DBusGPendingCall *pending,
                                          void             *user_data);
@@ -85,15 +85,15 @@
 DBusGConnection* dbus_g_bus_get     (DBusBusType   type,
                                      GError      **error);
 
-typedef struct DBusGObjectInfo DBusGObjectInfo;
-typedef struct DBusGMethodInfo DBusGMethodInfo;
+typedef struct _DBusGObjectInfo DBusGObjectInfo;
+typedef struct _DBusGMethodInfo DBusGMethodInfo;
 
 /**
  * Object typically generated by dbus-binding-tool that
  * stores a mapping from introspection data to a
  * function pointer for a C method to be invoked.
  */
-struct DBusGMethodInfo
+struct _DBusGMethodInfo
 {
   GCallback                 function;    /**< C method to invoke */
   GClosureMarshal           marshaller;  /**< Marshaller to invoke method */
@@ -104,7 +104,7 @@
  * Introspection data for a GObject, normally autogenerated by
  * a tool such as dbus-binding-tool.
  */
-struct DBusGObjectInfo
+struct _DBusGObjectInfo
 {
   int   format_version;         /**< Allows us to change the rest of this struct
                                  *   by adding DBusGObjectInfo2, DBusGObjectInfo3, etc.
@@ -130,8 +130,8 @@
  * Generic recursive value
  */
 
-typedef struct DBusGValueIterator DBusGValueIterator;
-struct DBusGValueIterator
+typedef struct _DBusGValueIterator DBusGValueIterator;
+struct _DBusGValueIterator
 {
   void *dummy1;         /**< Don't use this */
   void *dummy2;         /**< Don't use this */
@@ -151,7 +151,7 @@
   void *pad5;           /**< Don't use this */
 };
 
-typedef struct DBusGValue DBusGValue;
+typedef struct _DBusGValue DBusGValue;
 
 #ifdef DBUS_COMPILATION
 #include "glib/dbus-gtype-specialized.h"
@@ -202,8 +202,8 @@
 						     guint            n_types,
 						     const GType*     types);
 
-typedef struct DBusGProxy       DBusGProxy;
-typedef struct DBusGProxyClass  DBusGProxyClass;
+typedef struct _DBusGProxy       DBusGProxy;
+typedef struct _DBusGProxyClass  DBusGProxyClass;
 
 #define DBUS_TYPE_G_PROXY              (dbus_g_proxy_get_type ())
 #define DBUS_G_PROXY(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), DBUS_TYPE_G_PROXY, DBusGProxy))
@@ -272,7 +272,7 @@
 						      GType              first_arg_type,
 						      ...);
 
-typedef struct DBusGMethodInvocation DBusGMethodInvocation;
+typedef struct _DBusGMethodInvocation DBusGMethodInvocation;
 
 void dbus_g_method_return (DBusGMethodInvocation *context, ...);
 



More information about the dbus-commit mailing list