/* Copyright (C) 2017 Open Information Security Foundation
 *
 * You can copy, redistribute or modify this Program under the terms of
 * the GNU General Public License version 2 as published by the Free
 * Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * version 2 along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301, USA.
 */

/*
 * DO NOT EDIT. This file is automatically generated.
 */

#ifndef __RUST_APPLAYERTEMPLATE_TEMPLATE_GEN_H__
#define __RUST_APPLAYERTEMPLATE_TEMPLATE_GEN_H__

AppProto rs_template_probing_parser(const Flow * _flow, uint8_t _direction, const uint8_t * input, uint32_t input_len, uint8_t * _rdir);
void * rs_template_state_new(void);
void rs_template_state_free(void * state);
void rs_template_state_tx_free(void * state, uint64_t tx_id);
int32_t rs_template_parse_request(const Flow * _flow, void * state, void * pstate, const uint8_t * input, uint32_t input_len, const void * _data, uint8_t _flags);
int32_t rs_template_parse_response(const Flow * _flow, void * state, void * pstate, const uint8_t * input, uint32_t input_len, const void * _data, uint8_t _flags);
void * rs_template_state_get_tx(void * state, uint64_t tx_id);
uint64_t rs_template_state_get_tx_count(void * state);
int rs_template_state_progress_completion_status(uint8_t _direction);
int rs_template_tx_get_alstate_progress(void * tx, uint8_t _direction);
uint32_t rs_template_tx_get_logged(void * _state, void * tx);
void rs_template_tx_set_logged(void * _state, void * tx, uint32_t logged);
AppLayerDecoderEvents * rs_template_state_get_events(void * tx);
int rs_template_state_get_event_info(const char * _event_name, int * _event_id, AppLayerEventType * _event_type);
int8_t rs_template_state_get_event_info_by_id(int _event_id, const char ** _event_name, AppLayerEventType * _event_type);
AppLayerGetTxIterTuple rs_template_state_get_tx_iterator(uint8_t _ipproto, AppProto _alproto, void * state, uint64_t min_tx_id, uint64_t _max_tx_id, uint64_t * istate);
uint8_t rs_template_get_request_buffer(void * tx, const uint8_t ** buf, uint32_t * len);
uint8_t rs_template_get_response_buffer(void * tx, const uint8_t ** buf, uint32_t * len);
void rs_template_register_parser(void);

#endif /* ! __RUST_APPLAYERTEMPLATE_TEMPLATE_GEN_H__ */
