fred-mod-eppd-2.14.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 
60 epp_gen_greeting(void *pool, const char *svid, const char *date, char **greeting);
61 
79  int validate,
80  void *schema,
81  epp_lang lang,
82  epp_command_data *cdata,
83  char **response,
84  qhead *valerr);
85 
92 #define epp_gen_dummy_response(p_epp_ctx, p_cdata, pp_response) \
93  epp_gen_response(p_epp_ctx, 0, NULL, LANG_EN, p_cdata, pp_response, NULL)
94 
95 #endif /* EPP_GEN_H */
96 
97 /* 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:808
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:139
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:101
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:952
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:303
Response does not validate.
Definition: epp_gen.h:47
The most important structures, function definitions and routine declarations are found in this file...