docs: Move the GProxyAddressEnumerator SECTION

Move it to the struct docs.

Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>

Helps: #3037
This commit is contained in:
Philip Withnall 2023-10-25 15:04:40 +01:00
parent 34fc02d5ac
commit 7b32b5a9f0
2 changed files with 9 additions and 18 deletions

View File

@ -42,19 +42,18 @@
#include "gsocketconnectable.h" #include "gsocketconnectable.h"
/** /**
* SECTION:gproxyaddressenumerator * GProxyAddressEnumerator:
* @short_description: Proxy wrapper enumerator for socket addresses
* @include: gio/gio.h
* *
* #GProxyAddressEnumerator is a wrapper around #GSocketAddressEnumerator which * `GProxyAddressEnumerator` is a wrapper around
* takes the #GSocketAddress instances returned by the #GSocketAddressEnumerator * [class@Gio.SocketAddressEnumerator] which takes the [class@Gio.SocketAddress]
* and wraps them in #GProxyAddress instances, using the given * instances returned by the [class@Gio.SocketAddressEnumerator]
* #GProxyAddressEnumerator:proxy-resolver. * and wraps them in [class@Gio.ProxyAddress] instances, using the given
* [property@Gio.ProxyAddressEnumerator:proxy-resolver].
* *
* This enumerator will be returned (for example, by * This enumerator will be returned (for example, by
* g_socket_connectable_enumerate()) as appropriate when a proxy is configured; * [method@Gio.SocketConnectable.enumerate]) as appropriate when a proxy is
* there should be no need to manually wrap a #GSocketAddressEnumerator instance * configured; there should be no need to manually wrap a
* with one. * [class@Gio.SocketAddressEnumerator] instance with one.
*/ */
#define GET_PRIVATE(o) (G_PROXY_ADDRESS_ENUMERATOR (o)->priv) #define GET_PRIVATE(o) (G_PROXY_ADDRESS_ENUMERATOR (o)->priv)

View File

@ -38,14 +38,6 @@ G_BEGIN_DECLS
#define G_IS_PROXY_ADDRESS_ENUMERATOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_PROXY_ADDRESS_ENUMERATOR)) #define G_IS_PROXY_ADDRESS_ENUMERATOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_PROXY_ADDRESS_ENUMERATOR))
#define G_PROXY_ADDRESS_ENUMERATOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_PROXY_ADDRESS_ENUMERATOR, GProxyAddressEnumeratorClass)) #define G_PROXY_ADDRESS_ENUMERATOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_PROXY_ADDRESS_ENUMERATOR, GProxyAddressEnumeratorClass))
/**
* GProxyAddressEnumerator:
*
* A subclass of #GSocketAddressEnumerator that takes another address
* enumerator and wraps each of its results in a #GProxyAddress as
* directed by the default #GProxyResolver.
*/
typedef struct _GProxyAddressEnumeratorClass GProxyAddressEnumeratorClass; typedef struct _GProxyAddressEnumeratorClass GProxyAddressEnumeratorClass;
typedef struct _GProxyAddressEnumeratorPrivate GProxyAddressEnumeratorPrivate; typedef struct _GProxyAddressEnumeratorPrivate GProxyAddressEnumeratorPrivate;