static int init_from_xml(LassoNode *node, xmlNode *xmlnode) { int rc = 0; LassoDstModifyResponse *response = LASSO_DST_MODIFY_RESPONSE(node); rc = parent_class->init_from_xml(node, xmlnode); if (rc) return rc; response->hrefServiceType = g_strdup((char*)xmlnode->ns->href); response->prefixServiceType = lasso_get_prefix_for_dst_service_href( response->hrefServiceType); if (response->prefixServiceType == NULL) { /* XXX: what to do here ? */ } return 0; }
static int init_from_xml(LassoNode *node, xmlNode *xmlnode) { LassoDstModify *modify = LASSO_DST_MODIFY(node); int rc = 0; rc = parent_class->init_from_xml(node, xmlnode); if (rc) { return rc; } modify->hrefServiceType = g_strdup((char*)xmlnode->ns->href); modify->prefixServiceType = lasso_get_prefix_for_dst_service_href( modify->hrefServiceType); if (modify->prefixServiceType == NULL) { /* XXX: what to do here ? */ } return 0; }