docs: Move the GDBus name owning SECTION

Move it to a separate content page as there’s no struct to hang the docs
off.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Helps: #3037
This commit is contained in:
Philip Withnall 2023-11-13 23:48:44 +00:00
parent f25ede6d1c
commit beb56279ef
4 changed files with 16 additions and 12 deletions

View File

@ -0,0 +1,14 @@
Title: D-Bus Name Owning
SPDX-License-Identifier: LGPL-2.1-or-later
SPDX-FileCopyrightText: 2010 David Zeuthen
# D-Bus Name Owning
Convenience API for owning bus names.
A simple example for owning a name can be found in
[`gdbus-example-own-name.c`](https://gitlab.gnome.org/GNOME/glib/-/blob/HEAD/gio/tests/gdbus-example-own-name.c).
The main API for owning names is:
* [func@Gio.bus_own_name]
* [func@Gio.bus_unown_name]

View File

@ -45,6 +45,7 @@ content_files = [
"tls-overview.md", "tls-overview.md",
"dbus-error.md", "dbus-error.md",
"dbus-introspection.md", "dbus-introspection.md",
"dbus-name-owning.md",
"migrating-gdbus.md", "migrating-gdbus.md",
"migrating-gconf.md", "migrating-gconf.md",

View File

@ -227,6 +227,7 @@ endif
expand_content_files = [ expand_content_files = [
'dbus-error.md', 'dbus-error.md',
'dbus-introspection.md', 'dbus-introspection.md',
'dbus-name-owning.md',
'file-attributes.md', 'file-attributes.md',
'migrating-gconf.md', 'migrating-gconf.md',
'migrating-gdbus.md', 'migrating-gdbus.md',

View File

@ -32,18 +32,6 @@
#include "glibintl.h" #include "glibintl.h"
/**
* SECTION:gdbusnameowning
* @title: Owning Bus Names
* @short_description: Simple API for owning bus names
* @include: gio/gio.h
*
* Convenience API for owning bus names.
*
* A simple example for owning a name can be found in
* [gdbus-example-own-name.c](https://gitlab.gnome.org/GNOME/glib/-/blob/HEAD/gio/tests/gdbus-example-own-name.c)
*/
G_LOCK_DEFINE_STATIC (lock); G_LOCK_DEFINE_STATIC (lock);
/* ---------------------------------------------------------------------------------------------------- */ /* ---------------------------------------------------------------------------------------------------- */