summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Laniel <dlaniel@entrouvert.com>2008-05-30 12:08:24 +0000
committerDamien Laniel <dlaniel@entrouvert.com>2008-05-30 12:08:24 +0000
commit14f7d3fc2acfa8d3fb4883e52210846ab6ae2b75 (patch)
tree98ef15a233f5e1277a4a0257d3a2655d25e44a04
parenta0fdce3411192dd0dfa318f7fac01f2e9cdea533 (diff)
downloadlasso-14f7d3fc2acfa8d3fb4883e52210846ab6ae2b75.tar.gz
lasso-14f7d3fc2acfa8d3fb4883e52210846ab6ae2b75.tar.xz
lasso-14f7d3fc2acfa8d3fb4883e52210846ab6ae2b75.zip
fixed too long lines and remove some blank lines
-rw-r--r--lasso/id-wsf/data_service.c3
-rw-r--r--lasso/utils.h16
-rw-r--r--lasso/xml/id-wsf-2.0/disco_svc_md_association_add_response.h5
-rw-r--r--lasso/xml/id-wsf-2.0/disco_svc_md_association_delete_response.h5
-rw-r--r--lasso/xml/id-wsf-2.0/disco_svc_md_association_query_response.h5
5 files changed, 20 insertions, 14 deletions
diff --git a/lasso/id-wsf/data_service.c b/lasso/id-wsf/data_service.c
index a66a5165..42377426 100644
--- a/lasso/id-wsf/data_service.c
+++ b/lasso/id-wsf/data_service.c
@@ -854,7 +854,8 @@ lasso_data_service_process_modify_response_msg(LassoDataService *service, const
g_return_val_if_fail(soap_msg != NULL, LASSO_PARAM_ERROR_INVALID_VALUE);
envelope = LASSO_SOAP_ENVELOPE(lasso_node_new_from_dump(soap_msg));
- if (envelope == NULL || ! envelope->Body || ! envelope->Body->any || ! LASSO_IS_NODE(envelope->Body->any->data)) {
+ if (envelope == NULL || ! envelope->Body || ! envelope->Body->any ||
+ ! LASSO_IS_NODE(envelope->Body->any->data)) {
return critical_error(LASSO_PROFILE_ERROR_INVALID_MSG);
}
diff --git a/lasso/utils.h b/lasso/utils.h
index 05021d39..e610133a 100644
--- a/lasso/utils.h
+++ b/lasso/utils.h
@@ -28,7 +28,9 @@
/* Assignment and list appending */
#define g_assign_string(dest,src) { void *t = g_strdup(src); if (dest) g_free(dest); dest = t; }
#define g_assign_new_string(dest,src) { if (dest) g_free(dest); dest = src; }
-#define g_assign_gobject(dest,src) { if (src) g_object_ref(src); if (dest) g_object_unref(dest); dest = (void*)(src); }
+#define g_assign_gobject(dest,src) {
+ if (src) g_object_ref(src); if (dest) g_object_unref(dest); dest = (void*)(src);
+}
#define g_assign_new_gobject(dest,src) { if (dest) g_object_unref(dest); dest = (void*)(src); }
#define g_list_add_gobject(dest, src) { dest = g_list_append(dest, g_object_ref(src)); }
#define g_list_add_new_gobject(dest, src) { dest = g_list_append(dest, src); }
@@ -38,10 +40,16 @@
/* Freeing */
#define g_release(dest) { if (dest) { g_free(dest); dest = NULL; } }
#define g_release_gobject(dest) { if (dest) { g_object_unref(dest); dest = NULL; } }
-#define g_release_list_of_strings(dest) { if (dest) { g_list_foreach(dest, (GFunc)g_free); g_list_free(dest); dest = NULL; } }
-#define g_release_list_of_gobjects(dest) { if (dest) { g_list_foreach(dest, (GFunc)g_object_unref); g_list_free(dest); dest = NULL; } }
+#define g_release_list_of_strings(dest) {
+ if (dest) { g_list_foreach(dest, (GFunc)g_free); g_list_free(dest); dest = NULL; }
+}
+#define g_release_list_of_gobjects(dest) { if (dest) {
+ g_list_foreach(dest, (GFunc)g_object_unref); g_list_free(dest); dest = NULL; }
+}
#define g_release_list(dest) { if (dest) { g_list_free(dest); dest = NULL; } }
-#define g_unlink_and_release_node(node) { if (node) { xmlUnlinkNode(node); xmlFreeNode(node); node = NULL; } }
+#define g_unlink_and_release_node(node) {
+ if (node) { xmlUnlinkNode(node); xmlFreeNode(node); node = NULL; }
+}
/* Bad param handling */
#define g_return_val_if_invalid_param(kind, name, val) \
diff --git a/lasso/xml/id-wsf-2.0/disco_svc_md_association_add_response.h b/lasso/xml/id-wsf-2.0/disco_svc_md_association_add_response.h
index 29322b5f..8caa603c 100644
--- a/lasso/xml/id-wsf-2.0/disco_svc_md_association_add_response.h
+++ b/lasso/xml/id-wsf-2.0/disco_svc_md_association_add_response.h
@@ -76,9 +76,8 @@ struct _LassoIdWsf2DiscoSvcMDAssociationAddResponseClass {
};
LASSO_EXPORT GType lasso_idwsf2_disco_svc_md_association_add_response_get_type(void);
-LASSO_EXPORT LassoIdWsf2DiscoSvcMDAssociationAddResponse* lasso_idwsf2_disco_svc_md_association_add_response_new(void);
-
-
+LASSO_EXPORT LassoIdWsf2DiscoSvcMDAssociationAddResponse*
+ lasso_idwsf2_disco_svc_md_association_add_response_new(void);
#ifdef __cplusplus
}
diff --git a/lasso/xml/id-wsf-2.0/disco_svc_md_association_delete_response.h b/lasso/xml/id-wsf-2.0/disco_svc_md_association_delete_response.h
index de11bf5a..8e14aa9f 100644
--- a/lasso/xml/id-wsf-2.0/disco_svc_md_association_delete_response.h
+++ b/lasso/xml/id-wsf-2.0/disco_svc_md_association_delete_response.h
@@ -76,9 +76,8 @@ struct _LassoIdWsf2DiscoSvcMDAssociationDeleteResponseClass {
};
LASSO_EXPORT GType lasso_idwsf2_disco_svc_md_association_delete_response_get_type(void);
-LASSO_EXPORT LassoIdWsf2DiscoSvcMDAssociationDeleteResponse* lasso_idwsf2_disco_svc_md_association_delete_response_new(void);
-
-
+LASSO_EXPORT LassoIdWsf2DiscoSvcMDAssociationDeleteResponse*
+ lasso_idwsf2_disco_svc_md_association_delete_response_new(void);
#ifdef __cplusplus
}
diff --git a/lasso/xml/id-wsf-2.0/disco_svc_md_association_query_response.h b/lasso/xml/id-wsf-2.0/disco_svc_md_association_query_response.h
index 22bda6bf..d90139af 100644
--- a/lasso/xml/id-wsf-2.0/disco_svc_md_association_query_response.h
+++ b/lasso/xml/id-wsf-2.0/disco_svc_md_association_query_response.h
@@ -77,9 +77,8 @@ struct _LassoIdWsf2DiscoSvcMDAssociationQueryResponseClass {
};
LASSO_EXPORT GType lasso_idwsf2_disco_svc_md_association_query_response_get_type(void);
-LASSO_EXPORT LassoIdWsf2DiscoSvcMDAssociationQueryResponse* lasso_idwsf2_disco_svc_md_association_query_response_new(void);
-
-
+LASSO_EXPORT LassoIdWsf2DiscoSvcMDAssociationQueryResponse*
+ lasso_idwsf2_disco_svc_md_association_query_response_new(void);
#ifdef __cplusplus
}