fred-mod-eppd
/build/mod-eppd-2.21.0/epp_gen.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2018 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  */
24 #ifndef EPP_GEN_H
25 #define EPP_GEN_H
26 
27 #include "epp_common.h"
28 
32 #define XSI "http://www.w3.org/2001/XMLSchema-instance"
33 
37 typedef enum {
42  /*
43  * following errors may appear only if response validation is turned on
44  */
49 } gen_status;
50 
62  void *pool,
63  const char *svid,
64  const char *date,
65  const eppd_server_xml_conf *xml_schema,
66  char **greeting);
67 
84  epp_context *epp_ctx, int validate, void *schema, epp_lang lang, epp_command_data *cdata,
85  char **response, qhead *valerr);
86 
93 #define epp_gen_dummy_response(p_epp_ctx, p_cdata, pp_response) \
94  epp_gen_response(p_epp_ctx, 0, NULL, LANG_EN, p_cdata, pp_response, NULL)
95 
96 #endif /* EPP_GEN_H */
97 
98 /* vim: set ts=4 sw=4: */
Definition: epp_gen.h:45
Definition: epp_gen.h:39
Definition: epp_common.h:909
gen_status epp_gen_greeting(void *pool, const char *svid, const char *date, const eppd_server_xml_conf *xml_schema, char **greeting)
Definition: epp_gen.c:121
Definition: epp_gen.h:38
Definition: epp_common.h:408
Definition: epp_gen.h:41
Definition: epp_common.h:45
gen_status
Definition: epp_gen.h:37
Definition: epp_gen.h:46
epp_lang
Definition: epp_common.h:145
gen_status epp_gen_response(epp_context *epp_ctx, int validate, void *schema, epp_lang lang, epp_command_data *cdata, char **response, qhead *valerr)
Definition: epp_gen.c:1010
Definition: epp_gen.h:47
Definition: epp_gen.h:40
Definition: epp_common.h:309
Definition: epp_gen.h:48