fred-mod-eppd
/build/mod-eppd-2.29.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
37typedef enum {
42 /*
43 * following errors may appear only if response validation is turned on
44 */
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: */
epp_lang
Definition: epp_common.h:151
gen_status
Definition: epp_gen.h:37
@ GEN_EWRITER
Definition: epp_gen.h:40
@ GEN_NOT_XML
Definition: epp_gen.h:45
@ GEN_OK
Definition: epp_gen.h:38
@ GEN_ESCHEMA
Definition: epp_gen.h:47
@ GEN_NOT_VALID
Definition: epp_gen.h:48
@ GEN_EBUFFER
Definition: epp_gen.h:39
@ GEN_EBUILD
Definition: epp_gen.h:41
@ GEN_EINTERNAL
Definition: epp_gen.h:46
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:122
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:1019
Definition: epp_common.h:932
Definition: epp_common.h:46
Definition: epp_common.h:416
Definition: epp_common.h:317