blob: 541891b21d77c3ca119fe934d014995621584d52 [file] [log] [blame]
Radek Krejcid6b76452019-09-03 17:03:03 +02001/**
2 * @file plugins_exts_metadata.h
3 * @author Radek Krejci <rkrejci@cesnet.cz>
4 * @brief ietf-yang-metadata API
5 *
6 * Copyright (c) 2019 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_PLUGINS_EXTS_METADATA_H_
16#define LY_PLUGINS_EXTS_METADATA_H_
17
18#include "tree_schema.h"
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
Radek Krejci1b2eef82021-02-17 11:17:27 +010024#define ANNOTATION_SUBSTMT_IFF 0 /**< index for the LY_STMT_IF_FEATURE substatement in annotation's ::lysc_ext_instance.substmts */
25#define ANNOTATION_SUBSTMT_UNITS 1 /**< index for the LY_STMT_UNITS substatement in annotation's ::lysc_ext_instance.substmts */
26#define ANNOTATION_SUBSTMT_STATUS 2 /**< index for the LY_STMT_STATUS substatement in annotation's ::lysc_ext_instance.substmts */
27#define ANNOTATION_SUBSTMT_TYPE 3 /**< index for the LY_STMT_TYPE substatement in annotation's ::lysc_ext_instance.substmts */
28#define ANNOTATION_SUBSTMT_DSC 4 /**< index for the LY_STMT_DSC substatement in annotation's ::lysc_ext_instance.substmts */
29#define ANNOTATION_SUBSTMT_REF 5 /**< index for the LY_STMT_REF substatement in annotation's ::lysc_ext_instance.substmts */
Radek Krejcid6b76452019-09-03 17:03:03 +020030
Radek Krejcid6b76452019-09-03 17:03:03 +020031#ifdef __cplusplus
32}
33#endif
34
35#endif /* LY_PLUGINS_EXTS_METADATA_H_ */