fred-mod-eppd
/build/mod-eppd-2.26.1/epp_parser.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_PARSER_H
25 #define EPP_PARSER_H
26 
33 typedef enum {
43  /*
44  * when following status values are returned, connection is closed
45  */
56 
62 typedef enum {
63  EPP_RED_UNKNOWN_CMD,
64  EPP_RED_LOGIN,
65  EPP_RED_LOGOUT,
66  EPP_RED_CHECK,
67  EPP_RED_INFO,
68  EPP_RED_POLL,
69  EPP_RED_TRANSFER,
70  EPP_RED_CREATE,
71  EPP_RED_DELETE,
72  EPP_RED_RENEW,
73  EPP_RED_UPDATE,
74  EPP_RED_EXTCMD,
75  EPP_RED_HELLO
77 
85 void *epp_parser_init(const char *url_schema);
86 
93 void epp_parser_init_cleanup(void *schema);
94 
109  epp_context *epp_ctx, int loggedin, void *schema, const char *request, unsigned bytes,
110  epp_command_data **cdata, const eppd_server_xml_conf *xml_schema, epp_red_command_type *cmd_type);
111 
117 void epp_parser_request_cleanup(void *cdata_arg);
118 
119 
120 #endif /* EPP_PARSER_H */
parser_status
parser_status
Definition: epp_parser.h:33
epp_red_command_type
epp_red_command_type
Definition: epp_parser.h:62
epp_parser_init_cleanup
void epp_parser_init_cleanup(void *schema)
Definition: epp_parser.c:580
eppd_server_xml_conf
Definition: epp_common.h:412
PARSER_CMD_LOGOUT
@ PARSER_CMD_LOGOUT
Definition: epp_parser.h:35
PARSER_CMD_LOGIN
@ PARSER_CMD_LOGIN
Definition: epp_parser.h:34
epp_parser_init
void * epp_parser_init(const char *url_schema)
Definition: epp_parser.c:532
epp_context
Definition: epp_common.h:45
PARSER_NOT_COMMAND
@ PARSER_NOT_COMMAND
Definition: epp_parser.h:46
epp_parser_request_cleanup
void epp_parser_request_cleanup(void *cdata_arg)
Definition: epp_parser.c:587
PARSER_HELLO
@ PARSER_HELLO
Definition: epp_parser.h:42
PARSER_ESCHEMA
@ PARSER_ESCHEMA
Definition: epp_parser.h:48
PARSER_CMD_OTHER
@ PARSER_CMD_OTHER
Definition: epp_parser.h:36
PARSER_EINTERNAL
@ PARSER_EINTERNAL
Definition: epp_parser.h:54
PARSER_NOT_VALID
@ PARSER_NOT_VALID
Definition: epp_parser.h:37
epp_parse_command
parser_status epp_parse_command(epp_context *epp_ctx, int loggedin, void *schema, const char *request, unsigned bytes, epp_command_data **cdata, const eppd_server_xml_conf *xml_schema, epp_red_command_type *cmd_type)
Definition: epp_parser.c:3462
epp_command_data
Definition: epp_common.h:920
PARSER_NOT_XML
@ PARSER_NOT_XML
Definition: epp_parser.h:47