[librest/wip/baedert/tests: 8/27] RestProxy: Document set/get_user_agent
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librest/wip/baedert/tests: 8/27] RestProxy: Document set/get_user_agent
- Date: Tue, 21 Feb 2017 17:02:51 +0000 (UTC)
commit 09a690b32dbab1527c7ebf4f03dec0e15af25af7
Author: Timm Bäder <mail baedert org>
Date: Fri Jul 22 09:04:43 2016 +0200
RestProxy: Document set/get_user_agent
rest/rest-proxy.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/rest/rest-proxy.c b/rest/rest-proxy.c
index 80972a3..51f15a0 100644
--- a/rest/rest-proxy.c
+++ b/rest/rest-proxy.c
@@ -512,6 +512,13 @@ rest_proxy_bind (RestProxy *proxy, ...)
return res;
}
+/**
+ * rest_proxy_set_user_agent:
+ * @proxy: a #RestProxy
+ * @user_agent: the user agent to set
+ *
+ * Sets the user agent of @proxy.
+ */
void
rest_proxy_set_user_agent (RestProxy *proxy,
const char *user_agent)
@@ -522,6 +529,14 @@ rest_proxy_set_user_agent (RestProxy *proxy,
g_object_set (proxy, "user-agent", user_agent, NULL);
}
+/**
+ * rest_proxy_get_user_agent:
+ * @proxy: a #RestProxy
+ *
+ * Returns: (nullable): The user agent set
+ * using rest_proxy_set_user_agent() or %NULL if no user
+ * agent has been set
+ */
const gchar *
rest_proxy_get_user_agent (RestProxy *proxy)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]