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 \
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)
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,
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,
#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)
{
* 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)
*
* 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)
#define _SIGNON_SECURITY_CONTEXT_H_
#include <glib.h>
+#include <glib-object.h>
G_BEGIN_DECLS
*/
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,
--- /dev/null
+#!/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/
+