Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
afw_ldap_extension.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_extension interface
4  *
5  * Copyright (c) 2010-2023 Clemson University
6  *
7  */
8 
9 
15 #include "afw.h"
16 #include "afw_ldap_internal.h"
18 
19 
20 /* Declares and rti/inf defines for interface afw_extension */
21 #define AFW_IMPLEMENTATION_ID "afw_ldap"
22 #define AFW_IMPLEMENTATION_VERSION AFW_LDAP_VERSION_STRING
25 
26 //* Define extension implementation. */
28 
29 
30 
31 /*
32  * Implementation of method initialize for interface afw_extension.
33  */
34 const afw_extension_t *
35 impl_afw_extension_initialize(
36  const afw_extension_t * instance,
37  const afw_object_t * properties,
38  const afw_pool_t * p,
39  afw_xctx_t *xctx)
40 {
41  /*
42  * IMPORTANT:
43  *
44  * Make sure associated _AdaptiveManifest_ is up to date,
45  * especially the "registers" property.
46  *
47  */
48 
49  /* See function in generated/afw_ldap_generated.c. */
51 
52  /* Return extension info. */
53  return &impl_extension;
54 }
55 
56 /*
57  * Implementation of method release of interface afw_extension.
58  */
59 void
60 impl_afw_extension_release(
61  const afw_extension_t * instance,
62  afw_xctx_t *xctx)
63 {
64  /* Extension release() is not currently called. */
65 }
Adaptive Framework Core API.
Interface afw_interface implementation declares.
void afw_ldap_generated_register(afw_xctx_t *xctx)
Generated register for afw_ldap.
Adaptive Framework register generated (afw_ldap) header.
Adaptive Framework LDAP Internal Header
Adaptive Framework Version (afw_ldap_) header.
#define AFW_ENVIRONMENT_DEFINE_EXTENSION_IMPL()
Macro to put in each afw_extension implementation.
Interface afw_extension public struct.
Definition: afw_interface.h:55
Interface afw_object public struct.
Interface afw_pool public struct.
Interface afw_xctx public struct.