[gupnp] Fix annotation warnings from g-ir-scanner



commit 800c9242ca9869ccf59486a8a61567351da40125
Author: Jens Georg <mail jensge org>
Date:   Sat May 14 14:18:41 2011 +0200

    Fix annotation warnings from g-ir-scanner

 libgupnp/gupnp-context.c          |    2 +-
 libgupnp/gupnp-control-point.c    |    4 ++--
 libgupnp/gupnp-device-info.c      |   10 +++++-----
 libgupnp/gupnp-resource-factory.c |    2 +-
 libgupnp/gupnp-service-info.c     |    2 +-
 libgupnp/gupnp-service-proxy.c    |    6 +++---
 libgupnp/gupnp-service.c          |    4 ++--
 libgupnp/gupnp-service.h          |    3 ---
 8 files changed, 15 insertions(+), 18 deletions(-)
---
diff --git a/libgupnp/gupnp-context.c b/libgupnp/gupnp-context.c
index 8934343..138d3a4 100644
--- a/libgupnp/gupnp-context.c
+++ b/libgupnp/gupnp-context.c
@@ -419,7 +419,7 @@ default_server_handler (SoupServer        *server,
  *
  * Get the #SoupServer HTTP server that GUPnP is using.
  *
- * Return value: The #SoupServer used by GUPnP. Do not unref this when finished.
+ * Returns: (transfer none): The #SoupServer used by GUPnP. Do not unref this when finished.
  **/
 SoupServer *
 gupnp_context_get_server (GUPnPContext *context)
diff --git a/libgupnp/gupnp-control-point.c b/libgupnp/gupnp-control-point.c
index 0b64fd9..7b907fb 100644
--- a/libgupnp/gupnp-control-point.c
+++ b/libgupnp/gupnp-control-point.c
@@ -1031,7 +1031,7 @@ gupnp_control_point_new_full (GUPnPContext         *context,
  *
  * Get the #GUPnPControlPoint associated with @control_point.
  *
- * Return value: The #GUPnPContext.
+ * Returns: (transfer none): The #GUPnPContext.
  **/
 GUPnPContext *
 gupnp_control_point_get_context (GUPnPControlPoint *control_point)
@@ -1088,7 +1088,7 @@ gupnp_control_point_list_service_proxies (GUPnPControlPoint *control_point)
  *
  * Get the #GUPnPResourceFactory used by the @control_point.
  *
- * Return value: A #GUPnPResourceFactory.
+ * Returns: (transfer none): A #GUPnPResourceFactory.
  **/
 GUPnPResourceFactory *
 gupnp_control_point_get_resource_factory (GUPnPControlPoint *control_point)
diff --git a/libgupnp/gupnp-device-info.c b/libgupnp/gupnp-device-info.c
index 0a4fb6e..9b9b484 100644
--- a/libgupnp/gupnp-device-info.c
+++ b/libgupnp/gupnp-device-info.c
@@ -371,7 +371,7 @@ gupnp_device_info_class_init (GUPnPDeviceInfoClass *klass)
  *
  * Get the #GUPnPResourceFactory used by the @device_info.
  *
- * Returns: A #GUPnPResourceFactory.
+ * Returns: (transfer none): A #GUPnPResourceFactory.
  **/
 GUPnPResourceFactory *
 gupnp_device_info_get_resource_factory (GUPnPDeviceInfo *info)
@@ -387,7 +387,7 @@ gupnp_device_info_get_resource_factory (GUPnPDeviceInfo *info)
  *
  * Get the associated #GUPnPContext.
  *
- * Returns: A #GUPnPContext.
+ * Returns: (transfer none): A #GUPnPContext.
  **/
 GUPnPContext *
 gupnp_device_info_get_context (GUPnPDeviceInfo *info)
@@ -936,7 +936,7 @@ resource_type_match (const char *query,
  * Get a #GList of strings that represent the device capabilities as announced 
  * in the device description file using the &lt;dlna:X_DLNACAP&gt; element.
  *
- * Return value: (element-type utf8): a #GList of newly allocated strings or
+ * Returns: (transfer full) (element-type utf8): a #GList of newly allocated strings or
  * %NULL if the device description doesn't contain the &lt;dlna:X_DLNACAP&gt;
  * element.
  **/
@@ -1109,7 +1109,7 @@ gupnp_device_info_list_device_types (GUPnPDeviceInfo *info)
  * this function a new object is created. The application must cache any used
  * devices if it wishes to keep them around and re-use them.
  *
- * Return value: A new #GUPnPDeviceInfo.
+ * Returns: (transfer full): A new #GUPnPDeviceInfo.
  **/
 GUPnPDeviceInfo *
 gupnp_device_info_get_device (GUPnPDeviceInfo *info,
@@ -1263,7 +1263,7 @@ gupnp_device_info_list_service_types (GUPnPDeviceInfo *info)
  * this function a new object is created. The application must cache any used
  * services if it wishes to keep them around and re-use them.
  *
- * Return value: A #GUPnPServiceInfo.
+ * Returns: (transfer full): A #GUPnPServiceInfo.
  **/
 GUPnPServiceInfo *
 gupnp_device_info_get_service (GUPnPDeviceInfo *info,
diff --git a/libgupnp/gupnp-resource-factory.c b/libgupnp/gupnp-resource-factory.c
index cd3ebd2..677eb47 100644
--- a/libgupnp/gupnp-resource-factory.c
+++ b/libgupnp/gupnp-resource-factory.c
@@ -120,7 +120,7 @@ gupnp_resource_factory_new (void)
  *
  * Get the default singleton #GUPnPResourceFactory object.
  *
- * Return value: A @GUPnPResourceFactory object.
+ * Returns: (transfer none): A @GUPnPResourceFactory object.
  **/
 GUPnPResourceFactory *
 gupnp_resource_factory_get_default (void)
diff --git a/libgupnp/gupnp-service-info.c b/libgupnp/gupnp-service-info.c
index c807c2d..db87c61 100644
--- a/libgupnp/gupnp-service-info.c
+++ b/libgupnp/gupnp-service-info.c
@@ -383,7 +383,7 @@ gupnp_service_info_class_init (GUPnPServiceInfoClass *klass)
  *
  * Get the #GUPnPContext associated with @info.
  *
- * Returns: A #GUPnPContext.
+ * Returns: (transfer none): A #GUPnPContext.
  **/
 GUPnPContext *
 gupnp_service_info_get_context (GUPnPServiceInfo *info)
diff --git a/libgupnp/gupnp-service-proxy.c b/libgupnp/gupnp-service-proxy.c
index c976c9b..ff4f260 100644
--- a/libgupnp/gupnp-service-proxy.c
+++ b/libgupnp/gupnp-service-proxy.c
@@ -610,7 +610,7 @@ gupnp_service_proxy_send_action_list (GUPnPServiceProxy *proxy,
  * gupnp_service_proxy_end_action() to check for errors, to retrieve return
  * values, and to free the #GUPnPServiceProxyAction.
  *
- * Return value: A #GUPnPServiceProxyAction handle. This will be freed when
+ * Returns: (transfer none): A #GUPnPServiceProxyAction handle. This will be freed when
  * gupnp_service_proxy_cancel_action() or
  * gupnp_service_proxy_end_action_valist().
  **/
@@ -834,7 +834,7 @@ write_in_parameter (const char *arg_name,
  * See gupnp_service_proxy_begin_action(); this version takes a va_list for
  * use by language bindings.
  *
- * Return value: A #GUPnPServiceProxyAction handle. This will
+ * Returns: (transfer none): A #GUPnPServiceProxyAction handle. This will
  * be freed when calling gupnp_service_proxy_cancel_action() or
  * gupnp_service_proxy_end_action_valist().
  **/
@@ -1528,7 +1528,7 @@ gupnp_service_proxy_add_notify (GUPnPServiceProxy              *proxy,
  * gupnp_service_proxy_remove_notify:
  * @proxy: A #GUPnPServiceProxy
  * @variable: The variable to add notification for
- * @callback: The callback to call when @variable changes
+ * @callback: (scope call): The callback to call when @variable changes
  * @user_data: User data for @callback
  *
  * Cancels the variable change notification for @callback and @user_data.
diff --git a/libgupnp/gupnp-service.c b/libgupnp/gupnp-service.c
index 6b5716c..03a2cd7 100644
--- a/libgupnp/gupnp-service.c
+++ b/libgupnp/gupnp-service.c
@@ -582,8 +582,8 @@ gupnp_service_action_set_valist (GUPnPServiceAction *action,
 /**
  * gupnp_service_action_set_values:
  * @action: A #GUPnPServiceAction
- * @arg_names: (element-type utf8) (transfer-none): A #GList of argument names
- * @arg_values: (element-type GValue) (transfer-none): The #GList of values (as
+ * @arg_names: (element-type utf8) (transfer none): A #GList of argument names
+ * @arg_values: (element-type GValue) (transfer none): The #GList of values (as
  * #GValues) that line up with @arg_names.
  *
  * Sets the specified action return values.
diff --git a/libgupnp/gupnp-service.h b/libgupnp/gupnp-service.h
index 0f0f3a9..1f56882 100644
--- a/libgupnp/gupnp-service.h
+++ b/libgupnp/gupnp-service.h
@@ -102,9 +102,6 @@ struct _GUPnPServiceClass {
 };
 
 
-GType
-gupnp_service_action_get_type (void);
-
 const char *
 gupnp_service_action_get_name     (GUPnPServiceAction *action);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]