Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
afw_server_impl_declares.h
Go to the documentation of this file.
1 // See the 'COPYING' file in the project root for licensing information.
2 /*
3  * Interface afw_interface Implementation Declares
4  *
5  * Copyright (c) 2010-2023 Clemson University
6  *
7  */
8 
10 
12 
74 #ifdef __AFW_SERVER_IMPL_DECLARES_H__
75 #ifndef AFW_SERVER_INF_ONLY
76 #error "afw_server_impl_declares.h already included."
77 #endif
78 #endif
79 #ifndef __AFW_SERVER_IMPL_DECLARES_H__
80 #ifdef AFW_SERVER_INF_ONLY
81 #error "afw_server_impl_declares.h must be included before AFW_SERVER_INF_ONLY."
82 #endif
83 #define __AFW_SERVER_IMPL_DECLARES_H__ 1
84 #endif
85 
86 #ifdef AFW_IMPLEMENTATION_ID
87 #define _AFW_IMPLEMENTATION_ID_ AFW_IMPLEMENTATION_ID
88 #else
89 #define _AFW_IMPLEMENTATION_ID_ "unspecified"
90 #endif
91 #ifdef AFW_IMPLEMENTATION_SPECIFIC
92 #define _AFW_IMPLEMENTATION_SPECIFIC_ AFW_IMPLEMENTATION_SPECIFIC
93 #else
94 #define _AFW_IMPLEMENTATION_SPECIFIC_ NULL
95 #endif
96 #ifndef AFW_SERVER_INF_ONLY
97 
98 #ifndef impl_afw_server_release
99 /* Declare method release */
100 AFW_DECLARE_STATIC(void)
102  const afw_server_t * instance,
103  afw_xctx_t * xctx);
104 #endif
105 
106 #ifndef impl_afw_server_run
107 /* Declare method run */
108 AFW_DECLARE_STATIC(void)
110  const afw_server_t * instance,
111  const afw_request_handler_t * handler,
112  afw_xctx_t * xctx);
113 #endif
114 #endif
115 
116 /* inf for interface afw_server */
117 #ifdef __BASE_FILE__
118 #define _AFW_IMPLEMENTATION_SOURCE_FILE_ __BASE_FILE__
119 #else
120 #define _AFW_IMPLEMENTATION_SOURCE_FILE_ __FILE__
121 #endif
122 #ifdef AFW_IMPLEMENTATION_INF_SPECIFIER
123 AFW_IMPLEMENTATION_INF_SPECIFIER(afw_server_inf_t)
124 #else
125 static const afw_server_inf_t
126 #endif
127 #ifdef AFW_IMPLEMENTATION_INF_LABEL
128 AFW_IMPLEMENTATION_INF_LABEL = {
129 #else
130 impl_afw_server_inf = {
131 #endif
132  {
133  AFW_UTF8_LITERAL("afw_server"),
134  AFW_UTF8_LITERAL(_AFW_IMPLEMENTATION_SOURCE_FILE_),
135  AFW_UTF8_LITERAL(_AFW_IMPLEMENTATION_ID_),
136  _AFW_IMPLEMENTATION_SPECIFIC_
137  },
140 };
141 
142 #undef _AFW_IMPLEMENTATION_ID_
143 #undef _AFW_IMPLEMENTATION_SPECIFIC_
144 #undef _AFW_IMPLEMENTATION_SOURCE_FILE_
145 
#define AFW_BEGIN_DECLARES
Interface afw_interface opaque typedefs.
#define AFW_UTF8_LITERAL(A_STRING)
String literal initializer.
Definition: afw_common.h:582
impl_afw_server_release(const afw_server_t *instance, afw_xctx_t *xctx)
impl_afw_server_run(const afw_server_t *instance, const afw_request_handler_t *handler, afw_xctx_t *xctx)
Interface afw_request_handler public struct.
Interface afw_server_inf_s struct.
Interface afw_server public struct.
Interface afw_xctx public struct.