[evolution-data-server/wip/camel-more-gobject] Fix a compiler warning, indentation and order in the .c file



commit bcda89132112958896b0e85904342e35aac62149
Author: Milan Crha <mcrha redhat com>
Date:   Tue Nov 1 18:08:43 2016 +0100

    Fix a compiler warning, indentation and order in the .c file

 src/camel/camel-service.c |   28 ++++++++++++++++------------
 src/camel/camel-service.h |    8 +++++---
 2 files changed, 21 insertions(+), 15 deletions(-)
---
diff --git a/src/camel/camel-service.c b/src/camel/camel-service.c
index 0f1b093..e53f7d1 100644
--- a/src/camel/camel-service.c
+++ b/src/camel/camel-service.c
@@ -2380,34 +2380,38 @@ camel_service_query_auth_types_finish (CamelService *service,
 }
 
 /**
- * camel_service_auth_type_free:
+ * camel_service_auth_type_copy:
  * @service_auth_type: an #CamelServiceAuthType
  *
- * Frees the @service_auth_type struct.
- * Does nothing in reality, needed for the introspection.
+ * Copies the @service_auth_type struct.
+ * Does nothing and returns the given object in reality, needed for the introspection.
+ *
+ * Returns: (transfer full): the copy of @service_auth_type
+ *
+ * Since: 3.24
  **/
-void
-camel_service_auth_type_free (CamelServiceAuthType *service_auth_type)
+CamelServiceAuthType *
+camel_service_auth_type_copy (const CamelServiceAuthType *service_auth_type)
 {
        /* This is needed for the introspection.
         * In the reality, each CamelSasl subclass has a static reference of it.
         */
+       return (CamelServiceAuthType *) service_auth_type;
 }
 
 /**
- * camel_service_auth_type_copy:
+ * camel_service_auth_type_free:
  * @service_auth_type: an #CamelServiceAuthType
  *
- * Copies the @service_auth_type struct.
- * Does nothing and returns the given object in reality, needed for the introspection.
+ * Frees the @service_auth_type struct.
+ * Does nothing in reality, needed for the introspection.
  *
- * Returns: (transfer full): the copy of @service_auth_type
+ * Since: 3.24
  **/
-CamelServiceAuthType *
-camel_service_auth_type_copy           (const CamelServiceAuthType* service_auth_type)
+void
+camel_service_auth_type_free (CamelServiceAuthType *service_auth_type)
 {
        /* This is needed for the introspection.
         * In the reality, each CamelSasl subclass has a static reference of it.
         */
-       return service_auth_type;
 }
diff --git a/src/camel/camel-service.h b/src/camel/camel-service.h
index ed9c06b..bb5cc21 100644
--- a/src/camel/camel-service.h
+++ b/src/camel/camel-service.h
@@ -218,9 +218,11 @@ GList *            camel_service_query_auth_types_finish
                                                 GAsyncResult *result,
                                                 GError **error);
 
-GType                                  camel_service_auth_type_get_type        (void);
-CamelServiceAuthType*  camel_service_auth_type_copy            (const CamelServiceAuthType* 
service_auth_type);
-void                                   camel_service_auth_type_free            (CamelServiceAuthType* 
service_auth_type);
+GType          camel_service_auth_type_get_type(void);
+CamelServiceAuthType *
+               camel_service_auth_type_copy    (const CamelServiceAuthType *service_auth_type);
+void           camel_service_auth_type_free    (CamelServiceAuthType *service_auth_type);
+
 G_END_DECLS
 
 #endif /* CAMEL_SERVICE_H */


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