Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
afw_lmdb_adaptor_factory.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_adaptor_factory interface for LMDB
4  *
5  * Copyright (c) 2010-2023 Clemson University
6  *
7  */
8 
9 
15 #include "afw.h"
16 #include "afw_lmdb_internal.h"
17 
18 /* Declares and rti/inf defines for interface afw_adaptor_factory */
19 #define AFW_IMPLEMENTATION_ID "lmdb"
21 
22 
23 static const afw_utf8_t impl_factory_description =
24 AFW_UTF8_LITERAL("Adaptor type for Lightning Memory-Mapped Database (LMDB).");
25 
27 afw_lmdb_adaptor_factory =
28 {
29  &impl_afw_adaptor_factory_inf,
30  AFW_UTF8_LITERAL("lmdb"),
31  &impl_factory_description
32 };
33 
34 
35 /*
36  * Implementation of method create_adaptor_cede_p of interface afw_adaptor_factory.
37  */
38 const afw_adaptor_t *
39 impl_afw_adaptor_factory_create_adaptor_cede_p (
40  const afw_adaptor_factory_t * instance,
41  const afw_object_t * properties,
42  const afw_pool_t * p,
43  afw_xctx_t *xctx)
44 {
45  return afw_lmdb_adaptor_create_cede_p(properties, p, xctx);
46 }
Adaptive Framework Core API.
Interface afw_interface implementation declares.
const afw_adaptor_t * afw_lmdb_adaptor_create_cede_p(const afw_object_t *properties, const afw_pool_t *p, afw_xctx_t *xctx)
Internal create an LMDB adaptor.
Adaptive Framework LMDB Adaptor Internal Header.
#define AFW_UTF8_LITERAL(A_STRING)
String literal initializer.
Definition: afw_common.h:582
Interface afw_adaptor_factory public struct.
Interface afw_adaptor public struct.
Interface afw_object public struct.
Interface afw_pool public struct.
NFC normalized UTF-8 string.
Definition: afw_common.h:545
Interface afw_xctx public struct.