Use _polkit_agent_marshal prefix
authorMichael Biebl <biebl@debian.org>
Mon, 31 Aug 2009 03:08:34 +0000 (05:08 +0200)
committerDavid Zeuthen <davidz@redhat.com>
Sun, 13 Sep 2009 17:31:18 +0000 (13:31 -0400)
Use _polkit_agent_marshal prefix with glib-genmarshal to hide the
(autogenerated) symbols. Update the code accordingly.

Signed-off-by: David Zeuthen <davidz@redhat.com>
src/polkitagent/Makefile.am
src/polkitagent/polkitagentsession.c

index 0286c213379ad042d23400c43e8b695f83349dc9..1903e0afde584957eebe8dccd0c0f7d517648cde 100644 (file)
@@ -22,8 +22,8 @@ BUILT_SOURCES =                                               \
        $(NULL)
 
 marshal.stamp : Makefile.am $(srcdir)/polkitagentmarshal.list
-       glib-genmarshal --prefix=polkit_agent_marshal $(srcdir)/polkitagentmarshal.list --header > polkitagentmarshal.h.tmp && mv polkitagentmarshal.h.tmp polkitagentmarshal.h
-       (echo "#include \"polkitagentmarshal.h\""; glib-genmarshal --prefix=polkit_agent_marshal $(srcdir)/polkitagentmarshal.list --body) > polkitagentmarshal.c.tmp && mv polkitagentmarshal.c.tmp polkitagentmarshal.c
+       glib-genmarshal --prefix=_polkit_agent_marshal $(srcdir)/polkitagentmarshal.list --header > polkitagentmarshal.h.tmp && mv polkitagentmarshal.h.tmp polkitagentmarshal.h
+       (echo "#include \"polkitagentmarshal.h\""; glib-genmarshal --prefix=_polkit_agent_marshal $(srcdir)/polkitagentmarshal.list --body) > polkitagentmarshal.c.tmp && mv polkitagentmarshal.c.tmp polkitagentmarshal.c
        touch marshal.stamp
 
 marshal_built_sources = polkitagentmarshal.h polkitagentmarshal.c
index 4327b4b0b14c0eeadd1a0b7e6823861725a1ac5d..b919e0a0b6ba13fe024a8bda089f952e68166bf8 100644 (file)
@@ -156,7 +156,7 @@ polkit_agent_session_class_init (PolkitAgentSessionClass *klass)
                                           0,                      /* class offset     */
                                           NULL,                   /* accumulator      */
                                           NULL,                   /* accumulator data */
-                                          polkit_agent_marshal_VOID__STRING_BOOLEAN,
+                                          _polkit_agent_marshal_VOID__STRING_BOOLEAN,
                                           G_TYPE_NONE,
                                           2,
                                           G_TYPE_STRING,