Add const keywords
authorRoss Burton <ross@openedhand.com>
Tue, 25 Oct 2005 15:57:13 +0000 (15:57 +0000)
committerRoss Burton <ross@openedhand.com>
Tue, 25 Oct 2005 15:57:13 +0000 (15:57 +0000)
ChangeLog
dbus/dbus-auth.c
dbus/dbus-server-unix.c
dbus/dbus-transport-unix.c
glib/dbus-gmain.c
glib/dbus-gobject.c

index 0a47a0b..d0d8e53 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2005-10-25  Ross Burton  <ross@openedhand.com>
 
+       * dbus/dbus-auth.c:
+       * dbus/dbus-server-unix.c:
+       * dbus/dbus-transport-unix.c:
+       * glib/dbus-gmain.c:
+       * glib/dbus-gobject.c:
+       Add some const keywords.
+
+2005-10-25  Ross Burton  <ross@openedhand.com>
+
        * doc/dbus-specification.xml:
        Document the NoReply annotation.
 
index ffa2037..8c45f62 100644 (file)
@@ -1832,7 +1832,7 @@ typedef struct {
   DBusAuthCommand command; /**< Corresponding enum */
 } DBusAuthCommandName;
 
-static DBusAuthCommandName auth_command_names[] = {
+static const DBusAuthCommandName auth_command_names[] = {
   { "AUTH",     DBUS_AUTH_COMMAND_AUTH },
   { "CANCEL",   DBUS_AUTH_COMMAND_CANCEL },
   { "DATA",     DBUS_AUTH_COMMAND_DATA },
index a72bccf..b962337 100644 (file)
@@ -232,7 +232,7 @@ unix_disconnect (DBusServer *server)
   HAVE_LOCK_CHECK (server);
 }
 
-static DBusServerVTable unix_vtable = {
+static const DBusServerVTable unix_vtable = {
   unix_finalize,
   unix_disconnect
 };
index f8af9c0..f88a45b 100644 (file)
@@ -1097,7 +1097,7 @@ unix_get_unix_fd (DBusTransport *transport,
   return TRUE;
 }
 
-static DBusTransportVTable unix_vtable = {
+static const DBusTransportVTable unix_vtable = {
   unix_finalize,
   unix_handle_watch,
   unix_disconnect,
index 4904588..1d845b8 100644 (file)
@@ -76,7 +76,7 @@ static gboolean message_queue_dispatch (GSource     *source,
                                         GSourceFunc  callback,
                                         gpointer     user_data);
 
-static GSourceFuncs message_queue_funcs = {
+static const GSourceFuncs message_queue_funcs = {
   message_queue_prepare,
   message_queue_check,
   message_queue_dispatch,
index 547a744..1463ae2 100644 (file)
@@ -1329,7 +1329,7 @@ gobject_message_function (DBusConnection  *connection,
   return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
 }
 
-static DBusObjectPathVTable gobject_dbus_vtable = {
+static const DBusObjectPathVTable gobject_dbus_vtable = {
   gobject_unregister_function,
   gobject_message_function,
   NULL