From 2cdb34c2515e9f91fddddec1633fe6c1273f8415 Mon Sep 17 00:00:00 2001 From: Jens Georg Date: Sun, 23 Jan 2022 16:08:58 +0100 Subject: doc: Fix examples for gi-docgen --- libgupnp/gupnp-service-proxy-action.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'libgupnp/gupnp-service-proxy-action.c') diff --git a/libgupnp/gupnp-service-proxy-action.c b/libgupnp/gupnp-service-proxy-action.c index 4f050be..a4f151f 100644 --- a/libgupnp/gupnp-service-proxy-action.c +++ b/libgupnp/gupnp-service-proxy-action.c @@ -310,8 +310,7 @@ write_footer (GUPnPServiceProxyAction *action) * gupnp_service_proxy_action_get_result_list() or * gupnp_service_proxy_action_get_result_hash() * - * - * + * ```c * GUPnPServiceProxyAction *action = * gupnp_service_proxy_action_new ("GetVolume", * // Parameters @@ -337,8 +336,7 @@ write_footer (GUPnPServiceProxyAction *action) * } * * gupnp_service_proxy_action_unref (action); - * - * + * ``` * * Returns: A newly created #GUPnPServiceProxyAction */ @@ -403,8 +401,7 @@ gupnp_service_proxy_action_new (const char *action, * gupnp_service_proxy_action_get_result(), * gupnp_service_proxy_action_get_result_list() or * gupnp_service_proxy_action_get_result_hash() - * - * + * ```c * GList *in_args = NULL; * in_args = g_list_append (in_args, "InstanceID"); * in_args = g_list_append (in_args, "Unit"); @@ -428,8 +425,7 @@ gupnp_service_proxy_action_new (const char *action, * GError *error = NULL; * gupnp_service_proxy_call_action_async (proxy, action, NULL, on_action_finished, NULL); * gupnp_service_proxy_action_unref (action); - * - * + * ``` * * Returns: A newly created #GUPnPServiceProxyAction */ @@ -634,8 +630,7 @@ gupnp_service_proxy_action_get_result_list (GUPnPServiceProxyAction *action, * The @out_hash needs to be pre-initialized with key value pairs denoting the argument * to retrieve and an empty #GValue initialized to hold the wanted type with g_value_init(). * - * - * + *```c * void on_action_finished(GObject *object, GAsyncResult *res, gpointer user_data) * { * GUPnPServiceProxyAction *action; @@ -673,8 +668,7 @@ gupnp_service_proxy_action_get_result_list (GUPnPServiceProxyAction *action, * * g_hash_table_unref (out_args); * } - * - * + * ``` * * Return value: %TRUE on success. * -- cgit v1.2.1