1 /* |
1 /* |
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
3 * |
3 * |
4 * Copyright 2018 Olaf Wintermann. All rights reserved. |
4 * Copyright 2019 Olaf Wintermann. All rights reserved. |
5 * |
5 * |
6 * Redistribution and use in source and binary forms, with or without |
6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions are met: |
7 * modification, are permitted provided that the following conditions are met: |
8 * |
8 * |
9 * 1. Redistributions of source code must retain the above copyright |
9 * 1. Redistributions of source code must retain the above copyright |
87 if(!args) { |
87 if(!args) { |
88 print_usage(argv[0]); |
88 print_usage(argv[0]); |
89 return -1; |
89 return -1; |
90 } |
90 } |
91 |
91 |
|
92 sys_init(); |
92 xmlGenericErrorFunc fnc = xmlerrorfnc; |
93 xmlGenericErrorFunc fnc = xmlerrorfnc; |
93 initGenericErrorDefaultFunc(&fnc); |
94 initGenericErrorDefaultFunc(&fnc); |
94 ctx = dav_context_new(); |
95 ctx = dav_context_new(); |
95 dav_add_namespace(ctx, "apache", "http://apache.org/dav/props/"); |
96 dav_add_namespace(ctx, "apache", "http://apache.org/dav/props/"); |
96 int cfgret = load_config(ctx); |
97 int cfgret = load_config(ctx); |