Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
afw_command_local_parse.h
Go to the documentation of this file.
1 // See the 'COPYING' file in the project root for licensing information.
2 /*
3  * Parse functions to support afw command local server
4  *
5  * Copyright (c) 2010-2023 Clemson University
6  *
7  */
8 
9 #ifndef __AFW_COMMAND_LOCAL_PARSE_H__
10 #define __AFW_COMMAND_LOCAL_PARSE_H__
11 
12 #include "afw_interface.h"
15 
29 
30 
31 typedef enum {
32  afw_command_local_parse_token_type_invalid,
33  afw_command_local_parse_token_type_colon,
34  afw_command_local_parse_token_type_end_of_input,
35  afw_command_local_parse_token_type_end_of_line,
36  afw_command_local_parse_token_type_string
37 } afw_command_local_parse_token_type_t;
38 
39 
40 typedef struct {
41  const afw_pool_t *p;
42  afw_xctx_t *xctx;
43  const afw_memory_t *input;
44  const afw_byte_t *cursor;
45  const afw_byte_t *end;
46  const afw_utf8_t *string; // Only for token type string
47  afw_size_t line_number;
48  afw_command_local_parse_token_type_t token_type;
50 
51 
53 afw_command_local_parse_request(
55  const afw_memory_t **input,
56  afw_xctx_t *xctx);
57 
58 
59 AFW_END_DECLARES
60 
61 #endif /* __AFW_COMMAND_LOCAL_PARSE_H__ */
62 
Adaptive Framework declare helpers for afw_command_.
#define AFW_COMMAND_DECLARE_INTERNAL(type)
Declare an internal function for /src/afw_command/ source*.h files.
Implementation for interface afw_command_local.
#define AFW_BEGIN_DECLARES
Interfaceafw_interface header.
unsigned char afw_byte_t
A byte of memory (unsigned).
Definition: afw_common.h:208
apr_size_t afw_size_t
size_t.
Definition: afw_common.h:151
Self typedef for afw_command_local implementation of afw_server.
Struct for memory pointer and size.
Definition: afw_common.h:505
Interface afw_pool public struct.
NFC normalized UTF-8 string.
Definition: afw_common.h:545
Interface afw_xctx public struct.