gdbusactiongroup: Add prototype for g_dbus_action_group_sync()
authorColin Walters <walters@verbum.org>
Thu, 1 Nov 2012 23:43:02 +0000 (19:43 -0400)
committerColin Walters <walters@verbum.org>
Fri, 2 Nov 2012 13:03:52 +0000 (09:03 -0400)
Even private functions that are actually called across compilation
units should have prototypes.  For g_dbus_action_group_sync(), create
one in gdbusactiongroup-private.h

https://bugzilla.gnome.org/show_bug.cgi?id=687385

gio/Makefile.am
gio/gactiongroupexporter.c
gio/gapplicationimpl-dbus.c
gio/gdbusactiongroup-private.h [new file with mode: 0644]
gio/gdbusactiongroup.c

index cbafbf6684737907872bc8a697627737df4e5dce..4a445a37d358186a17543a7739f41c3e8396f34a 100644 (file)
@@ -174,6 +174,7 @@ application_sources = \
        gsimpleactiongroup.c                    \
        gremoteactiongroup.c                    \
        gactiongroupexporter.c                  \
+       gdbusactiongroup-private.h              \
        gdbusactiongroup.c                      \
        gaction.c                               \
        gsimpleaction.c                         \
index cc33d361a0af5f4f09ab08689af04a15dee883c5..c906344021a2d1026b7c1c8a4c21633780b0be04 100644 (file)
@@ -45,7 +45,7 @@
  * g_dbus_action_group_get() to obtain a #GDBusActionGroup.
  */
 
-G_GNUC_INTERNAL GVariant *
+static GVariant *
 g_action_group_describe_action (GActionGroup *action_group,
                                 const gchar  *name)
 {
index 1248d0f1da0a047e07c441f13aac508f479f47f3..96aab59f21b842a9ff118efeee04f0218a7e78d6 100644 (file)
@@ -24,7 +24,7 @@
 #include "gactiongroup.h"
 #include "gactiongroupexporter.h"
 #include "gremoteactiongroup.h"
-#include "gdbusactiongroup.h"
+#include "gdbusactiongroup-private.h"
 #include "gapplication.h"
 #include "gfile.h"
 #include "gdbusconnection.h"
 #include "gapplicationcommandline.h"
 #include "gdbusmethodinvocation.h"
 
-G_GNUC_INTERNAL gboolean
-g_dbus_action_group_sync (GDBusActionGroup  *group,
-                          GCancellable      *cancellable,
-                          GError           **error);
-
-
 /* DBus Interface definition {{{1 */
 
 /* For documentation of these interfaces, see
diff --git a/gio/gdbusactiongroup-private.h b/gio/gdbusactiongroup-private.h
new file mode 100644 (file)
index 0000000..8c42b4d
--- /dev/null
@@ -0,0 +1,37 @@
+/*
+ * Copyright © 2010 Codethink Limited
+ * Copyright © 2011 Canonical Limited
+ *
+ * This program 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 of the licence 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *
+ * Authors: Ryan Lortie <desrt@desrt.ca>
+ */
+
+#ifndef __G_DBUS_ACTION_GROUP_PRIVATE_H__
+#define __G_DBUS_ACTION_GROUP_PRIVATE_H__
+
+#include "gdbusactiongroup.h"
+
+G_BEGIN_DECLS
+
+gboolean
+g_dbus_action_group_sync (GDBusActionGroup  *group,
+                          GCancellable      *cancellable,
+                          GError           **error);
+
+G_END_DECLS
+
+#endif 
index e17b6c7f95b4911baaeafe473b951626c3902cf9..b73b736580b96d37fcfafa2e8ece387bedd80de8 100644 (file)
@@ -22,7 +22,7 @@
 
 #include "config.h"
 
-#include "gdbusactiongroup.h"
+#include "gdbusactiongroup-private.h"
 
 #include "gremoteactiongroup.h"
 #include "gdbusconnection.h"