[PATCH 7/7] annotations: replace Grl.KeyID with GObject.ParamSpec
- From: Simon Pena <spena igalia com>
- To: grilo-list gnome org
- Subject: [PATCH 7/7] annotations: replace Grl.KeyID with GObject.ParamSpec
- Date: Fri, 18 Mar 2011 17:46:22 +0200
---
src/data/grl-data.c | 38 +++++++++++++++++++-------------------
src/data/grl-related-keys.c | 28 ++++++++++++++--------------
src/grl-plugin-registry.c | 4 ++--
3 files changed, 35 insertions(+), 35 deletions(-)
diff --git a/src/data/grl-data.c b/src/data/grl-data.c
index 8b5c742..6e3461e 100644
--- a/src/data/grl-data.c
+++ b/src/data/grl-data.c
@@ -205,7 +205,7 @@ grl_data_new (void)
/**
* grl_data_get:
* @data: data to retrieve value
- * @key: (type Grl.KeyID): key to look up.
+ * @key: (type GObject.ParamSpec): key to look up.
*
* Get the first value from @data associated with @key.
*
@@ -236,7 +236,7 @@ grl_data_get (GrlData *data, GrlKeyID key)
/**
* grl_data_set:
* @data: data to modify
- * @key: (type Grl.KeyID): key to change or add
+ * @key: (type GObject.ParamSpec): key to change or add
* @value: the new value
*
* Sets the first value associated with @key in @data. If key already has a
@@ -282,7 +282,7 @@ grl_data_set (GrlData *data, GrlKeyID key, const GValue *value)
/**
* grl_data_set_string:
* @data: data to modify
- * @key: (type Grl.KeyID): key to change or add
+ * @key: (type GObject.ParamSpec): key to change or add
* @strvalue: the new value
*
* Sets the first string value associated with @key in @data. If @key already
@@ -310,7 +310,7 @@ grl_data_set_string (GrlData *data,
/**
* grl_data_get_string:
* @data: data to inspect
- * @key: (type Grl.KeyID): key to use
+ * @key: (type GObject.ParamSpec): key to use
*
* Returns the first string value associated with @key from @data. If @key has
* no first value, or value is not string, or @key is not in @data, then %NULL
@@ -336,7 +336,7 @@ grl_data_get_string (GrlData *data, GrlKeyID key)
/**
* grl_data_set_int:
* @data: data to change
- * @key: (type Grl.KeyID): key to change or add
+ * @key: (type GObject.ParamSpec): key to change or add
* @intvalue: the new value
*
* Sets the first int value associated with @key in @data. If @key already has a
@@ -356,7 +356,7 @@ grl_data_set_int (GrlData *data, GrlKeyID key, gint intvalue)
/**
* grl_data_get_int:
* @data: data to inspect
- * @key: (type Grl.KeyID): key to use
+ * @key: (type GObject.ParamSpec): key to use
*
* Returns the first int value associated with @key from @data. If @key has no
* first value, or value is not a gint, or @key is not in data, then 0 is
@@ -381,7 +381,7 @@ grl_data_get_int (GrlData *data, GrlKeyID key)
/**
* grl_data_set_float:
* @data: data to change
- * @key: (type Grl.KeyID): key to change or add
+ * @key: (type GObject.ParamSpec): key to change or add
* @floatvalue: the new value
*
* Sets the first float value associated with @key in @data. If @key already has
@@ -401,7 +401,7 @@ grl_data_set_float (GrlData *data, GrlKeyID key, float floatvalue)
/**
* grl_data_get_float:
* @data: data to inspect
- * @key: (type Grl.KeyID): key to use
+ * @key: (type GObject.ParamSpec): key to use
*
* Returns the first float value associated with @key from @data. If @key has no
* first value, or value is not a gfloat, or @key is not in data, then 0 is
@@ -426,7 +426,7 @@ grl_data_get_float (GrlData *data, GrlKeyID key)
/**
* grl_data_set_binary:
* @data: data to change
- * @key: (type Grl.KeyID): key to change or add
+ * @key: (type GObject.ParamSpec): key to change or add
* @buf: buffer holding the data
* @size: size of the buffer
*
@@ -453,7 +453,7 @@ grl_data_set_binary (GrlData *data, GrlKeyID key, const guint8 *buf, gsize size)
/**
* grl_data_get_binary:
* @data: data to inspect
- * @key: (type Grl.KeyID): key to use
+ * @key: (type GObject.ParamSpec): key to use
* @size: (out): location to store the buffer size
*
* Returns the first binary value associated with @key from @data. If @key has
@@ -484,7 +484,7 @@ grl_data_get_binary(GrlData *data, GrlKeyID key, gsize *size)
/**
* grl_data_add:
* @data: data to change
- * @key: (type Grl.KeyID): key to add
+ * @key: (type GObject.ParamSpec): key to add
*
* Adds a new @key to @data, with no value. If key already exists, it does
* nothing.
@@ -502,7 +502,7 @@ grl_data_add (GrlData *data, GrlKeyID key)
/**
* grl_data_remove:
* @data: data to change
- * @key: (type Grl.KeyID): key to remove
+ * @key: (type GObject.ParamSpec): key to remove
*
* Removes the first value for @key from @data. If there are other keys related
* to @key their values will also be removed from @data.
@@ -520,7 +520,7 @@ grl_data_remove (GrlData *data, GrlKeyID key)
/**
* grl_data_has_key:
* @data: data to inspect
- * @key: (type Grl.KeyID): key to search
+ * @key: (type GObject.ParamSpec): key to search
*
* Checks if @key is in @data.
*
@@ -549,7 +549,7 @@ grl_data_has_key (GrlData *data, GrlKeyID key)
*
* Returns a list with keys contained in @data.
*
- * Returns: (transfer container) (element-type Grl.KeyID): an array with the
+ * Returns: (transfer container) (element-type GObject.ParamSpec): an array with the
* keys. The content of the list should not be modified or freed. Use
* g_list_free() when done using the list.
*
@@ -584,7 +584,7 @@ grl_data_get_keys (GrlData *data)
/**
* grl_data_key_is_known:
* @data: data to inspect
- * @key: (type Grl.KeyID): key to search
+ * @key: (type GObject.ParamSpec): key to search
*
* Checks if the @key has a first value in @data.
*
@@ -661,7 +661,7 @@ grl_data_add_related_keys (GrlData *data,
/**
* grl_data_add_string:
* @data: data to append
- * @key: (type Grl.KeyID): key to append
+ * @key: (type GObject.ParamSpec): key to append
* @strvalue: the new value
*
* Appends a new string value for @key in @data.
@@ -686,7 +686,7 @@ grl_data_add_string (GrlData *data,
/**
* grl_data_add_int:
* @data: data to append
- * @key: (type Grl.KeyID): key to append
+ * @key: (type GObject.ParamSpec): key to append
* @intvalue: the new value
*
* Appends a new int value for @key in @data.
@@ -711,7 +711,7 @@ grl_data_add_int (GrlData *data,
/**
* grl_data_add_float:
* @data: data to append
- * @key: (type Grl.KeyID): key to append
+ * @key: (type GObject.ParamSpec): key to append
* @floatvalue: the new value
*
* Appends a new float value for @key in @data.
@@ -736,7 +736,7 @@ grl_data_add_float (GrlData *data,
/**
* grl_data_add_binary:
* @data: data to append
- * @key: (type Grl.KeyID): key to append
+ * @key: (type GObject.ParamSpec): key to append
* @buf: the buffer containing the new value
* @size: size of buffer
*
diff --git a/src/data/grl-related-keys.c b/src/data/grl-related-keys.c
index aec5489..5baaa97 100644
--- a/src/data/grl-related-keys.c
+++ b/src/data/grl-related-keys.c
@@ -195,7 +195,7 @@ grl_related_keys_new_with_keys (GrlKeyID key,
/**
* grl_related_keys_get:
* @relkeys: set of related keys to retrieve value
- * @key: (type Grl.KeyID): key to look up.
+ * @key: (type GObject.ParamSpec): key to look up.
*
* Get the value associated with @key from @relkeys. If it does not contain any
* value, %NULL will be returned.
@@ -218,7 +218,7 @@ grl_related_keys_get (GrlRelatedKeys *relkeys,
/**
* grl_related_keys_set:
* @relkeys: set of related keys to modify
- * @key: (type Grl.KeyID): key to change or add
+ * @key: (type GObject.ParamSpec): key to change or add
* @value: the new value
*
* Sets the value associated with @key into @relkeys. Old value is freed and
@@ -263,7 +263,7 @@ grl_related_keys_set (GrlRelatedKeys *relkeys,
/**
* grl_related_keys_set_string:
* @relkeys: set of related keys to modify
- * @key: (type Grl.KeyID): key to change or add
+ * @key: (type GObject.ParamSpec): key to change or add
* @strvalue: the new value
*
* Sets the value associated with @key into @relkeys. @key must have been
@@ -290,7 +290,7 @@ grl_related_keys_set_string (GrlRelatedKeys *relkeys,
/**
* grl_related_keys_get_string:
* @relkeys: set of related keys to inspect
- * @key: (type Grl.KeyID): key to use
+ * @key: (type GObject.ParamSpec): key to use
*
* Returns the value associated with @key from @relkeys. If @key has no value,
* or value is not string, or @key is not in @relkeys, then %NULL is returned.
@@ -316,7 +316,7 @@ grl_related_keys_get_string (GrlRelatedKeys *relkeys,
/**
* grl_related_keys_set_int:
* @relkeys: set of related keys to change
- * @key: (type Grl.KeyID): key to change or add
+ * @key: (type GObject.ParamSpec): key to change or add
* @intvalue: the new value
*
* Sets the value associated with @key into @relkeys. @key must have been
@@ -338,7 +338,7 @@ grl_related_keys_set_int (GrlRelatedKeys *relkeys,
/**
* grl_related_keys_get_int:
* @relkeys: set of related keys to inspect
- * @key: (type Grl.KeyID): key to use
+ * @key: (type GObject.ParamSpec): key to use
*
* Returns the value associated with @key from @relkeys. If @key has no value,
* or value is not a gint, or @key is not in @relkeys, then 0 is returned.
@@ -363,7 +363,7 @@ grl_related_keys_get_int (GrlRelatedKeys *relkeys,
/**
* grl_related_keys_set_float:
* @relkeys: set of related keys to change
- * @key: (type Grl.KeyID): key to change or add
+ * @key: (type GObject.ParamSpec): key to change or add
* @floatvalue: the new value
*
* Sets the value associated with @key into @relkeys. @key must have been
@@ -385,7 +385,7 @@ grl_related_keys_set_float (GrlRelatedKeys *relkeys,
/**
* grl_related_keys_get_float:
* @relkeys: set of related keys to inspect
- * @key: (type Grl.KeyID): key to use
+ * @key: (type GObject.ParamSpec): key to use
*
* Returns the value associated with @key from @relkeys. If @key has no value,
* or value is not a gfloat, or @key is not in @relkeys, then 0 is returned.
@@ -410,7 +410,7 @@ grl_related_keys_get_float (GrlRelatedKeys *relkeys,
/**
* grl_related_keys_set_binary:
* @relkeys: set of related keys to change
- * @key: (type Grl.KeyID): key to change or add
+ * @key: (type GObject.ParamSpec): key to change or add
* @buf: buffer holding the relkeys
* @size: size of the buffer
*
@@ -441,7 +441,7 @@ grl_related_keys_set_binary (GrlRelatedKeys *relkeys,
/**
* grl_related_keys_get_binary:
* @relkeys: set of related keys to inspect
- * @key: (type Grl.KeyID): key to use
+ * @key: (type GObject.ParamSpec): key to use
* @size: (out): location to store the buffer size
*
* Returns the value associated with @key from @relkeys. If @key has no value,
@@ -475,7 +475,7 @@ grl_related_keys_get_binary (GrlRelatedKeys *relkeys,
/**
* grl_related_keys_add:
* @relkeys: set of related keys to change
- * @key: (type Grl.KeyID): key to add
+ * @key: (type GObject.ParamSpec): key to add
*
* Adds a new @key to @relkeys, with no value. If @key already exists, it does
* nothing.
@@ -494,7 +494,7 @@ grl_related_keys_add (GrlRelatedKeys *relkeys,
/**
* grl_related_keys_has_key:
* @relkeys: set of related keys to inspect
- * @key: (type Grl.KeyID): key to search
+ * @key: (type GObject.ParamSpec): key to search
*
* Checks if @key is in @relkeys.
*
@@ -520,7 +520,7 @@ grl_related_keys_has_key (GrlRelatedKeys *relkeys,
* %FALSE, only those keys in @relkeys that have actually a value will be
* returned.
*
- * Returns: (transfer container) (element-type Grl.KeyID): an array
+ * Returns: (transfer container) (element-type GObject.ParamSpec): an array
* with the keys. The content of the list should not be modified or freed. Use
* g_list_free() when done using the list.
*
@@ -546,7 +546,7 @@ grl_related_keys_get_keys (GrlRelatedKeys *relkeys,
/**
* grl_related_keys_key_is_known:
* @relkeys: set of related keys to inspect
- * @key: (type Grl.KeyID): key to search
+ * @key: (type GObject.ParamSpec): key to search
*
* Checks if @key has a value in @relkeys.
*
diff --git a/src/grl-plugin-registry.c b/src/grl-plugin-registry.c
index 6bc150c..93f6786 100644
--- a/src/grl-plugin-registry.c
+++ b/src/grl-plugin-registry.c
@@ -895,8 +895,8 @@ grl_plugin_registry_lookup_metadata_key (GrlPluginRegistry *registry,
*
* @key is included in that list.
*
- * Returns: (element-type Grl.KeyID) (transfer none): a #GList of related
- * keys, or @NULL if key is invalid.
+ * Returns: (element-type GObject.ParamSpec) (transfer none): a #GList of
+ * related keys, or @NULL if key is invalid.
*
* Since: 0.1.10
**/
--
1.7.1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]