yumapro  23.10T-7
YumaPro SDK
Loading...
Searching...
No Matches
val_unique.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2008 - 2012, Andy Bierman, All Rights Reserved.
3 * Copyright (c) 2012 - 2021, YumaWorks, Inc., All Rights Reserved.
4 *
5 * Unless required by applicable law or agreed to in writing,
6 * software distributed under the License is distributed on an
7 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8 * KIND, either express or implied. See the License for the
9 * specific language governing permissions and limitations
10 * under the License.
11 */
12#ifndef _H_val_unique
13#define _H_val_unique
14
15/* FILE: val_unique.h
16*********************************************************************
17* *
18* P U R P O S E *
19* *
20*********************************************************************/
21
27/*********************************************************************
28* *
29* C H A N G E H I S T O R Y *
30* *
31*********************************************************************
32
33date init comment
34----------------------------------------------------------------------
3520-jun-15 abb Begun; moved from agt_val.c
36*/
37
38#ifndef _H_dlq
39#include "dlq.h"
40#endif
41
42#ifndef _H_ses
43#include "ses.h"
44#endif
45
46#ifndef _H_status
47#include "status.h"
48#endif
49
50#ifndef _H_val
51#include "val.h"
52#endif
53
54#ifndef _H_xml_msg
55#include "xml_msg.h"
56#endif
57
58#ifdef __cplusplus
59extern "C" {
60#endif
61
62/********************************************************************
63* *
64* T Y P E S *
65* *
66*********************************************************************/
67
68
69
70
71/********************************************************************
72* *
73* F U N C T I O N S *
74* *
75*********************************************************************/
76
104typedef void
106 xml_msg_hdr_t *msghdr,
107 val_value_t *errval,
108 dlq_hdr_t *valuniqueQ);
109
110
111
112
113
132extern status_t
134 xml_msg_hdr_t *msg,
135 obj_template_t *obj,
136 val_value_t *parent,
137 val_value_t *firstval,
138 val_value_t *root,
139 record_unique_error_t error_fn);
140
141
145#ifdef __cplusplus
146} /* end extern 'C' */
147#endif
148
149#endif /* _H_val_unique */
dlq provides general double-linked list and queue support:
void(* record_unique_error_t)(ses_cb_t *scb, xml_msg_hdr_t *msghdr, val_value_t *errval, dlq_hdr_t *valuniqueQ)
Callback function to generate an rpc_err_rec_t and save it in the msg Use the provided error info rec...
Definition: val_unique.h:105
status_t val_unique_stmt_check(ses_cb_t *scb, xml_msg_hdr_t *msg, obj_template_t *obj, val_value_t *parent, val_value_t *firstval, val_value_t *root, record_unique_error_t error_fn)
Check for the proper uniqueness of the tuples within the set of list instances for the specified node...
Definition: val_unique.c:432
status_t
global error return code
Definition: status_enum.h:210
NETCONF Session Common definitions module.
Global error messages for status code enumerations.
One YANG data-def-stmt.
Definition: obj.h:1209
Session Control Block.
Definition: ses.h:573
one value to match one type
Definition: val.h:911
Common Encoding Message Header No longer XML specific!! Used by JSON and CBOR parsing as well!...
Definition: xml_msg.h:397
Value Node Basic Support.
XML and JSON Message send and receive support.