Fix GObject introspection
authorJussi Laako <jussi.laako@linux.intel.com>
Mon, 3 Jun 2013 14:31:00 +0000 (17:31 +0300)
committerJussi Laako <jussi.laako@linux.intel.com>
Mon, 3 Jun 2013 14:31:00 +0000 (17:31 +0300)
libgsignon-glib/Makefile.am
libgsignon-glib/signon-identity.c
libgsignon-glib/signon-identity.h
libgsignon-glib/signon-security-context.c
libgsignon-glib/signon-security-context.h
packaging/archive.sh [new file with mode: 0755]

index 49b724fef1a4b1c9fb166c7e81d407b829804e92..39a408b4feb619336d48acfcd931cca13cafe959 100644 (file)
@@ -171,6 +171,8 @@ INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
 
 if HAVE_INTROSPECTION
 introspection_sources = \
+       signon-security-context.c \
+       signon-security-context.h \
        signon-auth-service.c \
        signon-auth-service.h \
        signon-auth-session.c \
@@ -184,19 +186,19 @@ introspection_sources = \
        signon-identity.c \
        signon-identity.h
 
-Signon-1.0.gir: libgsignon-glib.la
-Signon_1_0_gir_INCLUDES = GObject-2.0 Gio-2.0
-Signon_1_0_gir_SCANNERFLAGS = \
+gSignon-1.0.gir: libgsignon-glib.la
+gSignon_1_0_gir_INCLUDES = GObject-2.0 Gio-2.0
+gSignon_1_0_gir_SCANNERFLAGS = \
        --identifier-prefix=Signon \
        --symbol-prefix=signon \
        --c-include="libgsignon-glib/signon-glib.h" \
        --warn-all
-Signon_1_0_gir_CFLAGS = \
+gSignon_1_0_gir_CFLAGS = \
        -I$(top_srcdir) \
        $(DEPS_CFLAGS)
-Signon_1_0_gir_LIBS = libgsignon-glib.la
-Signon_1_0_gir_FILES = $(introspection_sources)
-INTROSPECTION_GIRS += Signon-1.0.gir
+gSignon_1_0_gir_LIBS = libgsignon-glib.la
+gSignon_1_0_gir_FILES = $(introspection_sources)
+INTROSPECTION_GIRS += gSignon-1.0.gir
 
 girdir = $(datadir)/gir-1.0
 gir_DATA = $(INTROSPECTION_GIRS)
index ade93c2297451f6f87aba6b68ec32e01057d1c07..d3899db55331f34ed26e6962ba8b68470c99e47a 100644 (file)
@@ -1615,6 +1615,15 @@ identity_session_object_destroyed_cb(gpointer data,
     g_object_unref (self);
 }
 
+/**
+ * signon_identity_get_auth_session:
+ * @self: the #SignonIdentity.
+ * @session: the #SignonAuthSession object to get the remote object for.
+ * @method: method name for the session.
+ * @cb: (scope async): completion callback.
+ *
+ * Obtain a remote object for a local session object.
+ */
 void signon_identity_get_auth_session (SignonIdentity *self,
                                        SignonAuthSession *session,
                                        const gchar *method,
index 14c4ff1b63264a38db7a0ca542cf2bfb36ab16e2..18c0d4b50d5c9cb67f004e1ce89d2ac070dd045a 100644 (file)
@@ -202,6 +202,16 @@ void signon_identity_remove_reference(SignonIdentity *self,
                                       SignonIdentityReferenceRemovedCb cb,
                                       gpointer user_data);
 
+/**
+ * SignonIdentitySessionReadyCb:
+ * @self: the #SignonAuthSession.
+ * @error: a #GError if an error occurred, or %NULL otherwise.
+ * @connection: a #GDBusConnection for the session.
+ * @bus_name: a D-Bus bus name for the session.
+ * @object_path: a D-Bus object path for the session.
+ *
+ * Callback to be passed to signon_identity_get_auth_session().
+ */
 typedef void (*SignonIdentitySessionReadyCb) (SignonAuthSession *self,
                                               GError *error,
                                               GDBusConnection *connection,
index 737db180690925972fda383b462b6a09a274ab6b..4e85f444577b9a3fb5376c8fd9edf08d340b6766 100644 (file)
 
 #include "signon-security-context.h"
 
+G_DEFINE_BOXED_TYPE (SignonSecurityContext, signon_security_context,
+                     (GBoxedCopyFunc) signon_security_context_copy,
+                     (GBoxedFreeFunc) signon_security_context_free);
+
 static void
 _security_context_free (gpointer ptr)
 {
@@ -265,7 +269,7 @@ signon_security_context_list_build_variant (
  * Builds a GList of #SignonSecurityContext items from a GVariant of type
  * "a(ss)".
  *
- * Returns: (transfer full) #SignonSecurityContextList item.
+ * Returns: (transfer full): #SignonSecurityContextList item.
  */
 SignonSecurityContextList *
 signon_security_context_list_deconstruct_variant (GVariant *variant)
@@ -293,7 +297,7 @@ signon_security_context_list_deconstruct_variant (GVariant *variant)
  *
  * Copies a GList of #SignonSecurityContext items.
  *
- * Returns: (transfer full) #SignonSecurityContextList item.
+ * Returns: (transfer full): #SignonSecurityContextList item.
  */
 SignonSecurityContextList *
 signon_security_context_list_copy (const SignonSecurityContextList *src_list)
index a91cd7bc5cae350632777ee58d429ac72f3469f6..057b1b9714fa9930080739ef5cb8cc48fa40d2e4 100644 (file)
@@ -26,6 +26,7 @@
 #define _SIGNON_SECURITY_CONTEXT_H_
 
 #include <glib.h>
+#include <glib-object.h>
 
 G_BEGIN_DECLS
 
@@ -49,6 +50,8 @@ typedef struct _SignonSecurityContext
  */
 typedef GList SignonSecurityContextList;
 
+GType signon_security_context_get_type (void) G_GNUC_CONST;
+
 SignonSecurityContext * signon_security_context_new ();
 SignonSecurityContext * signon_security_context_new_from_values (
                                             const gchar *system_context,
diff --git a/packaging/archive.sh b/packaging/archive.sh
new file mode 100755 (executable)
index 0000000..3fdf34c
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+#
+git archive --format=tar --prefix=libgsignon-glib-2.0.0/ -o ../libgsignon-glib-2.0.0.tar master
+bzip2 ../libgsignon-glib-2.0.0.tar
+mv ../libgsignon-glib-2.0.0.tar.bz2 ~/rpmbuild/SOURCES/
+