PolicyKit: Branch 'master'

David Zeuthen david at kemper.freedesktop.org
Sat Jan 31 13:19:14 PST 2009


 docs/polkitagent/Makefile.am              |   19 +++++++++++++------
 docs/polkitagent/polkitagent-sections.txt |    1 +
 docs/polkitagent/polkitagent.types        |    2 ++
 src/polkitagent/polkitagentlistener.c     |    2 +-
 src/polkitagent/polkitagentlistener.h     |   24 +++++++++++-------------
 src/polkitagent/polkitagentsession.h      |    5 +----
 6 files changed, 29 insertions(+), 24 deletions(-)

New commits:
commit 2f0e640fb93cec4395e926f3ea50037435cf78d0
Author: David Zeuthen <davidz at redhat.com>
Date:   Sat Jan 31 16:17:27 2009 -0500

    fix up polkitagent docs

diff --git a/docs/polkitagent/Makefile.am b/docs/polkitagent/Makefile.am
index 75a134a..4ef4787 100644
--- a/docs/polkitagent/Makefile.am
+++ b/docs/polkitagent/Makefile.am
@@ -59,11 +59,14 @@ HTML_IMAGES = 				\
 # Extra options to supply to gtkdoc-fixref
 FIXXREF_OPTIONS=
 
-MAINTAINERCLEANFILES =		\
-	*~			\
-	Makefile.in		\
-	polkitagent.types	\
-	polkit-*.txt		\
+MAINTAINERCLEANFILES =				\
+	*~					\
+	Makefile.in				\
+	polkitagent-decl-list.txt		\
+	polkitagent-decl.txt			\
+	polkitagent-overrides.txt		\
+	polkitagent-undeclared.txt		\
+	polkitagent-undocumented.txt		\
 	$(NULL)
 
 if ENABLE_GTK_DOC
@@ -74,7 +77,11 @@ endif
 
 CLEANFILES +=   *~					\
 		polkitagent-scan.*			\
-		polkitagent.*				\
+		polkitagent.args			\
+		polkitagent.hierarchy			\
+		polkitagent.interfaces			\
+		polkitagent.prerequisites		\
+		polkitagent.signals			\
 		*.bak					\
 		polkitagent-decl-list.txt		\
 		polkitagent-decl.txt			\
diff --git a/docs/polkitagent/polkitagent-sections.txt b/docs/polkitagent/polkitagent-sections.txt
index 38c1de6..685be44 100644
--- a/docs/polkitagent/polkitagent-sections.txt
+++ b/docs/polkitagent/polkitagent-sections.txt
@@ -1,5 +1,6 @@
 <SECTION>
 <FILE>polkitagentsession</FILE>
+<TITLE>PolkitAgentSession</TITLE>
 PolkitAgentSession
 polkit_agent_session_new
 polkit_agent_session_initiate
diff --git a/docs/polkitagent/polkitagent.types b/docs/polkitagent/polkitagent.types
new file mode 100644
index 0000000..dec96b8
--- /dev/null
+++ b/docs/polkitagent/polkitagent.types
@@ -0,0 +1,2 @@
+polkit_agent_session_get_type
+polkit_agent_listener_get_type
diff --git a/src/polkitagent/polkitagentlistener.c b/src/polkitagent/polkitagentlistener.c
index 15be7db..313d38f 100644
--- a/src/polkitagent/polkitagentlistener.c
+++ b/src/polkitagent/polkitagentlistener.c
@@ -31,7 +31,7 @@
  * @title: PolkitAgentListener
  * @short_description: Abstract base class for Authentication Agents
  *
- * The #PolkitAgentListener is an abstract base class used for implementing authentication
+ * #PolkitAgentListener is an abstract base class used for implementing authentication
  * agents. To implement an authentication agent, simply subclass #PolkitAgentListener and
  * implement the @initiate_authentication and @initiate_authentication_finish VFuncs.
  *
diff --git a/src/polkitagent/polkitagentlistener.h b/src/polkitagent/polkitagentlistener.h
index fae6c96..b50e922 100644
--- a/src/polkitagent/polkitagentlistener.h
+++ b/src/polkitagent/polkitagentlistener.h
@@ -34,9 +34,7 @@ G_BEGIN_DECLS
 #define POLKIT_AGENT_IS_LISTENER(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), POLKIT_AGENT_TYPE_LISTENER))
 #define POLKIT_AGENT_IS_LISTENER_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), POLKIT_AGENT_TYPE_LISTENER))
 
-#if 0
-typedef struct _PolkitAgentListener PolkitAgentListener;
-#endif
+struct _PolkitAgentListenerClass;
 typedef struct _PolkitAgentListenerClass PolkitAgentListenerClass;
 
 /**
@@ -63,17 +61,17 @@ struct _PolkitAgentListenerClass
   GObjectClass parent_class;
 
   /* Vtable */
-  void (*initiate_authentication)  (PolkitAgentListener  *listener,
-                                    const gchar          *action_id,
-                                    const gchar          *cookie,
-                                    GList                *identities,
-                                    GCancellable         *cancellable,
-                                    GAsyncReadyCallback   callback,
-                                    gpointer              user_data);
+  void     (*initiate_authentication)        (PolkitAgentListener  *listener,
+                                              const gchar          *action_id,
+                                              const gchar          *cookie,
+                                              GList                *identities,
+                                              GCancellable         *cancellable,
+                                              GAsyncReadyCallback   callback,
+                                              gpointer              user_data);
 
-  gboolean (*initiate_authentication_finish)  (PolkitAgentListener  *listener,
-                                               GAsyncResult         *res,
-                                               GError              **error);
+  gboolean (*initiate_authentication_finish) (PolkitAgentListener  *listener,
+                                              GAsyncResult         *res,
+                                              GError              **error);
 
   /*< private >*/
   /* Padding for future expansion */
diff --git a/src/polkitagent/polkitagentsession.h b/src/polkitagent/polkitagentsession.h
index a3863bf..acba074 100644
--- a/src/polkitagent/polkitagentsession.h
+++ b/src/polkitagent/polkitagentsession.h
@@ -34,10 +34,7 @@ G_BEGIN_DECLS
 #define POLKIT_AGENT_IS_SESSION(o)         (G_TYPE_CHECK_INSTANCE_TYPE ((o), POLKIT_AGENT_TYPE_SESSION))
 #define POLKIT_AGENT_IS_SESSION_CLASS(k)   (G_TYPE_CHECK_CLASS_TYPE ((k), POLKIT_AGENT_TYPE_SESSION))
 
-
-#if 0
-typedef struct _PolkitAgentSession PolkitAgentSession;
-#endif
+struct _PolkitAgentSessionClass;
 typedef struct _PolkitAgentSessionClass PolkitAgentSessionClass;
 
 GType                polkit_agent_session_get_type    (void) G_GNUC_CONST;


More information about the hal-commit mailing list