src/cache.c [3431:3449]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - break; case ETAG: (*((dav_node **) userdata))->etag = xml_data; break; default: free(xml_data); xml_data = NULL; return -1; } xml_data = NULL; return 0; } /* Stores xml_data in the appropriate member of node userdata. state indicates the member of node. return value : 0 on success, -1 if an error occurs. */ static int - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - src/cache.c [3465:3487]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - break; case ETAG: (*((dav_node **) userdata))->etag = xml_data; break; default: free(xml_data); xml_data = NULL; return -1; } xml_data = NULL; return 0; } /* Will be called when the start tag of a XML-element is found, and tests wheather it is a BACKUP elemt. In this case parent must be ROOT. userdata will be set to the newly created node backup and also the global variable backup will be set. return value : 0 not responsible for this kind of element. BACKUP if it is the backup element -1 XML error, parent is not root. */ static int - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -