docs: Move the GDBus name watching 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:54:49 +00:00
parent beb56279ef
commit 6492dd7054
4 changed files with 16 additions and 12 deletions

View File

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

View File

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

View File

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

View File

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