blob: 53634cd8e02d784a4e6b68b7d004e952f0288257 [file] [log] [blame]
Radek Krejci5aeea3a2018-09-05 13:29:36 +02001/**
2 * @file context.h
3 * @author Radek Krejci <rkrejci@cesnet.cz>
4 * @brief internal context structures and functions
5 *
6 * Copyright (c) 2015 - 2017 CESNET, z.s.p.o.
7 *
8 * This source code is licensed under BSD 3-Clause License (the "License").
9 * You may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 * https://opensource.org/licenses/BSD-3-Clause
13 */
14
15#ifndef LY_CONTEXT_H_
16#define LY_CONTEXT_H_
17
Radek Krejcie7b95092019-05-15 11:03:07 +020018#include <stdint.h>
19
Radek Krejci6caa6ab2018-10-24 10:04:48 +020020#include "log.h"
Radek Krejci5aeea3a2018-09-05 13:29:36 +020021#include "tree_schema.h"
22
Radek Krejci6caa6ab2018-10-24 10:04:48 +020023#ifdef __cplusplus
24extern "C" {
25#endif
26
Radek Krejci5aeea3a2018-09-05 13:29:36 +020027/**
Radek Krejci52785a22019-09-11 12:57:26 +020028 * @page howtocontext Context
29 *
30 * The context concept allows callers to work in environments with different sets of YANG schemas.
31 *
32 * The first step in libyang is to create a new context using ly_ctx_new(). It returns a handler
33 * used in the following work.
34 *
35 * When creating a new context, search dir can be specified (NULL is accepted) to provide directory
36 * where libyang will automatically search for schemas being imported or included. The search path
37 * can be later changed via ly_ctx_set_searchdir() and ly_ctx_unset_searchdir() functions. Before the search dirs,
38 * also the current working directory is (non-recursively) searched. For the case of the explicitly set search
39 * dirs, also all their subdirectories (and symlinks) are taken into account. Searching in the current working
40 * directory can be avoided with the context's #LY_CTX_DISABLE_SEARCHDIR_CWD option (or via ly_ctx_set_options()).
41 * Searching in all the context's search dirs (without removing them) can be avoided with the context's
42 * #LY_CTX_DISABLE_SEARCHDIRS option (or via ly_ctx_set_options()). This automatic searching can be preceded
43 * by a custom module searching callback (#ly_module_imp_clb) set via ly_ctx_set_module_imp_clb(). The algorithm of
44 * searching in search dirs is also available via API as lys_search_localfile() function.
45 *
46 * Schemas are added into the context using [parser functions](@ref howtoschemasparsers) - \b lys_parse_*().
47 * Alternatively, also ly_ctx_load_module() can be used - in that case the #ly_module_imp_clb or automatic
48 * search in search dir and in the current working directory is used. YANG submodules cannot be loaded or even validated
49 * directly, they are loaded always only as includes of YANG modules.
50 *
51 * YANG schemas are loaded in two steps. First, the input YANG/YIN data are parsed into \b lysp_* structures that reflect
52 * the structure of the input schema. Mostly just syntax checks are done, no reference or type checking is performed in
53 * this step. If the module is supposed to be implemented, not just imported by another module, the second step is to compile
54 * it. The compiled schema may significantly differ in structure from the source schema structure. All the references
55 * are resolved, groupings are instantiated, types are resolved (and compiled by grouping all the relevant restrictions
56 * when derived from another types) and many other syntactical checks are done.
57 *
58 * Similarly, data trees can be parsed by \b lyd_parse_*() functions. Note, that functions for schemas have \b lys_
59 * prefix (or \b lysp_ for the parsed and \b lysc_ for the compiled schema) while functions for instance data have
60 * \b lyd_ prefix. It can happen during data parsing that a schema is required and __not found__ in the context or
61 * the schema is found, but is __only imported__, not implemented (so the data cannot actually be instantiated).
62 * In these cases, a callback is called, which should add this schema into the context or change its conformance
63 * to implemented. You can set the callback using ly_ctx_set_module_data_clb() (more in @ref howtodataparsers
64 * and @ref howtodatavalidation).
65 *
66 * Context can hold multiple revisions of the same schema, but only one of them can be implemented. The schema is not
67 * implemented in case it is automatically loaded as import for another module and it is not referenced in such
68 * a module (and no other) as target of leafref, augment or deviation. All modules with deviation definition are always
69 * marked as implemented. The imported (not implemented) module can be set implemented by lys_set_implemented(). But
70 * the implemented module cannot be changed back to just imported module. The imported modules are used only as a
71 * source of definitions for types and groupings for uses statements. The data in such modules are ignored - caller
72 * is not allowed to create the data (including instantiating identities) defined in the model via data parsers,
73 * the default nodes are not added into any data tree and mandatory nodes are not checked in the data trees. This
74 * can be changed by ly_ctx_new()'s #LY_CTX_ALLIMPLEMENTED option (or via ly_ctx_set_options()), which causes that
75 * all the imported modules are automatically set to be implemented.
76 *
77 * When loading/importing a module without revision, the latest revision of the required module is supposed to load.
78 * For a context, the first time the latest revision of a module is requested, it is properly searched for and loaded.
79 * However, when this module is requested (without revision) the second time, the one found previously is returned.
80 * This has the advantage of not searching for the module repeatedly but the drawback that if a later revision
81 * of the module is later made available, this context will not use it. However, to force libyang to re-search the
82 * latest revision, ly_ctx_reset_latests() can be used (not that it applies to all the schemas in the context).
83 *
84 * Context holds all schema modules internally. To get a specific module, use ly_ctx_get_module() (or ly_ctx_get_module_ns())
85 * The returned structure includes both, parsed and compiled, schema variants. If you need to do something with all the modules
86 * in the context, it is advised to iterate over them using ly_ctx_get_module_iter(), it is the most efficient way.
87 * Alternatively, the ly_ctx_info() function can be used to get complex information about the schemas in the context
88 * in the form of data tree defined by <a href="https://tools.ietf.org/html/rfc7895">ietf-yang-library</a> schema.
89 * To get a specific node defined in a module in the context, ly_ctx_find_path() or ly_ctx_get_node() can be used.
90 *
91 * Modules cannot be removed from their context. If you need to change the set of the schema modules in the context
92 * (use only a subset), a new context must be created. To remove the context, there is ly_ctx_destroy() function.
93 *
94 * - @subpage howtocontextdict
95 *
96 * \note API for this group of functions is available in the [context module](@ref context).
97 *
98 * Functions List
99 * --------------
100 * - ::ly_ctx_new()
101 * - ::ly_ctx_set_searchdir()
102 * - ::ly_ctx_unset_searchdir()
103 * - ::ly_ctx_unset_searchdirs()
104 * - ::ly_ctx_get_searchdirs()
105 * - ::ly_ctx_set_module_imp_clb()
106 * - ::ly_ctx_get_module_imp_clb()
107 * - ::ly_ctx_set_module_data_clb()
108 * - ::ly_ctx_get_module_data_clb()
109 * - ::ly_ctx_set_options()
110 * - ::ly_ctx_unset_options()
111 * - ::ly_ctx_get_options()
112 * - ::ly_ctx_load_module()
113 * - ::ly_ctx_info()
114 * - ::ly_ctx_get_module_iter()
115 * - ::ly_ctx_get_module()
116 * - ::ly_ctx_get_module_ns()
117 * - ::ly_ctx_get_module_implemented()
118 * - ::ly_ctx_get_module_implemented_ns()
119 * - ::ly_ctx_get_module_latest()
120 * - ::ly_ctx_get_module_latest_ns()
121 * - ::ly_ctx_reset_latests()
122 * - ::ly_ctx_get_module_set_id()
123 * - ::ly_ctx_get_node()
124 * - ::ly_ctx_find_path()
125 * - ::ly_ctx_destroy()
126 * - ::lys_set_implemented()
127 * - ::lys_search_localfile()
128 */
129
130/**
Radek Krejci6caa6ab2018-10-24 10:04:48 +0200131 * @defgroup context Context
132 * @{
133 *
134 * Structures and functions to manipulate with the libyang "containers". The \em context concept allows callers
135 * to work in environments with different sets of YANG schemas. More detailed information can be found at
136 * @ref howtocontext page.
Radek Krejci5aeea3a2018-09-05 13:29:36 +0200137 */
Radek Krejci6caa6ab2018-10-24 10:04:48 +0200138
139/**
140 * @struct ly_ctx
141 * @brief libyang context handler.
142 */
143struct ly_ctx;
144
145/**
146 * @defgroup contextoptions Context options
147 * @ingroup context
148 *
149 * Options to change context behavior.
Radek Krejci474f9b82019-07-24 11:36:37 +0200150 *
151 * Note that the flags 0xFF00 are reserved for internal use.
152 *
Radek Krejci6caa6ab2018-10-24 10:04:48 +0200153 * @{
154 */
155
156#define LY_CTX_ALLIMPLEMENTED 0x01 /**< All the imports of the schema being parsed are treated implemented. */
157#define LY_CTX_TRUSTED 0x02 /**< Handle the schema being parsed as trusted and skip its validation
158 tests. Note that while this option improves performance, it can
159 lead to an undefined behavior if the schema is not correct. */
160#define LY_CTX_NOYANGLIBRARY 0x04 /**< Do not internally implement ietf-yang-library module. The option
161 causes that function ly_ctx_info() does not work (returns NULL) until
162 the ietf-yang-library module is loaded manually. While any revision
163 of this schema can be loaded with this option, note that the only
164 revisions implemented by ly_ctx_info() are 2016-04-09 and 2018-01-17.
165 This option cannot be changed on existing context. */
166#define LY_CTX_DISABLE_SEARCHDIRS 0x08 /**< Do not search for schemas in context's searchdirs neither in current
167 working directory. It is entirely skipped and the only way to get
168 schema data for imports or for ly_ctx_load_module() is to use the
169 callbacks provided by caller via ly_ctx_set_module_imp_clb() */
170#define LY_CTX_DISABLE_SEARCHDIR_CWD 0x10 /**< Do not automatically search for schemas in current working
171 directory, which is by default searched automatically (despite not
172 recursively). */
173#define LY_CTX_PREFER_SEARCHDIRS 0x20 /**< When searching for schema, prefer searchdirs instead of user callback. */
Radek Krejci0af46292019-01-11 16:02:31 +0100174
Michal Vaskob36053d2020-03-26 15:49:30 +0100175/** @} contextoptions */
Radek Krejci6caa6ab2018-10-24 10:04:48 +0200176
177/**
178 * @brief Create libyang context.
179 *
180 * Context is used to hold all information about schemas. Usually, the application is supposed
181 * to work with a single context in which libyang is holding all schemas (and other internal
182 * information) according to which the data trees will be processed and validated. So, the schema
183 * trees are tightly connected with the specific context and they are held by the context internally
184 * - caller does not need to keep pointers to the schemas returned by lys_parse(), context knows
185 * about them. The data trees created with lyd_parse() are still connected with the specific context,
186 * but they are not internally held by the context. The data tree just points and lean on some data
187 * held by the context (schema tree, string dictionary, etc.). Therefore, in case of data trees, caller
188 * is supposed to keep pointers returned by the lyd_parse() and manage the data tree on its own. This
189 * also affects the number of instances of both tree types. While you can have only one instance of
190 * specific schema connected with a single context, number of data tree instances is not connected.
191 *
192 * @param[in] search_dir Directory where libyang will search for the imported or included modules
193 * and submodules. If no such directory is available, NULL is accepted.
194 * @param[in] options Context options, see @ref contextoptions.
195 * @param[out] new_ctx Pointer to the created libyang context if LY_SUCCESS returned.
196 * @return LY_ERR return value.
197 */
198LY_ERR ly_ctx_new(const char *search_dir, int options, struct ly_ctx **new_ctx);
199
200/**
201 * @brief Add the search path into libyang context
202 *
203 * To reset search paths set in the context, use ly_ctx_unset_searchdirs() and then
204 * set search paths again.
205 *
206 * @param[in] ctx Context to be modified.
207 * @param[in] search_dir New search path to add to the current paths previously set in ctx.
208 * @return LY_ERR return value.
209 */
210LY_ERR ly_ctx_set_searchdir(struct ly_ctx *ctx, const char *search_dir);
211
212/**
213 * @brief Clean the search path(s) from the libyang context
214 *
Radek Krejcied5acc52019-04-25 15:57:04 +0200215 * To remove the search path by its index, use ly_ctx_unset_searchdir().
216 *
Radek Krejci6caa6ab2018-10-24 10:04:48 +0200217 * @param[in] ctx Context to be modified.
218 * @param[in] value Searchdir to be removed, use NULL to remove them all.
219 * @return LY_ERR return value
220 */
221LY_ERR ly_ctx_unset_searchdirs(struct ly_ctx *ctx, const char *value);
222
223/**
Radek Krejcied5acc52019-04-25 15:57:04 +0200224 * @brief Remove the specific search path from the libyang context.
225 *
226 * To remove the search path by its value, use ly_ctx_unset_searchdirs().
227 *
228 * @param[in] ctx Context to be modified.
229 * @param[in] index Index of the searchdir to be removed.
230 * @return LY_ERR return value
231 */
232LY_ERR ly_ctx_unset_searchdir(struct ly_ctx *ctx, unsigned int index);
233
234/**
Radek Krejci6caa6ab2018-10-24 10:04:48 +0200235 * @brief Get the NULL-terminated list of the search paths in libyang context. Do not modify the result!
236 *
237 * @param[in] ctx Context to query.
238 * @return NULL-terminated list (array) of the search paths, NULL if no searchpath was set.
239 * Do not modify the provided data in any way!
240 */
241const char * const *ly_ctx_get_searchdirs(const struct ly_ctx *ctx);
242
243/**
244 * @brief Get the currently set context's options.
245 *
246 * @param[in] ctx Context to query.
247 * @return Combination of all the currently set context's options, see @ref contextoptions.
248 */
249int ly_ctx_get_options(const struct ly_ctx *ctx);
250
251/**
252 * @brief Set some of the context's options, see @ref contextoptions.
253 * @param[in] ctx Context to be modified.
254 * @param[in] option Combination of the context's options to be set, see @ref contextoptions.
255 * @return LY_ERR value.
256 */
Radek Krejci3fa46b62019-09-11 10:47:30 +0200257LY_ERR ly_ctx_set_options(struct ly_ctx *ctx, int option);
Radek Krejci6caa6ab2018-10-24 10:04:48 +0200258
259/**
260 * @brief Unset some of the context's options, see @ref contextoptions.
261 * @param[in] ctx Context to be modified.
262 * @param[in] option Combination of the context's options to be unset, see @ref contextoptions.
263 * @return LY_ERR value.
264 */
Radek Krejci3fa46b62019-09-11 10:47:30 +0200265LY_ERR ly_ctx_unset_options(struct ly_ctx *ctx, int option);
Radek Krejci6caa6ab2018-10-24 10:04:48 +0200266
267/**
268 * @brief Get current ID of the modules set. The value is available also
269 * as module-set-id in ly_ctx_info() result.
270 *
271 * @param[in] ctx Context to be examined.
272 * @return Numeric identifier of the current context's modules set.
273 */
274uint16_t ly_ctx_get_module_set_id(const struct ly_ctx *ctx);
275
276/**
Radek Krejcid33273d2018-10-25 14:55:52 +0200277 * @brief Callback for retrieving missing included or imported models in a custom way.
278 *
279 * When submod_name is provided, the submodule is requested instead of the module (in this case only
280 * the module name without its revision is provided).
281 *
282 * If an @arg free_module_data callback is provided, it will be used later to free the allegedly const data
283 * which were returned by this callback.
284 *
285 * @param[in] mod_name Missing module name.
Radek Krejci086c7132018-10-26 15:29:04 +0200286 * @param[in] mod_rev Optional missing module revision. If NULL and submod_name is not provided, the latest revision is
287 * requested, the parsed module is then marked by the latest_revision flag.
Radek Krejcid33273d2018-10-25 14:55:52 +0200288 * @param[in] submod_name Optional missing submodule name.
Radek Krejci086c7132018-10-26 15:29:04 +0200289 * @param[in] submod_rev Optional missing submodule revision. If NULL and submod_name is provided, the latest revision is
290 * requested, the parsed submodule is then marked by the latest_revision flag.
Radek Krejcid33273d2018-10-25 14:55:52 +0200291 * @param[in] user_data User-supplied callback data.
292 * @param[out] format Format of the returned module data.
293 * @param[out] module_data Requested module data.
294 * @param[out] free_module_data Callback for freeing the returned module data. If not set, the data will be left untouched.
295 * @return LY_ERR value. If the returned value differs from LY_SUCCESS, libyang continue in trying to get the module data
296 * according to the settings of its mechanism to search for the imported/included schemas.
297 */
298typedef LY_ERR (*ly_module_imp_clb)(const char *mod_name, const char *mod_rev, const char *submod_name, const char *sub_rev,
299 void *user_data, LYS_INFORMAT *format, const char **module_data,
300 void (**free_module_data)(void *model_data, void *user_data));
301
302/**
303 * @brief Get the custom callback for missing import/include module retrieval.
304 *
305 * @param[in] ctx Context to read from.
306 * @param[in] user_data Optional pointer for getting the user-supplied callback data.
307 * @return Callback or NULL if not set.
308 */
309ly_module_imp_clb ly_ctx_get_module_imp_clb(const struct ly_ctx *ctx, void **user_data);
310
311/**
312 * @brief Set missing include or import module callback. It is meant to be used when the models
313 * are not locally available (such as when downloading modules from a NETCONF server), it should
314 * not be required in other cases.
315 *
316 * @param[in] ctx Context that will use this callback.
317 * @param[in] clb Callback responsible for returning the missing model.
318 * @param[in] user_data Arbitrary data that will always be passed to the callback \p clb.
319 */
320void ly_ctx_set_module_imp_clb(struct ly_ctx *ctx, ly_module_imp_clb clb, void *user_data);
321
322/**
Radek Krejcib7db73a2018-10-24 14:18:40 +0200323 * @brief Get YANG module of the given name and revision.
324 *
325 * @param[in] ctx Context to work in.
326 * @param[in] name Name of the YANG module to get.
327 * @param[in] revision Requested revision date of the YANG module to get. If not specified,
328 * the schema with no revision is returned, if it is present in the context.
329 * @return Pointer to the YANG module, NULL if no schema in the context follows the name and revision requirements.
330 */
Radek Krejci0af46292019-01-11 16:02:31 +0100331struct lys_module *ly_ctx_get_module(const struct ly_ctx *ctx, const char *name, const char *revision);
Radek Krejcib7db73a2018-10-24 14:18:40 +0200332
333/**
334 * @brief Get the latest revision of the YANG module specified by its name.
335 *
336 * YANG modules with no revision are supposed to be the oldest one.
337 *
338 * @param[in] ctx Context where to search.
339 * @param[in] name Name of the YANG module to get.
340 * @return The latest revision of the specified YANG module in the given context, NULL if no YANG module of the
341 * given name is present in the context.
342 */
Radek Krejci0af46292019-01-11 16:02:31 +0100343struct lys_module *ly_ctx_get_module_latest(const struct ly_ctx *ctx, const char *name);
Radek Krejcib7db73a2018-10-24 14:18:40 +0200344
345/**
346 * @brief Get the (only) implemented YANG module specified by its name.
347 *
348 * @param[in] ctx Context where to search.
349 * @param[in] name Name of the YANG module to get.
350 * @return The only implemented YANG module revision of the given name in the given context. NULL if there is no
351 * implemented module of the given name.
352 */
Radek Krejci0af46292019-01-11 16:02:31 +0100353struct lys_module *ly_ctx_get_module_implemented(const struct ly_ctx *ctx, const char *name);
Radek Krejcib7db73a2018-10-24 14:18:40 +0200354
355/**
Radek Krejcied5acc52019-04-25 15:57:04 +0200356 * @brief Iterate over all modules in the given context.
357 *
358 * @param[in] ctx Context with the modules.
359 * @param[in,out] index Index of the next module to get. Value of 0 starts from the beginning.
360 * The value is updated with each call, so to iterate over all modules the same variable is supposed
361 * to be used in all calls starting with value 0.
362 * @return Next context module, NULL if the last was already returned.
363 */
364const struct lys_module *ly_ctx_get_module_iter(const struct ly_ctx *ctx, unsigned int *index);
365
366/**
Radek Krejcib7db73a2018-10-24 14:18:40 +0200367 * @brief Get YANG module of the given namespace and revision.
368 *
369 * @param[in] ctx Context to work in.
370 * @param[in] ns Namespace of the YANG module to get.
371 * @param[in] revision Requested revision date of the YANG module to get. If not specified,
372 * the schema with no revision is returned, if it is present in the context.
373 * @return Pointer to the YANG module, NULL if no schema in the context follows the namespace and revision requirements.
374 */
Radek Krejci0af46292019-01-11 16:02:31 +0100375struct lys_module *ly_ctx_get_module_ns(const struct ly_ctx *ctx, const char *ns, const char *revision);
Radek Krejcib7db73a2018-10-24 14:18:40 +0200376
377/**
378 * @brief Get the latest revision of the YANG module specified by its namespace.
379 *
380 * YANG modules with no revision are supposed to be the oldest one.
381 *
382 * @param[in] ctx Context where to search.
383 * @param[in] ns Namespace of the YANG module to get.
384 * @return The latest revision of the specified YANG module in the given context, NULL if no YANG module of the
385 * given namespace is present in the context.
386 */
Radek Krejci0af46292019-01-11 16:02:31 +0100387struct lys_module *ly_ctx_get_module_latest_ns(const struct ly_ctx *ctx, const char *ns);
Radek Krejcib7db73a2018-10-24 14:18:40 +0200388
389/**
390 * @brief Get the (only) implemented YANG module specified by its namespace.
391 *
392 * @param[in] ctx Context where to search.
393 * @param[in] ns Namespace of the YANG module to get.
394 * @return The only implemented YANG module revision of the given namespace in the given context. NULL if there is no
395 * implemented module of the given namespace.
396 */
Radek Krejci0af46292019-01-11 16:02:31 +0100397struct lys_module *ly_ctx_get_module_implemented_ns(const struct ly_ctx *ctx, const char *ns);
Radek Krejcib7db73a2018-10-24 14:18:40 +0200398
399/**
Radek Krejcie9e987e2018-10-31 12:50:27 +0100400 * @brief Reset cached latest revision information of the schemas in the context.
401 *
402 * When a (sub)module is imported/included without revision, the latest revision is
403 * searched. libyang searches for the latest revision in searchdirs and/or via provided
404 * import callback ly_module_imp_clb() just once. Then it is expected that the content
405 * of searchdirs or data returned by the callback does not change. So when it changes,
406 * it is necessary to force searching for the latest revision in case of loading another
407 * module, which what this function does.
408 *
409 * The latest revision information is also reset when the searchdirs set changes via
410 * ly_ctx_set_searchdir().
411 *
412 * @param[in] ctx libyang context where the latest revision information is going to be reset.
413 */
414void ly_ctx_reset_latests(struct ly_ctx *ctx);
415
416/**
Radek Krejcied5acc52019-04-25 15:57:04 +0200417 * @brief Try to find the model in the searchpaths of \p ctx and load it into it. If custom missing
418 * module callback is set, it is used instead.
419 *
420 * The context itself is searched for the requested module first. If \p revision is not specified
421 * (the module of the latest revision is requested) and there is implemented revision of the requested
422 * module in the context, this implemented revision is returned despite there might be a newer revision.
423 * This behavior is cause by the fact that it is not possible to have multiple implemented revisions of
424 * the same module in the context.
425 *
426 * @param[in] ctx Context to add to.
427 * @param[in] name Name of the module to load.
428 * @param[in] revision Optional revision date of the module. If not specified, the latest revision is loaded.
429 * @return Pointer to the data model structure, NULL if not found or some error occurred.
430 */
431const struct lys_module *ly_ctx_load_module(struct ly_ctx *ctx, const char *name, const char *revision);
432
433/**
Radek Krejci6caa6ab2018-10-24 10:04:48 +0200434 * @brief Free all internal structures of the specified context.
435 *
436 * The function should be used before terminating the application to destroy
437 * and free all structures internally used by libyang. If the caller uses
438 * multiple contexts, the function should be called for each used context.
439 *
440 * All instance data are supposed to be freed before destroying the context.
441 * Data models are destroyed automatically as part of ly_ctx_destroy() call.
442 *
443 * @param[in] ctx libyang context to destroy
444 * @param[in] private_destructor Optional destructor function for private objects assigned
445 * to the nodes via lys_set_private(). If NULL, the private objects are not freed by libyang.
446 * Remember the differences between the structures derived from ::lysc_node and always check
447 * ::lysc_node#nodetype.
448 */
449void ly_ctx_destroy(struct ly_ctx *ctx, void (*private_destructor)(const struct lysc_node *node, void *priv));
450
451/** @} context */
452
453#ifdef __cplusplus
454}
455#endif
Radek Krejci5aeea3a2018-09-05 13:29:36 +0200456
Radek Krejci5aeea3a2018-09-05 13:29:36 +0200457#endif /* LY_CONTEXT_H_ */