summaryrefslogtreecommitdiff
path: root/rest/rest-param.c
diff options
context:
space:
mode:
authorRoss Burton <ross@linux.intel.com>2010-08-11 18:30:34 +0100
committerRoss Burton <ross@linux.intel.com>2010-08-11 18:30:34 +0100
commit17c5d2f3407c108c680b672c52df7fc4919548d6 (patch)
tree7d928b6b8ef586b5c0db0d6322e4bbdcb5121141 /rest/rest-param.c
parent30bd53e4fb2d1f61fa54a66e2f5dfdce39b8a67b (diff)
downloadlibrest-17c5d2f3407c108c680b672c52df7fc4919548d6.tar.gz
Small documentation fixes
Diffstat (limited to 'rest/rest-param.c')
-rw-r--r--rest/rest-param.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/rest/rest-param.c b/rest/rest-param.c
index 9ed3237..29b209e 100644
--- a/rest/rest-param.c
+++ b/rest/rest-param.c
@@ -237,6 +237,14 @@ rest_param_get_file_name (RestParam *param)
return param->filename;
}
+/**
+ * rest_param_is_string:
+ * @param: a valid #RestParam
+ *
+ * Determine if the parameter is a string value, i.e. the content type is "text/plain".
+ *
+ * Returns: %TRUE if the parameter is a string, %FALSE otherwise.
+ */
gboolean
rest_param_is_string (RestParam *param)
{