mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 19:06:15 +01:00
Convert remaining examples to links
This commit is contained in:
parent
623b58eeac
commit
a03cee3b27
@ -39,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:
|
||||
* <example id="auth-observer"><title>Controlling Authentication</title><programlisting>
|
||||
*
|
||||
* |[
|
||||
* static gboolean
|
||||
* on_authorize_authenticated_peer (GDBusAuthObserver *observer,
|
||||
* GIOStream *stream,
|
||||
@ -63,7 +66,7 @@
|
||||
*
|
||||
* return authorized;
|
||||
* }
|
||||
* </programlisting></example>
|
||||
* ]|
|
||||
*/
|
||||
|
||||
typedef struct _GDBusAuthObserverClass GDBusAuthObserverClass;
|
||||
|
@ -163,13 +163,25 @@
|
||||
* #GError, the only valid thing you can do with that #GDBusConnection is to
|
||||
* free it with g_object_unref().
|
||||
*
|
||||
* <example id="gdbus-server"><title>D-Bus server example</title><programlisting><xi:include xmlns:xi="http://www.w3.org/2001/XInclude" parse="text" href="../../../../gio/tests/gdbus-example-server.c"><xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback></xi:include></programlisting></example>
|
||||
* ## An example D-Bus server # {#gdbus-server}
|
||||
*
|
||||
* <example id="gdbus-subtree-server"><title>D-Bus subtree example</title><programlisting><xi:include xmlns:xi="http://www.w3.org/2001/XInclude" parse="text" href="../../../../gio/tests/gdbus-example-subtree.c"><xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback></xi:include></programlisting></example>
|
||||
* Here is an example for a D-Bus server:
|
||||
* [gdbus-example-server.c](https://git.gnome.org/browse/glib/tree/gio/tests/gdbus-example-server.c)
|
||||
*
|
||||
* <example id="gdbus-unix-fd-client"><title>D-Bus UNIX File Descriptor example</title><programlisting><xi:include xmlns:xi="http://www.w3.org/2001/XInclude" parse="text" href="../../../../gio/tests/gdbus-example-unix-fd-client.c"><xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback></xi:include></programlisting></example>
|
||||
* ## An example for exporting a subtree # {#gdbus-subtree-server}
|
||||
*
|
||||
* <example id="gdbus-export"><title>Exporting a GObject</title><programlisting><xi:include xmlns:xi="http://www.w3.org/2001/XInclude" parse="text" href="../../../../gio/tests/gdbus-example-export.c"><xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback></xi:include></programlisting></example>
|
||||
* Here is an example for exporting a subtree:
|
||||
* [gdbus-example-subtree.c](https://git.gnome.org/browse/glib/tree/gio/tests/gdbus-example-subtree.c)
|
||||
*
|
||||
* ## An example for file descriptor passing # {#gdbus-unix-fd-client}
|
||||
*
|
||||
* Here is an example for passing UNIX file descriptors:
|
||||
* [gdbus-unix-fd-client.c](https://git.gnome.org/browse/glib/tree/gio/tests/gdbus-unix-fd-client.c)
|
||||
*
|
||||
* ## An example for exporting a GObject # {#gdbus-export}
|
||||
*
|
||||
* Here is an example for exporting a #GObject:
|
||||
* [gdbus-example-export.c](https://git.gnome.org/browse/glib/tree/gio/tests/gdbus-example-export.c)
|
||||
*/
|
||||
|
||||
/* ---------------------------------------------------------------------------------------------------- */
|
||||
|
@ -38,7 +38,8 @@
|
||||
*
|
||||
* Convenience API for owning bus names.
|
||||
*
|
||||
* <example id="gdbus-owning-names"><title>Simple application owning a name</title><programlisting><xi:include xmlns:xi="http://www.w3.org/2001/XInclude" parse="text" href="../../../../gio/tests/gdbus-example-own-name.c"><xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback></xi:include></programlisting></example>
|
||||
* A simple example for owning a name can be found in
|
||||
* [gdbus-example-own-name.c](https://git.gnome.org/browse/glib/tree/gio/tests/gdbus-example-own-name.c)
|
||||
*/
|
||||
|
||||
G_LOCK_DEFINE_STATIC (lock);
|
||||
|
@ -39,7 +39,8 @@
|
||||
*
|
||||
* Convenience API for watching bus names.
|
||||
*
|
||||
* <example id="gdbus-watching-names"><title>Simple application watching a name</title><programlisting><xi:include xmlns:xi="http://www.w3.org/2001/XInclude" parse="text" href="../../../../gio/tests/gdbus-example-watch-name.c"><xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback></xi:include></programlisting></example>
|
||||
* A simple example for watching a name can be found in
|
||||
* [gdbus-example-watch-name.c](https://git.gnome.org/browse/glib/tree/gio/tests/gdbus-example-watch-name.c)
|
||||
*/
|
||||
|
||||
G_LOCK_DEFINE_STATIC (lock);
|
||||
|
@ -84,7 +84,8 @@
|
||||
* [thread-default main context][g-main-context-push-thread-default]
|
||||
* of the thread where the instance was constructed.
|
||||
*
|
||||
* <example id="gdbus-wellknown-proxy"><title>GDBusProxy for a well-known-name</title><programlisting><xi:include xmlns:xi="http://www.w3.org/2001/XInclude" parse="text" href="../../../../gio/tests/gdbus-example-watch-proxy.c"><xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback></xi:include></programlisting></example>
|
||||
* An example using a proxy for a well-known name can be found in
|
||||
* [gdbus-example-watch-proxy.c](https://git.gnome.org/browse/glib/tree/gio/tests/gdbus-example-watch-proxy.c)
|
||||
*/
|
||||
|
||||
/* lock protecting the mutable properties: name_owner, timeout_msec,
|
||||
|
@ -70,7 +70,8 @@
|
||||
* To just export an object on a well-known name on a message bus, such as the
|
||||
* session or system bus, you should instead use g_bus_own_name().
|
||||
*
|
||||
* <example id="gdbus-peer-to-peer"><title>D-Bus peer-to-peer example</title><programlisting><xi:include xmlns:xi="http://www.w3.org/2001/XInclude" parse="text" href="../../../../gio/tests/gdbus-example-peer.c"><xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback></xi:include></programlisting></example>
|
||||
* An example of peer-to-peer communication with G-DBus can be found
|
||||
* in [gdbus-example-peer.c](https://git.gnome.org/browse/glib/tree/gio/tests/gdbus-example-peer.c).
|
||||
*/
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user