fred-mod-eppd-2.16.0
epp_gen.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2007 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, version 2 of the License.
9  *
10  * FRED is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with FRED. If not, see <http://www.gnu.org/licenses/>.
17  */
23 #ifndef EPP_GEN_H
24 #define EPP_GEN_H
25 
26 #include "epp_common.h"
27 
31 #define XSI "http://www.w3.org/2001/XMLSchema-instance"
32 
36 typedef enum {
41  /*
42  * following errors may appear only if response validation is turned on
43  */
48 } gen_status;
49 
59 gen_status epp_gen_greeting(void *pool, const char *svid, const char *date, char **greeting);
60 
77  epp_context *epp_ctx, int validate, void *schema, epp_lang lang, epp_command_data *cdata,
78  char **response, qhead *valerr);
79 
86 #define epp_gen_dummy_response(p_epp_ctx, p_cdata, pp_response) \
87  epp_gen_response(p_epp_ctx, 0, NULL, LANG_EN, p_cdata, pp_response, NULL)
88 
89 #endif /* EPP_GEN_H */
90 
91 /* vim: set ts=4 sw=4: */
Something what is not xml was generated.
Definition: epp_gen.h:44
Could not create xml buffer.
Definition: epp_gen.h:38
This structure is central to the concept of the whole module.
Definition: epp_common.h:875
No error appeared, everything was allright.
Definition: epp_gen.h:37
Error when building xml document.
Definition: epp_gen.h:40
EPP context is a group of variables used often together.
Definition: epp_common.h:44
gen_status
XML generator status values.
Definition: epp_gen.h:36
Malloc failure during response validation.
Definition: epp_gen.h:45
epp_lang
definition of languages (english is default)
Definition: epp_common.h:138
gen_status epp_gen_greeting(void *pool, const char *svid, const char *date, char **greeting)
Routine makes up epp greeting frame.
Definition: epp_gen.c:111
gen_status epp_gen_response(epp_context *epp_ctx, int validate, void *schema, epp_lang lang, epp_command_data *cdata, char **response, qhead *valerr)
Generate command response in XML format.
Definition: epp_gen.c:893
Error when parsing xml schema used for validation.
Definition: epp_gen.h:46
Could not create xml writer.
Definition: epp_gen.h:39
Queue structure used on countless places throughout the program.
Definition: epp_common.h:302
Response does not validate.
Definition: epp_gen.h:47
The most important structures, function definitions and routine declarations are found in this file...