diff options
author | Evan Nemerson <evan@coeus-group.com> | 2012-05-03 18:36:46 -0700 |
---|---|---|
committer | Evan Nemerson <evan@coeus-group.com> | 2012-05-03 18:42:34 -0700 |
commit | 8ea1394b7bf9338ad0a8f504920e43698afb97d3 (patch) | |
tree | 3289931b883b4a5daa5af06842117ef9534017ef /rest/rest-param.c | |
parent | b449fd9067cc4267057ef751032dcf0225e6e51d (diff) | |
download | librest-8ea1394b7bf9338ad0a8f504920e43698afb97d3.tar.gz |
assorted introspection fixes
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=675213
Diffstat (limited to 'rest/rest-param.c')
-rw-r--r-- | rest/rest-param.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/rest/rest-param.c b/rest/rest-param.c index 7a4f25d..c71afc6 100644 --- a/rest/rest-param.c +++ b/rest/rest-param.c @@ -58,7 +58,8 @@ G_DEFINE_BOXED_TYPE (RestParam, rest_param, rest_param_ref, rest_param_unref) * rest_param_new_full: * @name: the parameter name * @use: the #RestMemoryUse describing how the memory can be used - * @data: a pointer to the start of the data + * @data: (array length=length) (element-type guint8): a pointer to + * the start of the data * @length: the length of the data * @content_type: the content type of the data * @filename: the original filename, or %NULL @@ -109,12 +110,14 @@ rest_param_new_full (const char *name, /** * rest_param_new_with_owner: * @name: the parameter name - * @data: a pointer to the start of the data + * @data: (array length=length) (element-type guint8): a pointer to + * the start of the data * @length: the length of the data * @content_type: the content type of the data - * @filename: the original filename, or %NULL - * @owner: pointer to an object that owns @data - * @owner_dnotify: a function to free/unref @owner when the buffer is freed + * @filename: (allow-none): the original filename, or %NULL + * @owner: (transfer full): pointer to an object that owns @data + * @owner_dnotify: (allow-none): a function to free/unref @owner when + * the buffer is freed * * Create a new #RestParam called @name with @length bytes of @data as the * value. @content_type is the type of the data as a MIME type, for example @@ -260,7 +263,7 @@ rest_param_is_string (RestParam *param) * Get the content of @param. The content should be treated as read-only and * not modified in any way. * - * Returns: the content. + * Returns: (transfer none): the content. **/ gconstpointer rest_param_get_content (RestParam *param) |