summaryrefslogtreecommitdiff
path: root/rest/rest-proxy-call.c
diff options
context:
space:
mode:
Diffstat (limited to 'rest/rest-proxy-call.c')
-rw-r--r--rest/rest-proxy-call.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/rest/rest-proxy-call.c b/rest/rest-proxy-call.c
index fbf4880..e94bba4 100644
--- a/rest/rest-proxy-call.c
+++ b/rest/rest-proxy-call.c
@@ -268,6 +268,29 @@ rest_proxy_call_set_function (RestProxyCall *call,
}
/**
+ * rest_proxy_call_get_function:
+ * @call: The #RestProxyCall
+ *
+ * Get the REST function that is going to be called on the proxy.
+ *
+ * Returns: The REST "function" for the current call, see also
+ * rest_proxy_call_set_function(). This string is owned by the #RestProxyCall
+ * and should not be freed.
+ * Since: 0.7.92
+ */
+const char *
+rest_proxy_call_get_function (RestProxyCall *call)
+{
+ RestProxyCallPrivate *priv;
+
+ g_return_val_if_fail (REST_IS_PROXY_CALL (call), NULL);
+ priv = GET_PRIVATE (call);
+
+ return priv->function;
+}
+
+
+/**
* rest_proxy_call_add_header:
* @call: The #RestProxyCall
* @header: The name of the header to set