Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
afw_request_handler_factory_adaptor.c
Go to the documentation of this file.
1 // See the 'COPYING' file in the project root for licensing information.
2 /*
3  * Implementation of afw_request_handler_factory interface for adaptor
4  *
5  * Copyright (c) 2010-2023 Clemson University
6  *
7  */
8 
14 #include "afw_internal.h"
15 
16 
17 
18 /*
19  * Declarations for methods of interface afw_request_handler_factory implementation.
20  */
21 
22 /* Declares and rti/inf defines for interface afw_request_handler_factory */
23 #define AFW_IMPLEMENTATION_ID "adaptor"
25 
26 
27 static const afw_utf8_t impl_factory_description =
28 AFW_UTF8_LITERAL("Request handler type to provide \"rest-like\" access to adaptive objects plus access to actions.");
29 
32 {
33  &impl_afw_request_handler_factory_inf,
34  AFW_UTF8_LITERAL("adaptor"),
35  &impl_factory_description
36 };
37 
38 
39 /*
40  * Implementation of method create_request_handler_cede_p of interface afw_request_handler_factory.
41  */
43 impl_afw_request_handler_factory_create_request_handler_cede_p (
44  const afw_request_handler_factory_t * instance,
45  const afw_object_t * properties,
46  const afw_pool_t * p,
47  afw_xctx_t *xctx)
48 {
49  /* Create adaptor request handler. */
50  return afw_request_handler_adaptor_create_cede_p(properties, p, xctx);
51 }
#define AFW_DEFINE_CONST_DATA(type)
Define a public afw variable.
Adaptive Framework Core Internal.
Interface afw_interface implementation declares.
#define AFW_UTF8_LITERAL(A_STRING)
String literal initializer.
Definition: afw_common.h:582
afw_request_handler_factory_adaptor
const afw_request_handler_t * afw_request_handler_adaptor_create_cede_p(const afw_object_t *properties, const afw_pool_t *p, afw_xctx_t *xctx)
Create an adaptor request handler.
Interface afw_object public struct.
Interface afw_pool public struct.
Interface afw_request_handler_factory public struct.
Interface afw_request_handler public struct.
NFC normalized UTF-8 string.
Definition: afw_common.h:545
Interface afw_xctx public struct.