yumapro  24.10-3
YumaPro SDK
Loading...
Searching...
No Matches
plock.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_plock
13#define _H_plock
14/* FILE: plock.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----------------------------------------------------------------------
3421-jun-10 abb Begun.
35
36*/
37
38#ifndef _H_plock_cb
39#include "plock_cb.h"
40#endif
41
42#ifndef _H_status
43#include "status.h"
44#endif
45
46#ifndef _H_xpath
47#include "xpath.h"
48#endif
49
50#ifdef __cplusplus
51extern "C" {
52#endif
53
54/********************************************************************
55* *
56* C O N S T A N T S *
57* *
58*********************************************************************/
59
60
61/********************************************************************
62* *
63* T Y P E S *
64* *
65*********************************************************************/
66
67
68/********************************************************************
69* *
70* F U N C T I O N S *
71* *
72*********************************************************************/
73
90extern plock_id_t
92
93
100extern uint32
102
103
110extern const xmlChar *
112
113
114
121extern xpath_result_t *
123
124
131extern xpath_pcb_t *
133
134
141extern xpath_pcb_t *
143
144
152extern void
154 xpath_pcb_t *xpathpcb,
155 xpath_result_t *result);
156
157
167extern status_t
169
170
171
175#ifdef __cplusplus
176} /* end extern 'C' */
177#endif
178
179#endif /* _H_plock */
xpath_pcb_t * plock_get_next_select(xpath_pcb_t *xpathpcb)
Get the next select XPath control block for the partial lock.
Definition: plock.c:248
uint32 plock_id_t
matches lock-id-type in YANG module
Definition: plock_cb.h:78
const xmlChar * plock_get_timestamp(plock_cb_t *plcb)
Get the timestamp of the lock start time.
Definition: plock.c:176
plock_id_t plock_get_id(plock_cb_t *plcb)
Get the lock ID for this partial lock.
Definition: plock.c:127
xpath_result_t * plock_get_final_result(plock_cb_t *plcb)
Get the session ID holding this partial lock.
Definition: plock.c:200
void plock_add_select(plock_cb_t *plcb, xpath_pcb_t *xpathpcb, xpath_result_t *result)
Add a select XPath control block to the partial lock.
Definition: plock.c:272
uint32 plock_get_sid(plock_cb_t *plcb)
Get the session ID holding this partial lock.
Definition: plock.c:151
status_t plock_make_final_result(plock_cb_t *plcb)
Create a final XPath result for all the partial results.
Definition: plock.c:302
xpath_pcb_t * plock_get_first_select(plock_cb_t *plcb)
Get the first select XPath control block for the partial lock.
Definition: plock.c:224
status_t
global error return code
Definition: status_enum.h:210
RFC 57517 partial lock support Data structure definition.
Global error messages for status code enumerations.
struct representing 1 configuration database
Definition: plock_cb.h:81
XPath parser control block.
Definition: xpath.h:754
XPath expression result.
Definition: xpath.h:705
Schema and data model Xpath search support.