diff options
author | Jens Georg <mail@jensge.org> | 2022-01-23 16:08:58 +0100 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2022-01-23 16:08:58 +0100 |
commit | 2cdb34c2515e9f91fddddec1633fe6c1273f8415 (patch) | |
tree | 4ebaa2f2910949a57ebc4ca6342ac18e516f35e1 /libgupnp/gupnp-service-proxy-action.c | |
parent | c17fb21a137ddc44f032d42289e6e8d231371eae (diff) | |
download | gupnp-2cdb34c2515e9f91fddddec1633fe6c1273f8415.tar.gz |
doc: Fix examples for gi-docgen
Diffstat (limited to 'libgupnp/gupnp-service-proxy-action.c')
-rw-r--r-- | libgupnp/gupnp-service-proxy-action.c | 18 |
1 files changed, 6 insertions, 12 deletions
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() * - * <informalexample> - * <programlisting> + * ```c * GUPnPServiceProxyAction *action = * gupnp_service_proxy_action_new ("GetVolume", * // Parameters @@ -337,8 +336,7 @@ write_footer (GUPnPServiceProxyAction *action) * } * * gupnp_service_proxy_action_unref (action); - * </programlisting> - * </informalexample> + * ``` * * 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() - * <informalexample> - * <programlisting> + * ```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); - * </programlisting> - * </informalexample> + * ``` * * 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(). * - * <informalexample> - * <programlisting> + *```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); * } - * </programlisting> - * </informalexample> + * ``` * * Return value: %TRUE on success. * |