Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
afw_command_internal.h
Go to the documentation of this file.
1 // See the 'COPYING' file in the project root for licensing information.
2 /*
3  * afw_command internal header
4  *
5  * Copyright (c) 2010-2023 Clemson University
6  *
7  */
8 
9 #ifndef __AFW_COMMAND_INTERNAL_H__
10 #define __AFW_COMMAND_INTERNAL_H__
11 
12 #include "afw_doxygen.h"
13 #include "afw_interface.h"
16 
33 
37 typedef struct afw_command_self_s {
38  afw_xctx_t *xctx;
39  const afw_object_t *environment_variables_object;
40  int index_first_non_option;
41 
42  const afw_utf8_t *source_location;
43 
44  union {
45  afw_utf8_t in;
46  const afw_utf8_z_t * in_z;
47  };
48 
49  union {
50  afw_utf8_t conf;
51  const afw_utf8_z_t * conf_z;
52  };
53 
54  union {
55  afw_utf8_t expression;
56  const afw_utf8_z_t * expression_z;
57  };
58 
59  union {
60  afw_utf8_t extension;
61  const afw_utf8_z_t * extension_z;
62  };
63 
64  union {
65  afw_utf8_t type_in;
66  const afw_utf8_z_t *type_in_z;
67  };
68 
69  union {
70  afw_utf8_t type_out;
71  const afw_utf8_z_t *type_out_z;
72  };
73 
74  union {
75  afw_utf8_t local_mode_out;
76  const afw_utf8_z_t *local_mode_z;
77  };
78 
79  const afw_content_type_t *content_type_in;
80 
81  const afw_content_type_t *content_type_out;
82 
83  const afw_memory_t *in_content;
84 
85  FILE *fd_input;
86 
87  FILE *fd_output;
88 
89  const afw_server_t *local_server;
90 
91  apr_array_header_t *input_buffer;
92 
93  afw_utf8_octet_get_cb_t callback;
94 
95  void *callback_data;
96 
97  afw_compile_type_t compile_option;
98 
99  afw_compile_residual_check_t residual_check;
100 
101  afw_boolean_t help_option;
102 
103  afw_boolean_t interactive_mode;
104 
105  afw_boolean_t check_mode;
106 
107  afw_boolean_t can_span_lines;
108 
109  afw_boolean_t read_full;
110 
111  afw_boolean_t terminal_error;
112 
113  afw_boolean_t eof;
114 
115  int local_model_fd_num;
116 
118 
119 AFW_END_DECLARES
120 
123 #endif /* __AFW_COMMAND_INTERNAL_H__ */
Adaptive Framework register generated (afw_command) header.
Adaptive Framework Version (afw_command_) header.
#define AFW_BEGIN_DECLARES
Adaptive Framework Base Package main Doxygen groups.
Interfaceafw_interface header.
struct afw_command_self_s afw_command_self_t
Self typedef for afw_command self.
_Bool afw_boolean_t
Definition: afw_common.h:373
int(* afw_utf8_octet_get_cb_t)(afw_utf8_octet_t *octet, void *data, afw_xctx_t *xctx)
Get an utf-8 octet (8 bits).
Definition: afw_common.h:255
afw_utf8_octet_t afw_utf8_z_t
NFC normalized UTF-8 null terminated string.
Definition: afw_common.h:523
enum afw_compile_type_e afw_compile_type_t
Compile type enum.
enum afw_compile_residual_check_e afw_compile_residual_check_t
Residual checking options.
Self typedef for afw_command self.
Interface afw_content_type public struct.
Struct for memory pointer and size.
Definition: afw_common.h:505
Interface afw_object public struct.
Interface afw_server public struct.
NFC normalized UTF-8 string.
Definition: afw_common.h:545
Interface afw_xctx public struct.