Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
afw_model_location.h
Go to the documentation of this file.
1 // See the 'COPYING' file in the project root for licensing information.
2 /*
3  * Adaptive Framework model location
4  *
5  * Copyright (c) 2010-2023 Clemson University
6  *
7  */
8 
9 #ifndef __AFW_MODEL_LOCATION_H__
10 #define __AFW_MODEL_LOCATION_H__
11 
12 #include "afw_interface.h"
13 
25 
26 
33 
36 
39 
41  const afw_model_t * AFW_ATOMIC first_model;
42 
43 };
44 
45 
46 /* @brief Create model location. */
48 afw_model_location_create(
49  const afw_adaptor_t *adaptor,
50  const afw_pool_t *p, afw_xctx_t *xctx);
51 
52 AFW_DECLARE(const afw_model_t *)
53 afw_model_location_get_model(
54  const afw_adaptor_t *model_location_adaptor,
55  const afw_utf8_t *model_id,
56  afw_xctx_t *xctx);
57 
58 
59 AFW_END_DECLARES
60 
63 #endif /* __AFW_MODEL_LOCATION_H__ */
#define AFW_BEGIN_DECLARES
#define AFW_DECLARE(type)
Declare a public afw function.
Interfaceafw_interface header.
struct afw_model_internal_s afw_model_t
struct afw_thread_mutex_s afw_thread_mutex_t
Interface afw_adaptor public struct.
Struct used by adaptor referenced by modelLocationAdaptorId.
const afw_model_t *AFW_ATOMIC first_model
First loaded model.
afw_thread_mutex_t * mutex
Mutex for locking access to this struct.
const afw_adaptor_t * model_location_adaptor
Model location adaptor.
Interface afw_pool public struct.
NFC normalized UTF-8 string.
Definition: afw_common.h:545
Interface afw_xctx public struct.