Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
afw_components_extension.c
Go to the documentation of this file.
1 // See the 'COPYING' file in the project root for licensing information.
2 /*
3  * Interface afw_extension Implementation for afw_components
4  *
5  * Copyright (c) 2010-2023 Clemson University
6  *
7  */
8 
9 
15 #include "afw.h"
16 
17 
18 /* Version string for this extension. */
19 #define AFW_IMPLEMENTATION_VERSION AFW_COMPONENTS_VERSION_STRING
20 
21 /* Declares and rti/inf defines for interface afw_extension */
22 #define AFW_IMPLEMENTATION_ID "afw_components"
26 
27 
28 /* Define extension implementation. */
30 
31 
32 /*
33  * Implementation of method initialize for interface afw_extension.
34  */
35 const afw_extension_t *
36 impl_afw_extension_initialize(
37  const afw_extension_t * instance,
38  const afw_object_t * properties,
39  const afw_pool_t * p,
40  afw_xctx_t *xctx)
41 {
42  /*
43  * IMPORTANT:
44  *
45  * Make sure associated _AdaptiveManifest_ is up to date,
46  * especially the "registers" property.
47  *
48  */
49 
50  /* Call the generated register function for this extension. */
52 
53  /* Return extension instance. */
54  return &impl_extension;
55 }
56 
57 
58 /*
59  * Implementation of method release for interface afw_extension.
60  */
61 void
62 impl_afw_extension_release(
63  const afw_extension_t * instance,
64  afw_xctx_t *xctx)
65 {
66  /* Extension release() is not currently called. */
67 }
Adaptive Framework Core API.
void afw_components_generated_register(afw_xctx_t *xctx)
Generated register for afw_components.
Adaptive Framework register generated (afw_components) header.
Adaptive Framework Version (afw_components_) header.
Interface afw_interface implementation declares.
#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.