Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
afw_vfs_extension.c
Go to the documentation of this file.
1 /* Interface afw_extension Implementation for afw_vfs */
2 // See the 'COPYING' file in the project root for licensing information.
3 /*
4  * Adaptive Framework
5  *
6  * Copyright (c) 2010-2023 Clemson University
7  *
8  */
9 
10 
16 #include "afw.h"
20 
21 /* Declares and rti/inf defines for interface afw_extension */
22 #define AFW_IMPLEMENTATION_ID "afw_vfs"
23 #define AFW_IMPLEMENTATION_VERSION AFW_VFS_VERSION_STRING
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  /* See function in generated/afw_vfs_generated.c. */
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.
Interface afw_interface implementation declares.
Internal header for adaptor type vfs.
void afw_vfs_generated_register(afw_xctx_t *xctx)
Generated register for afw_vfs.
Adaptive Framework register generated (afw_vfs) header.
Adaptive Framework Version (afw_vfs_) 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.