yumapro  24.10-3
YumaPro SDK
Loading...
Searching...
No Matches
ncx_nmda.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019 - 2021, YumaWorks, Inc., All Rights Reserved.
3 *
4 * Unless required by applicable law or agreed to in writing,
5 * software distributed under the License is distributed on an
6 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
7 * KIND, either express or implied. See the License for the
8 * specific language governing permissions and limitations
9 * under the License.
10 */
11#ifndef _H_ncx_nmda
12#define _H_ncx_nmda
13
14/* FILE: ncx_nmda.h
15*********************************************************************
16* *
17* P U R P O S E *
18* *
19*********************************************************************/
20
26/*********************************************************************
27* *
28* C H A N G E H I S T O R Y *
29* *
30*********************************************************************
31
32date init comment
33----------------------------------------------------------------------
3413-jul-19 abb Begun
35*/
36
37#include <xmlstring.h>
38
39#ifndef _H_dlq
40#include "dlq.h"
41#endif
42
43#ifndef _H_ncxtypes
44#include "ncxtypes.h"
45#endif
46
47#ifndef _H_val
48#include "val.h"
49#endif
50
51#ifdef __cplusplus
52extern "C" {
53#endif
54
55
56/********************************************************************
57* *
58* F U N C T I O N S *
59* *
60*********************************************************************/
61
78
79
85extern void
87
88
94extern void
95 ncx_nmda_clean_origin_filterQ (dlq_hdr_t *filterQ);
96
97
103extern ncx_nmda_params_t *
104 ncx_nmda_new_params (void);
105
106
112extern void
114
115
122extern ncx_nmda_ds_t
123 ncx_nmda_get_ds_enum (const xmlChar *ds_name);
124
125
132extern const xmlChar *
134
135
142extern const xmlChar *
144
145
153extern ncx_nmda_ds_t
155
156
163extern ncx_cfg_t
165
166
176
177
185 ncx_nmda_get_origin_enum (const xmlChar *or_name);
186
187
194extern const xmlChar *
196
197
204extern boolean
206
207
215extern boolean
217
218
225extern status_t
226 ncx_nmda_load_modules (dlq_hdr_t *devQ);
227
228
232#ifdef __cplusplus
233} /* end extern 'C' */
234#endif
235
236#endif /* _H_ncx */
dlq provides general double-linked list and queue support:
status_t
global error return code
Definition: status_enum.h:210
ncx_nmda_origin_t ncx_nmda_get_originref_parm(val_value_t *parmval)
Handle the or:origin-ref data type parameter Extract the internal enum for the origin.
Definition: ncx_nmda.c:377
ncx_nmda_origin_t ncx_nmda_get_origin_enum(const xmlChar *or_name)
Get the standard origin enum for the string.
Definition: ncx_nmda.c:423
ncx_cfg_t ncx_nmda_get_cfg_id(ncx_nmda_ds_t ds_enum)
Get the cfg datastore ID for the NMDA datastore ID.
Definition: ncx_nmda.c:343
void ncx_nmda_free_params(ncx_nmda_params_t *params)
Free a ncx_nmda_params_t struct.
Definition: ncx_nmda.c:174
const xmlChar * ncx_nmda_get_origin_str(ncx_nmda_origin_t or_enum)
Get the standard origin string for the enum.
Definition: ncx_nmda.c:458
void ncx_nmda_free_origin_filter(ncx_origin_filter_t *filter)
Free a ncx_origin_filter_t struct.
Definition: ncx_nmda.c:110
const xmlChar * ncx_nmda_get_ds_str(ncx_nmda_ds_t ds_enum)
Get the standard datastore string for the enum.
Definition: ncx_nmda.c:229
ncx_origin_filter_t * ncx_nmda_new_origin_filter(ncx_nmda_origin_t origin)
Malloc a new ncx_origin_filter_t.
Definition: ncx_nmda.c:88
status_t ncx_nmda_load_modules(dlq_hdr_t *devQ)
Load the ietf-datastore and ietf-origin modules.
Definition: ncx_nmda.c:562
ncx_nmda_ds_t ncx_nmda_get_ds_enum(const xmlChar *ds_name)
Get the standard datastore enum for the string.
Definition: ncx_nmda.c:196
void ncx_nmda_clean_origin_filterQ(dlq_hdr_t *filterQ)
Clean a Queue of ncx_origin_filter_t structs.
Definition: ncx_nmda.c:129
boolean ncx_nmda_ds_conventional(ncx_nmda_ds_t ds_enum)
Return TRUE if the datastore is a conventional datastore which has config=true objects only.
Definition: ncx_nmda.c:528
boolean ncx_nmda_ds_writable(ncx_nmda_ds_t ds_enum)
Return TRUE if the datastore is writable by a client.
Definition: ncx_nmda.c:494
ncx_nmda_params_t * ncx_nmda_new_params(void)
Malloc a new ncx_nmda_params_t.
Definition: ncx_nmda.c:152
const xmlChar * ncx_nmda_get_full_ds_str(ncx_nmda_ds_t ds_enum)
Get the standard datastore string for the enum using the ds: prefix.
Definition: ncx_nmda.c:263
ncx_nmda_ds_t ncx_nmda_get_dsref_parm(val_value_t *parmval)
Handle the ds:datastore-ref data type parameter Extract the internal enum for the datastore.
Definition: ncx_nmda.c:297
ncx_cfg_t
hardwire the 3 standard configs
Definition: ncxtypes.h:548
ncx_nmda_ds_t
internal enumerations for standard NMDA datastores
Definition: ncxtypes.h:1631
ncx_nmda_origin_t
internal enumerations for standard NMDA origins
Definition: ncxtypes.h:1642
YANG module data structures Many internal representations of YANG module constructs.
internal NMDA get-data state parameters; rest of parameter are stored directly in the xml_msg_hdr_t u...
Definition: ncxtypes.h:1663
internal NMDA origin filter (negate field stored separately)
Definition: ncxtypes.h:1654
one value to match one type
Definition: val.h:912
Value Node Basic Support.