fred-mod-eppd
epp_xmlcommon.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2021 CZ.NIC, z. s. p. o.
3  *
4  * This file is part of FRED.
5  *
6  * FRED is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * FRED is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with FRED. If not, see <https://www.gnu.org/licenses/>.
18  */
26 #ifndef EPP_XMLCOMMON_H
27 #define EPP_XMLCOMMON_H
28 
29 #include <libxml/tree.h>
30 #include <libxml/xmlschemas.h>
31 
33 #define NS_EPP "urn:ietf:params:xml:ns:epp-1.0"
34 
35 #define NS_CONTACT "http://www.nic.cz/xml/epp/contact-1.6"
36 
37 #define NS_DOMAIN "http://www.nic.cz/xml/epp/domain-1.4"
38 
39 #define NS_NSSET "http://www.nic.cz/xml/epp/nsset-1.2"
40 
41 #define NS_KEYSET "http://www.nic.cz/xml/epp/keyset-1.3"
42 
43 #define NS_FRED "http://www.nic.cz/xml/epp/fred-1.5"
44 
45 #define NS_ENUMVAL "http://www.nic.cz/xml/epp/enumval-1.2"
46 
47 #define NS_EXTRAADDR "http://www.nic.cz/xml/epp/extra-addr-1.0"
48 
49 
51 #define LOC_EPP NS_EPP " epp-1.0.xsd"
52 
53 #define LOC_CONTACT NS_CONTACT " contact-1.6.4.xsd"
54 
55 #define LOC_DOMAIN NS_DOMAIN " domain-1.4.1.xsd"
56 
57 #define LOC_NSSET NS_NSSET " nsset-1.2.1.xsd"
58 
59 #define LOC_KEYSET NS_KEYSET " keyset-1.3.1.xsd"
60 
61 #define LOC_FRED NS_FRED " fred-1.5.0.xsd"
62 
63 #define LOC_ENUMVAL NS_ENUMVAL " enumval-1.2.0.xsd"
64 
65 #define LOC_EXTRAADDR NS_EXTRAADDR " extra-addr-1.0.xsd"
66 
70 typedef enum {
75 } valid_status;
76 
86 valid_status validate_doc(void *pool, xmlSchemaPtr schema, xmlDocPtr doc, qhead *err_list);
87 
101 char *epp_getSubtree(void *pool, epp_command_data *cdata, const char *xpath_expr, int position);
102 
103 #endif /* EPP_XMLCOMMON_H */
Definition: epp_xmlcommon.h:72
valid_status
Definition: epp_xmlcommon.h:70
valid_status validate_doc(void *pool, xmlSchemaPtr schema, xmlDocPtr doc, qhead *err_list)
Definition: epp_xmlcommon.c:136
char * epp_getSubtree(void *pool, epp_command_data *cdata, const char *xpath_expr, int position)
Definition: epp_xmlcommon.c:169
Definition: epp_xmlcommon.h:73
Definition: epp_common.h:909
Definition: epp_xmlcommon.h:74
Definition: epp_xmlcommon.h:71
Definition: epp_common.h:309