X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gio%2Fgdbusauthobserver.c;h=23e7f3179d6fb0a9a7cfd678d41b09672fb961fe;hb=f2786908a8858ec9d063e8fae7e4b2d8d612b682;hp=0140c523e492fb89078e5ae5ce6e99c3c63dff1a;hpb=ce81bd87c5fdd54126ceb81c17fea7c914833c3e;p=platform%2Fupstream%2Fglib.git diff --git a/gio/gdbusauthobserver.c b/gio/gdbusauthobserver.c index 0140c52..23e7f31 100644 --- a/gio/gdbusauthobserver.c +++ b/gio/gdbusauthobserver.c @@ -13,9 +13,7 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place, Suite 330, - * Boston, MA 02111-1307, USA. + * Public License along with this library; if not, see . * * Author: David Zeuthen */ @@ -41,10 +39,13 @@ * signals you are interested in. Note that new signals may be added * in the future * + * ## Controlling Authentication # {#auth-observer} + * * For example, if you only want to allow D-Bus connections from * processes owned by the same uid as the server, you would use a * signal handler like the following: - * Controlling Authentication + * + * |[ * static gboolean * on_authorize_authenticated_peer (GDBusAuthObserver *observer, * GIOStream *stream, @@ -65,7 +66,7 @@ * * return authorized; * } - * + * ]| */ typedef struct _GDBusAuthObserverClass GDBusAuthObserverClass; @@ -180,7 +181,7 @@ g_dbus_auth_observer_class_init (GDBusAuthObserverClass *klass) /** * GDBusAuthObserver::allow-mechanism: * @observer: The #GDBusAuthObserver emitting the signal. - * @mechanism: The name of the mechanism, e.g. DBUS_COOKIE_SHA1. + * @mechanism: The name of the mechanism, e.g. `DBUS_COOKIE_SHA1`. * * Emitted to check if @mechanism is allowed to be used. * @@ -255,7 +256,7 @@ g_dbus_auth_observer_authorize_authenticated_peer (GDBusAuthObserver *observer, /** * g_dbus_auth_observer_allow_mechanism: * @observer: A #GDBusAuthObserver. - * @mechanism: The name of the mechanism, e.g. DBUS_COOKIE_SHA1. + * @mechanism: The name of the mechanism, e.g. `DBUS_COOKIE_SHA1`. * * Emits the #GDBusAuthObserver::allow-mechanism signal on @observer. *