diff options
| author | Damien Laniel <dlaniel@entrouvert.com> | 2007-06-08 11:42:21 +0000 |
|---|---|---|
| committer | Damien Laniel <dlaniel@entrouvert.com> | 2007-06-08 11:42:21 +0000 |
| commit | 6bd1d65a1992c822a8fa37f12740f3d4d2176b15 (patch) | |
| tree | 83b4f7e2ee5f3a292bc32bc12ef7eb6cdaf3fea6 | |
| parent | 82bcbf0a8426cddaac30a9653d8aebc78287f984 (diff) | |
| download | lasso-6bd1d65a1992c822a8fa37f12740f3d4d2176b15.tar.gz lasso-6bd1d65a1992c822a8fa37f12740f3d4d2176b15.tar.xz lasso-6bd1d65a1992c822a8fa37f12740f3d4d2176b15.zip | |
removed lasso_idwsf2_data_service_get_personal_profile_email
| -rw-r--r-- | lasso/id-wsf-2.0/data_service.c | 46 | ||||
| -rw-r--r-- | lasso/id-wsf-2.0/data_service.h | 3 | ||||
| -rw-r--r-- | swig/Lasso-wsf2.i | 4 |
3 files changed, 0 insertions, 53 deletions
diff --git a/lasso/id-wsf-2.0/data_service.c b/lasso/id-wsf-2.0/data_service.c index df647073..bbae6a84 100644 --- a/lasso/id-wsf-2.0/data_service.c +++ b/lasso/id-wsf-2.0/data_service.c @@ -297,52 +297,6 @@ lasso_idwsf2_data_service_get_attribute_string(LassoIdWsf2DataService *service, return content; } -gchar* -lasso_idwsf2_data_service_get_personal_profile_email(LassoIdWsf2DataService *service, - const gchar *item_id) -{ - xmlNode *node; - xmlNode *child; - xmlChar *msgAccount = NULL; - xmlChar *msgProvider = NULL; - gchar *email = NULL; - - g_return_val_if_fail(LASSO_IS_IDWSF2_DATA_SERVICE(service), NULL); - - node = lasso_idwsf2_data_service_get_attribute_node(service, item_id); - - if (node == NULL) { - return NULL; - } - - for (child = node->children; child != NULL; child = child->next) { - if (child->type != XML_ELEMENT_NODE) { - child = child->next; - continue; - } - - if (strcmp((gchar *)child->name, "MsgAccount") == 0) { - msgAccount = xmlNodeGetContent(child); - } else if (strcmp((gchar *)child->name, "MsgProvider") == 0) { - msgProvider = xmlNodeGetContent(child); - } - - if (msgAccount != NULL && msgProvider != NULL) { - break; - } - } - - if (msgAccount != NULL && msgProvider != NULL) { - email = g_strdup_printf("%s@%s", msgAccount, msgProvider); - } - - xmlFree(msgAccount); - xmlFree(msgProvider); - xmlFreeNode(node); - - return email; -} - /*****************************************************************************/ /* private methods */ /*****************************************************************************/ diff --git a/lasso/id-wsf-2.0/data_service.h b/lasso/id-wsf-2.0/data_service.h index 4d78db89..358a20f0 100644 --- a/lasso/id-wsf-2.0/data_service.h +++ b/lasso/id-wsf-2.0/data_service.h @@ -97,9 +97,6 @@ LASSO_EXPORT xmlNode* lasso_idwsf2_data_service_get_attribute_node(LassoIdWsf2Da LASSO_EXPORT gchar* lasso_idwsf2_data_service_get_attribute_string(LassoIdWsf2DataService *service, const gchar *item_id); -LASSO_EXPORT gchar* lasso_idwsf2_data_service_get_personal_profile_email( - LassoIdWsf2DataService *service, const gchar *item_id); - #ifdef __cplusplus } #endif /* __cplusplus */ diff --git a/swig/Lasso-wsf2.i b/swig/Lasso-wsf2.i index d7bedaa7..fc6f8062 100644 --- a/swig/Lasso-wsf2.i +++ b/swig/Lasso-wsf2.i @@ -381,9 +381,6 @@ typedef struct { %newobject getAttributeString; char* getAttributeString(const char *item_id = NULL); - - %newobject getPersonalProfileEmail; - char* getPersonalProfileEmail(const char *item_id = NULL); } %{ @@ -455,7 +452,6 @@ typedef struct { #define LassoIdWsf2DataService_getAttributeNode(self, itemId) \ get_xml_string(lasso_idwsf2_data_service_get_attribute_node(self, itemId)) #define LassoIdWsf2DataService_getAttributeString lasso_idwsf2_data_service_get_attribute_string -#define LassoIdWsf2DataService_getPersonalProfileEmail lasso_idwsf2_data_service_get_personal_profile_email %} |
