/* GDBus - GLib D-Bus Library
*
- * Copyright (C) 2008-2009 Red Hat, Inc.
+ * Copyright (C) 2008-2010 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Author: David Zeuthen <davidz@redhat.com>
*/
+#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
+#error "Only <gio/gio.h> can be included directly."
+#endif
+
#ifndef __G_DBUS_AUTH_OBSERVER_H__
#define __G_DBUS_AUTH_OBSERVER_H__
/**
* GDBusAuthObserverClass:
- * @deny_authenticated_peer: Signal class handler for the #GDBusAuthObserver::deny-authenticated-peer signal.
+ * @authorize_authenticated_peer: Signal class handler for the #GDBusAuthObserver::authorize-authenticated-peer signal.
*
* Class structure for #GDBusAuthObserverClass.
+ *
+ * Since: 2.26
*/
struct _GDBusAuthObserverClass
{
/*< public >*/
/* Signals */
- gboolean (*deny_authenticated_peer) (GDBusAuthObserver *observer,
- GIOStream *stream,
- GCredentials *credentials);
+ gboolean (*authorize_authenticated_peer) (GDBusAuthObserver *observer,
+ GIOStream *stream,
+ GCredentials *credentials);
/*< private >*/
*
* The #GDBusAuthObserver structure contains only private data and
* should only be accessed using the provided API.
+ *
+ * Since: 2.26
*/
struct _GDBusAuthObserver
{
GDBusAuthObserverPrivate *priv;
};
-GType g_dbus_auth_observer_get_type (void) G_GNUC_CONST;
-GDBusAuthObserver *g_dbus_auth_observer_new (void);
-gboolean g_dbus_auth_observer_deny_authenticated_peer (GDBusAuthObserver *observer,
- GIOStream *stream,
- GCredentials *credentials);
+GType g_dbus_auth_observer_get_type (void) G_GNUC_CONST;
+GDBusAuthObserver *g_dbus_auth_observer_new (void);
+gboolean g_dbus_auth_observer_authorize_authenticated_peer (GDBusAuthObserver *observer,
+ GIOStream *stream,
+ GCredentials *credentials);
G_END_DECLS