1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| #include <neon/ne_props.h> | | //auxiliary function | void* | start(void* p1, void* p2){ | return ne_malloc(256); | } | | //auxiliary function | void | end( | void* p1, | void* p2, | ne_status const* p3, | char const* p4){} | | int main(int argc, char *argv[]) | { | ne_session* sess = ne_session_create("scheme", "hostname", 1); | ne_propfind_handler* handler = ne_propfind_create(sess, "testdata/sample.txt", 1); | ne_xml_parser* parser = ne_propfind_get_parser(handler); | ne_uri* base = ne_uri_resolve(0, 0, 0); | void* userdata = ne_malloc(256); | ne_207_parser* p = ne_207_create(parser, base, userdata); | ne_207_set_propstat_handlers(p, &start, &end); //target call | return 0; | } |
|