yumapro  25.10-1
YumaPro SDK
Loading...
Searching...
No Matches
ncxmod.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2008 - 2012, Andy Bierman, All Rights Reserved.
3 * Copyright (c) 2012 - 2025, 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_ncxmod
13#define _H_ncxmod
14
15/* FILE: ncxmod.h
16*********************************************************************
17* *
18* P U R P O S E *
19* *
20*********************************************************************/
21
30/*********************************************************************
31* *
32* C H A N G E H I S T O R Y *
33* *
34*********************************************************************
35
36date init comment
37----------------------------------------------------------------------
3810-nov-05 abb Begun
3922-jan-08 abb Add support for YANG import and include
40 Unlike NCX, forward references are allowed
41 so import/include loops have to be tracked
42 and prevented
4316-feb-08 abb Changed environment variables from NCX to YANG
44 Added YANG_INSTALL envvar as well.
4522-jul-08 abb Remove NCX support -- YANG only from now on
4606-oct-09 abb Change YANG_ env vars to YUMA_
47*/
48
49#include <xmlstring.h>
50
51/* used for timestamps and time deltas */
52#include <time.h>
53
54#ifndef _H_cap
55#include "cap.h"
56#endif
57
58#ifndef _H_help
59#include "help.h"
60#endif
61
62#ifndef _H_ncxtypes
63#include "ncxtypes.h"
64#endif
65
66#ifndef _H_status
67#include "status.h"
68#endif
69
70#ifndef _H_yang
71#include "yang.h"
72#endif
73
74#ifdef __cplusplus
75extern "C" {
76#endif
77
78/********************************************************************
79* *
80* C O N S T A N T S *
81* *
82*********************************************************************/
83
84/* max user-configurable directories for NCX and YANG modules */
85#define NCXMOD_MAX_SEARCHPATH 64
86
87/* maximum abolute filespec */
88#define NCXMOD_MAX_FSPEC_LEN 2047
89
90/* path, file separator char
91 * this is used to check file paths not XPath
92 * Windows allows foward and backslash so pick forward
93 * since that is all Linux and Mac support
94 */
95#define NCXMOD_PSCHAR '/'
96
97#define NCXMOD_WIN_PSCHAR '\\'
98
99#define NCXMOD_HMCHAR '~'
100
101#define NCXMOD_ENVCHAR '$'
102
103#define NCXMOD_DOTCHAR '.'
104
105/* name of the NCX module containing agent boot parameters
106 * loaded during startup
107 */
108#define NCXMOD_NETCONFD (const xmlChar *)"netconfd-pro"
109
110#define NCXMOD_NCX (const xmlChar *)"yuma-ncx"
111
112#define NCXMOD_RESTCONF (const xmlChar *)"ietf-restconf"
113
114#define NCXMOD_YANG_DATA_EXT (const xmlChar *)"yang-data-ext"
115
116#define NCXMOD_YANG_STRUCTURE (const xmlChar *)"ietf-yang-structure-ext"
117
118#define NCXMOD_YUMA_NACM (const xmlChar *)"yuma-nacm"
119
120#define NCXMOD_YUMA_TIME_FILTER (const xmlChar *)"yuma-time-filter"
121
122#define NCXMOD_YUMAWORKS_ATTRS (const xmlChar *)"yumaworks-attrs"
123
124#define NCXMOD_YUMAWORKS_CERT_USERMAP \
125 (const xmlChar *)"yumaworks-cert-usermap"
126
127#define NCXMOD_YUMAWORKS_CONFIG_CHANGE \
128 (const xmlChar *)"yumaworks-config-change"
129
130#define NCXMOD_YUMAWORKS_EVENT_FILTER \
131 (const xmlChar *)"yumaworks-event-filter"
132
133#define NCXMOD_YUMAWORKS_EVENT_STREAM \
134 (const xmlChar *)"yumaworks-event-stream"
135
136#define NCXMOD_YUMAWORKS_GETBULK (const xmlChar *)"yumaworks-getbulk"
137
138#define NCXMOD_YUMAWORKS_IDS (const xmlChar *)"yumaworks-ids"
139
140#define NCXMOD_YUMAWORKS_INTERNAL (const xmlChar *)"yumaworks-internal"
141
142#define NCXMOD_YUMAWORKS_SERVER (const xmlChar *)"yumaworks-server"
143
144#define NCXMOD_YUMAWORKS_SYSTEM (const xmlChar *)"yumaworks-system"
145
146#define NCXMOD_YUMAWORKS_TYPES (const xmlChar *)"yumaworks-types"
147
148#define NCXMOD_YUMAWORKS_APP_COMMON (const xmlChar *)"yumaworks-app-common"
149
150#define NCXMOD_YUMA_APP_COMMON (const xmlChar *)"yuma-app-common"
151
152#define NCXMOD_YUMA_TYPES (const xmlChar *)"yuma-types"
153
154#define NCXMOD_YANGCLI (const xmlChar *)"yangcli-pro"
155
156#define NCXMOD_YANG_API (const xmlChar *)"yumaworks-yang-api"
157
158#define NCXMOD_YUMAWORKS_GRPC_STATE \
159 (const xmlChar *)"yumaworks-grpc-mon"
160
161#define NCXMOD_YUMA_RESTCONF (const xmlChar *)"yumaworks-restconf"
162
163#define NCXMOD_YUMA_IDS (const xmlChar *)"yumaworks-ids"
164
165#define NCXMOD_YUMA_SUPPORT_SAVE (const xmlChar *)"yumaworks-support-save"
166
167#define NCXMOD_YUMA_TERM_MSG (const xmlChar *)"yumaworks-term-msg"
168
169/* name of the NETCONF module containing NETCONF protocol definitions,
170 * that is loaded by default during startup
171 */
172#define NCXMOD_NETCONF (const xmlChar *)"yuma-netconf"
173
174#define NCXMOD_YUMA_NETCONF (const xmlChar *)"yuma-netconf"
175
176#define NCXMOD_IETF_INTERFACES (const xmlChar *)"ietf-interfaces"
177
178#define NCXMOD_IETF_NETCONF (const xmlChar *)"ietf-netconf"
179
180#define NCXMOD_IETF_NETCONF_REV (const xmlChar *)"2011-06-01"
181
182#define NCXMOD_IETF_YANG_PATCH (const xmlChar *)"ietf-yang-patch"
183
184#define NCXMOD_IETF_YANG_TYPES (const xmlChar *)"ietf-yang-types"
185
186#define NCXMOD_IETF_INET_TYPES (const xmlChar *)"ietf-inet-types"
187
188#define NCXMOD_IETF_NETCONF_STATE (const xmlChar *)"ietf-netconf-monitoring"
189
190#define NCXMOD_IETF_NACM (const xmlChar *)"ietf-netconf-acm"
191
192#define NCXMOD_IETF_SID_FILE (const xmlChar *)"ietf-sid-file"
193
194#define NCXMOD_IETF_DISTRIBUTED_NOTIF \
195 (const xmlChar *)"ietf-distributed-notif"
196
197#define NCXMOD_IETF_YANG_PUSH_REVISION \
198 (const xmlChar *)"ietf-yang-push-revision"
199
200#define NCXMOD_WITH_DEFAULTS (const xmlChar *)"ietf-netconf-with-defaults"
201
202#define NCXMOD_YUMAWORKS_EXTENSIONS (const xmlChar *)"yumaworks-extensions"
203
204#define NCXMOD_YUMAWORKS_YANG_CBOR (const xmlChar *)"yumaworks-yang-cbor"
205
206#define NCXMOD_FHS_RUNDIR (const xmlChar *)"/var/run/netconfd-pro"
207
208#define NCXMOD_FHS_LIBDIR (const xmlChar *)"/var/lib/netconfd-pro"
209
210#define NCXMOD_FHS_LOGDIR (const xmlChar *)"/var/log/netconfd-pro"
211
212#define NCXMOD_FHS_LOGSPEC \
213 (const xmlChar *)"/var/log/netconfd-pro/server.log"
214
215#define NCXMOD_FHS_AUDIT_LOGSPEC \
216 (const xmlChar *)"/var/log/netconfd-pro/audit.log"
217
218#define NCXMOD_SRID_FHS_LOGSPEC \
219 (const xmlChar *)"/var/log/netconfd-pro/server.%s.log"
220
221#define NCXMOD_SRID_FHS_AUDIT_LOGSPEC \
222 (const xmlChar *)"/var/log/netconfd-pro/audit.%s.log"
223
224
225#define NCXMOD_NETCONF_NOTIFICATIONS \
226 (const xmlChar *)"ietf-netconf-notifications"
227
228#define NCXMOD_PARTIAL_LOCK (const xmlChar *)"ietf-netconf-partial-lock"
229
230#define NCXMOD_CRYPT_HASH (const xmlChar *)"iana-crypt-hash"
231
232/* name of the RESTCONF modules, that is loaded during startup
233 * if WITH_RESTCONF flag is present
234 */
235#define NCXMOD_YANG_LIBRARY (const xmlChar *)"ietf-yang-library"
236#define NCXMOD_RESTMON (const xmlChar *)"ietf-restconf-monitoring"
237
238/* IETF NMDA modules */
239#define NCXMOD_IETF_DATASTORES (const xmlChar *)"ietf-datastores"
240#define NCXMOD_IETF_ORIGIN (const xmlChar *)"ietf-origin"
241#define NCXMOD_IETF_NETCONF_NMDA (const xmlChar *)"ietf-netconf-nmda"
242
243/* IETF Schema Mount modules */
244#define NCXMOD_IETF_SM_MODULE (const xmlChar *)"ietf-yang-schema-mount"
245
246/* YumaWorks annotation to ietf-yang-schema-mount */
247#define NCXMOD_IETF_SM_MODULE_ANNOT \
248 (const xmlChar *)"yumaworks-schema-mount-annot"
249
250/* hooks-test modules is loaded during startup
251 * if WITH_HOKS_TEST flag is present
252 */
253#define NCXMOD_HOOKS_TEST (const xmlChar *)"hooks-test"
254
255#define NCXMOD_YUMA_SYSTEM (const xmlChar *)"yuma-system"
256
257/* Openconfig extensions module containing OpenConfig extension definitions
258 * "oc-ext:openconfig-version" that is mandadory filed in gNMI
259 * capability-request
260 */
261#define NCXMOD_OC_EXT (const xmlChar *)"openconfig-extensions"
262
263/* name of the NCX modules directory appended when YUMAPRO_HOME or HOME
264 * ENV vars used to construct NCX module filespec
265 */
266#define NCXMOD_DIR (const xmlChar *)"modules"
267
268/* name of the data direectory when YUMAPRO_HOME or HOME
269 * ENV vars used to construct an NCX filespec
270 */
271#define NCXMOD_DATA_DIR (const xmlChar *)"data"
272
273/* name of the scripts directory when YUMAPRO_HOME or HOME
274 * ENV vars used to construct a NCX filespec
275 */
276#define NCXMOD_SCRIPT_DIR (const xmlChar *)"scripts"
277
278/* name of the test-suites directory */
279#define NCXMOD_TEST_SUITE_DIR (const xmlChar *)"test-suites"
280
281/* STD Environment Variable for user home directory */
282#define NCXMOD_PWD "PWD"
283
284/* STD Environment Variable for user home directory */
285#define USER_HOME "HOME"
286
287/* NCX Environment Variable for YANG/NCX user work home directory */
288#define NCXMOD_HOME "YUMAPRO_HOME"
289
290/* NCX Environment Variable for tools install directory
291 * The default is /usr/share/yuma
292 */
293#define NCXMOD_INSTALL "YUMAPRO_INSTALL"
294
295/* !! should import this from make !! */
296#if defined(FREEBSD) || defined(MACOSX)
297#define NCXMOD_DEFAULT_INSTALL (const xmlChar *)"/usr/local/share/yumapro"
298#else
299#define NCXMOD_DEFAULT_INSTALL (const xmlChar *)"/usr/share/yumapro"
300#endif
301
302/* !! should import this from make !! */
303#define NCXMOD_DEFAULT_YUMALIB64 (const xmlChar *)"/usr/lib64/yumapro"
304
305#ifdef MACOSX
306#define NCXMOD_DEFAULT_YUMALIB (const xmlChar *)"/usr/local/lib/yumapro"
307#else
308#define NCXMOD_DEFAULT_YUMALIB (const xmlChar *)"/usr/lib/yumapro"
309#endif
310
311
312/* !! should import this from make !! */
313#define NCXMOD_ETC_DATA (const xmlChar *)"/etc/yumapro"
314
315/* NCX Environment Variable for MODULE search path */
316#define NCXMOD_MODPATH "YUMAPRO_MODPATH"
317
318/* NCX Environment Variable for DATA search path */
319#define NCXMOD_DATAPATH "YUMAPRO_DATAPATH"
320
321/* NCX Environment Variable for SCRIPTS search path */
322#define NCXMOD_RUNPATH "YUMAPRO_RUNPATH"
323
324/* NCX Environment Variable for MODULE load path */
325#define NCXMOD_LOADPATH "YUMAPRO_LOADPATH"
326
327/* per user yangcli internal data home when $HOME defined */
328#define NCXMOD_YUMA_DIR (const xmlChar *)"~/.yumapro"
329
330/* per user yangcli internal data home when $HOME not defined */
331#define NCXMOD_TEMP_YUMA_DIR (const xmlChar *)"/tmp/yumapro"
332
333/* Yuma work directory name */
334#define NCXMOD_YUMA_DIRNAME (const xmlChar *)".yumapro"
335
336/* sub-directory name yangcli uses to store local per-session workdirs
337 * appended to ncxmod_yumadir_path
338 */
339#define NCXMOD_TEMP_DIR (const xmlChar *)"/tmp"
340
341/* directory uses to store rpydata per step of recorded test
342 */
343#define NCXMOD_UT_RECORDTEST_DIR (const xmlChar *)"/recordtest"
344
345/* directory used to store cached schemas. */
346#define NCXMOD_YANGCLI_CACHE_DIR (const xmlChar *)"/.yangcli_cache"
347
348/* directory used to store yanglib and SID state (per server). */
349#define NCXMOD_YANGLIB_CACHE_DIR (const xmlChar *)"/.yanglib_cache"
350
351/* yanglib ID file name in the yanglib_cache/session dir */
352#define NCXMOD_YANGLIB_ID_FILE (const xmlChar *)"yangid.txt"
353
354
355#define NCXMOD_GET_SOURCE_NEEDED(s) \
356 (*(s) == (xmlChar)'~' || *(s) == (xmlChar)'.' || *(s) == (xmlChar)'$')
357
358#define NCXMOD_SEARCH_MODULE(R) (R)->module
359
360#define NCXMOD_SEARCH_REVISION(R) (R)->revision
361
362#define NCXMOD_SEARCH_SOURCE(R) (R)->source
363
364#define NCXMOD_SEARCH_NAMESPACE(R) (R)->namespacestr
365
366/* ncxmod_search_result_t flags */
367#define NCXMOD_FL_CAPMATCH bit0
368#define NCXMOD_FL_ISMOD bit1
369#define NCXMOD_FL_BEST bit2
370
371#define NCXMOD_SET_CAPMATCH(R) (R)->flags |= NCXMOD_FL_CAPMATCH
372#define NCXMOD_CLR_CAPMATCH(R) (R)->flags &= ~NCXMOD_FL_CAPMATCH
373#define NCXMOD_IS_CAPMATCH(R) ((R)->flags & NCXMOD_FL_CAPMATCH)
374
375#define NCXMOD_SET_ISMOD(R) (R)->flags |= NCXMOD_FL_ISMOD
376#define NCXMOD_IS_ISMOD(R) ((R)->flags & NCXMOD_FL_ISMOD)
377
378#define NCXMOD_SET_BEST(R) (R)->flags |= NCXMOD_FL_BEST
379#define NCXMOD_IS_BEST(R) ((R)->flags & NCXMOD_FL_BEST)
380
381/********************************************************************
382* *
383* T Y P E S *
384* *
385*********************************************************************/
386
399/* following 3 structs used for providing temporary
400 * work directories for yangcli sessions
401 */
402
404typedef struct ncxmod_temp_progcb_t_ {
405 dlq_hdr_t qhdr;
406 xmlChar *source;
407 dlq_hdr_t temp_sescbQ;
409
410
412typedef struct ncxmod_temp_sescb_t_ {
413 dlq_hdr_t qhdr;
414 xmlChar *source;
415 uint32 sidnum;
416 dlq_hdr_t temp_filcbQ;
418
419
421typedef struct ncxmod_temp_filcb_t_ {
422 dlq_hdr_t qhdr;
423 xmlChar *source;
424 const xmlChar *filename;
426
427
433typedef struct ncxmod_search_result_t_ {
434 dlq_hdr_t qhdr;
435 xmlChar *module;
436 xmlChar *belongsto;
437 xmlChar *revision;
438 xmlChar *namespacestr;
439 xmlChar *source;
442 uint32 nslen;
444 uint8 flags;
446
447
467typedef status_t (*ncxmod_callback_fn_t) (const char *fullspec,
468 void *cookie);
469
470
471
488typedef status_t (*ncxmod_backup_cbfn_t) (const char *fullspec,
489 const xmlChar *mtime,
490 void *cookie);
491
492
505typedef status_t
506 (*ncxmod_conf_cbfn_t) (const xmlChar *fullspec,
507 void *cookie);
508
509
510
518typedef void (*search_dumpfn_t) (log_debug_t level, const char *fstr, ...);
519
520
528typedef boolean
530 void *cookie);
531
532
533/********************************************************************
534* *
535* F U N C T I O N S *
536* *
537*********************************************************************/
538
539
545extern status_t
546 ncxmod_init (void);
547
548
553extern void
554 ncxmod_log_env (void);
555
556
561extern void
562 ncxmod_cleanup (void);
563
564
593extern status_t
594 ncxmod_load_module (const xmlChar *modname,
595 const xmlChar *revision,
596 dlq_hdr_t *savedevQ,
597 ncx_module_t **retmod);
598
599
626extern status_t
627 ncxmod_load_module_loadpath (const xmlChar *modname,
628 const xmlChar *revision,
629 dlq_hdr_t *savedevQ,
630 boolean is_loadpath,
631 ncx_module_t **retmod);
632
633
667extern status_t
668 ncxmod_autoload_module (const xmlChar *modname,
669 const xmlChar *revision,
670 dlq_hdr_t *savedevQ,
671 dlq_hdr_t *savemodQ,
672 dlq_hdr_t *topfailedQ,
673 ncx_module_t **retmod);
674
675
703 ncxmod_find_module (const xmlChar *modname,
704 const xmlChar *revision);
705
706
733extern status_t
734 ncxmod_find_all_modules (dlq_hdr_t *resultQ);
735
736
749extern status_t
750 ncxmod_find_all_modules_ycli_cache (dlq_hdr_t *resultQ);
751
752
753
780extern status_t
781 ncxmod_load_deviation (const xmlChar *deviname,
782 dlq_hdr_t *deviationQ);
783
784
809extern status_t
810 ncxmod_load_annotation (const xmlChar *deviname,
811 dlq_hdr_t *deviationQ);
812
813
843extern status_t
844 ncxmod_load_imodule (const xmlChar *modname,
845 const xmlChar *revision,
846 yang_pcb_t *pcb,
847 yang_parsetype_t ptyp,
848 ncx_module_t *parent,
849 ncx_module_t **retmod);
850
851
875extern yang_pcb_t *
876 ncxmod_load_module_ex (const xmlChar *modname,
877 const xmlChar *revision,
878 boolean with_submods,
879 boolean savetkc,
880 boolean keepmode,
881 boolean docmode,
882 dlq_hdr_t *savedevQ,
883 status_t *res);
884
885
905extern yang_pcb_t *
906 ncxmod_load_module_diff (const xmlChar *modname,
907 const xmlChar *revision,
908 boolean with_submods,
909 const xmlChar *modpath,
910 dlq_hdr_t *savedevQ,
911 status_t *res);
912
913
942extern xmlChar *
943 ncxmod_find_data_file (const xmlChar *fname,
944 boolean generrors,
945 boolean backup_file,
946 status_t *res);
947
948
981extern xmlChar *
982 ncxmod_find_server_data_file (const xmlChar *fname,
983 boolean fileloc_fhs,
984 boolean generrors,
985 boolean backup_file,
986 boolean keep_result,
987 status_t *res);
988
989
990
1015extern xmlChar *
1016 ncxmod_find_sil_file (const xmlChar *fname,
1017 boolean generrors,
1018 status_t *res);
1019
1020
1046extern xmlChar *
1047 ncxmod_make_data_filespec (const xmlChar *fname,
1048 boolean backup_file,
1049 status_t *res);
1050
1051
1052
1068extern xmlChar *
1069 ncxmod_make_server_data_filespec (const xmlChar *fname,
1070 boolean fileloc_fhs,
1071 boolean backup_file,
1072 status_t *res);
1073
1074
1089extern xmlChar *
1090 ncxmod_make_data_filespec_from_src (const xmlChar *srcspec,
1091 const xmlChar *fname,
1092 status_t *res);
1093
1094
1117extern xmlChar *
1118 ncxmod_find_script_file (const xmlChar *fname,
1119 status_t *res);
1120
1121
1122
1147extern xmlChar *
1148 ncxmod_find_script_file_ex (const xmlChar *fname,
1149 boolean no_err,
1150 status_t *res);
1151
1152
1175extern xmlChar *
1176 ncxmod_find_test_suite_file (const xmlChar *fname,
1177 status_t *res);
1178
1179
1187extern status_t
1188 ncxmod_set_home (const xmlChar *home);
1189
1190
1197extern const xmlChar *
1198 ncxmod_get_home (void);
1199
1200
1210extern status_t
1211 ncxmod_set_yuma_home (const xmlChar *yumahome);
1212
1213
1220extern const xmlChar *
1221 ncxmod_get_yuma_home (void);
1222
1223
1230extern const xmlChar *
1232
1233
1242extern void
1243 ncxmod_set_modpath (const xmlChar *modpath);
1244
1245
1254extern void
1255 ncxmod_set_loadpath (const xmlChar *loadpath);
1256
1257
1264extern void
1265 ncxmod_set_datapath (const xmlChar *datapath);
1266
1267
1274extern void
1275 ncxmod_set_runpath (const xmlChar *runpath);
1276
1277
1284extern void
1285 ncxmod_set_subdirs (boolean usesubdirs);
1286
1287
1293extern const xmlChar *
1294 ncxmod_get_yumadir (void);
1295
1296
1311extern status_t
1312 ncxmod_process_subtree (const char *startspec,
1313 ncxmod_callback_fn_t callback,
1314 void *cookie);
1315
1316
1325extern boolean
1326 ncxmod_test_subdir (const xmlChar *dirspec);
1327
1328
1336extern const xmlChar *
1337 ncxmod_get_userhome (const xmlChar *user,
1338 uint32 userlen);
1339
1340
1348extern const xmlChar *
1349 ncxmod_get_envvar (const xmlChar *name,
1350 uint32 namelen);
1351
1352
1360extern void
1361 ncxmod_set_altpath (const xmlChar *altpath);
1362
1363
1368extern void
1369 ncxmod_clear_altpath (void);
1370
1371
1390extern status_t
1392 boolean logstdout);
1393
1394
1413extern status_t
1415 boolean logstdout);
1416
1417
1436extern status_t
1438 boolean logstdout);
1439
1440
1446extern status_t
1447 ncxmod_setup_yumadir (void);
1448
1449
1459extern status_t
1460 ncxmod_setup_yumadir_srid (const xmlChar *srid);
1461
1462
1467extern status_t
1468 ncxmod_setup_backup_dir (const xmlChar *backup_dir);
1469
1470
1482extern status_t
1483 ncxmod_setup_fhs_dirs (void);
1484
1485
1497extern status_t
1498 ncxmod_setup_fhs_srid_dirs (const xmlChar *server_root);
1499
1500
1506extern status_t
1507 ncxmod_setup_tempdir (void);
1508
1509
1520extern status_t
1521 ncxmod_setup_yumadir_force (const xmlChar *path);
1522
1523
1531
1532
1541 ncxmod_setup_yangcli_cache_dir (const xmlChar *cache_dir);
1542
1543
1544
1545/********* YANG Library Caching Used in Client **********/
1546
1547
1559 ncxmod_setup_yanglib_cache_dir (const xmlChar *cache_dir);
1560
1561
1569extern void
1571
1572
1586 ncxmod_clear_yanglib_cache (const xmlChar *server_dir);
1587
1588
1608extern status_t
1609 ncxmod_setup_yanglib_server_dir (const xmlChar *server_dir,
1610 uint16 portnum,
1611 boolean *created);
1612
1613
1637extern status_t
1638 ncxmod_get_yanglib_id (const xmlChar *server_dir,
1639 uint16 port_num,
1640 xmlChar **retbuff);
1641
1642
1657extern status_t
1658 ncxmod_get_yanglib_filespec (const xmlChar *server_dir,
1659 uint16 port_num,
1660 const xmlChar *filename,
1661 xmlChar **retbuff);
1662
1663
1664
1679extern status_t
1680 ncxmod_set_yanglib_id (const xmlChar *server_dir,
1681 uint16 port_num,
1682 const xmlChar *yanglib_id,
1683 boolean is_replace);
1684
1685
1701extern status_t
1702 ncxmod_find_yanglib_server_dir (const xmlChar *server_dir,
1703 uint16 *portnum);
1704
1705
1713extern ncxmod_temp_progcb_t *
1715
1716
1722extern void
1724
1725
1735extern ncxmod_temp_sescb_t *
1737 uint32 sidnum,
1738 status_t *res);
1739
1740
1747extern void
1749 uint32 sidnum);
1750
1751
1761extern ncxmod_temp_filcb_t *
1763 const xmlChar *filename,
1764 status_t *res);
1765
1766
1772extern void
1774
1775
1783
1784
1793
1794
1803 ncxmod_new_search_result_str (const xmlChar *modname,
1804 const xmlChar *revision);
1805
1806
1812extern void
1814
1815
1816
1823extern void
1824 ncxmod_clean_search_result_queue (dlq_hdr_t *searchQ);
1825
1826
1840 ncxmod_find_search_result (dlq_hdr_t *searchQ,
1841 const xmlChar *modname,
1842 const xmlChar *revision,
1843 const xmlChar *nsuri);
1844
1845
1854
1855
1863extern boolean
1864 ncxmod_test_filespec (const xmlChar *filespec);
1865
1866
1873extern uint32
1874 ncxmod_get_pathlen_from_filespec (const xmlChar *filespec);
1875
1876
1884extern status_t
1885 ncxmod_get_file_mtime (const xmlChar *filespec,
1886 time_t *timebuff);
1887
1888
1899extern status_t
1901 void *cookie);
1902
1903
1913extern xmlChar *
1914 ncxmod_get_pid_filespec (const xmlChar *progname,
1915 boolean fileloc_fhs,
1916 status_t *res);
1917
1918
1929extern xmlChar *
1930 ncxmod_get_subdir_filespec (const xmlChar *subdir,
1931 boolean fileloc_fhs,
1932 status_t *res);
1933
1934
1946extern status_t
1947 ncxmod_read_num_file (const xmlChar *numfile,
1948 uint64 *curnum,
1949 boolean file_error);
1950
1951
1960extern status_t
1961 ncxmod_write_num_file (const xmlChar *numfile,
1962 uint64 curnum);
1963
1964
1972extern status_t
1973 ncxmod_copy_text_file (const xmlChar *src_filespec,
1974 const xmlChar *dest_filespec);
1975
1976
1977
1990extern status_t
1991 ncxmod_subsys_info_write (const xmlChar *filespec,
1992 const xmlChar *ipaddr,
1993 uint16 portnum);
1994
1995
2001extern void
2002 ncxmod_subsys_info_remove (const xmlChar *filespec);
2003
2004
2017extern status_t
2018 ncxmod_get_conf_files (const xmlChar *confdir,
2019 boolean must_exist,
2020 ncxmod_conf_cbfn_t cbfn,
2021 void *cookie);
2022
2023
2027extern status_t
2029
2030
2043extern status_t
2044 ncxmod_set_private_bestmatch (const xmlChar *modpath);
2045
2046
2061extern status_t
2063 void *cookie);
2064
2065
2070extern void
2072
2081extern status_t
2083 void *cookie);
2084
2085
2096extern status_t
2098 xmlChar *load_path,
2099 void *cookie);
2100
2101
2109extern boolean
2110 ncxmod_use_bestmatch_now (const xmlChar *revision);
2111
2112
2120extern void
2122 log_debug_t loglevel);
2123
2124
2132#ifdef WINDOWS
2133#define ncxmod_is_pschar(ch) \
2134 (((ch) == NCXMOD_PSCHAR) || ((ch) == NCXMOD_WIN_PSCHAR))
2135#else
2136#define ncxmod_is_pschar(ch) ((ch) == NCXMOD_PSCHAR)
2137#endif
2138
2139
2147extern const xmlChar *
2148 ncxmod_get_modpath (void);
2149
2150
2158extern const xmlChar *
2159 ncxmod_get_datapath (void);
2160
2161
2169extern const xmlChar *
2170 ncxmod_get_runpath (void);
2171
2172
2200extern xmlChar *
2201 ncxmod_find_sid_file (const xmlChar *fname,
2202 boolean generrors,
2203 status_t *res);
2204
2205
2209#ifdef __cplusplus
2210} /* end extern 'C' */
2211#endif
2212
2213#endif /* _H_ncxmod */
NETCONF protocol capabilities.
log_debug_t
The debug level enumerations used in util/log.c.
Definition: log.h:348
status_t
global error return code
Definition: status_enum.h:219
help_mode_t
modes to match the keywords brief, normal, full
Definition: help.h:84
void ncxmod_set_modpath(const xmlChar *modpath)
Override the YUMAPRO_MODPATH env var with the modpath CLI var.
Definition: ncxmod.c:7240
status_t ncxmod_list_data_files(help_mode_t helpmode, boolean logstdout)
List the available data files found in the data search parh.
Definition: ncxmod.c:7636
status_t ncxmod_get_file_mtime(const xmlChar *filespec, time_t *timebuff)
Get the last-modified time for a file.
Definition: ncxmod.c:10199
status_t ncxmod_init(void)
Initialize the ncxmod module.
Definition: ncxmod.c:4891
const xmlChar * ncxmod_get_modpath(void)
Get the ncxmod_mod_path value.
Definition: ncxmod.c:11494
status_t ncxmod_load_annotation(const xmlChar *deviname, dlq_hdr_t *deviationQ)
Load an annotation module (special compiler processing)
Definition: ncxmod.c:5628
ncxmod_temp_filcb_t * ncxmod_new_session_tempfile(ncxmod_temp_sescb_t *sescb, const xmlChar *filename, status_t *res)
Setup a session instance temp file for writing.
Definition: ncxmod.c:9656
void ncxmod_set_altpath(const xmlChar *altpath)
Set the alternate path that should be used first (for yangdiff)
Definition: ncxmod.c:7587
ncxmod_search_result_t * ncxmod_clone_search_result(const ncxmod_search_result_t *sr)
Clone a search result.
Definition: ncxmod.c:10051
status_t(* ncxmod_callback_fn_t)(const char *fullspec, void *cookie)
user function callback template to process a module during a subtree traversal
Definition: ncxmod.h:467
boolean ncxmod_test_subdir(const xmlChar *dirspec)
Check if the specified string is a directory.
Definition: ncxmod.c:7471
xmlChar * ncxmod_find_sil_file(const xmlChar *fname, boolean generrors, status_t *res)
Determine the location of the specified server instrumentation library file.
Definition: ncxmod.c:6284
status_t ncxmod_list_yang_files(help_mode_t helpmode, boolean logstdout)
List the available YANG files found in the 'mod' search parh.
Definition: ncxmod.c:7982
status_t ncxmod_process_subtree(const char *startspec, ncxmod_callback_fn_t callback, void *cookie)
Search the entire specified subtree, looking for YANG modules.
Definition: ncxmod.c:7403
void ncxmod_set_runpath(const xmlChar *runpath)
Override the YUMAPRO_RUNPATH env var with the runpath CLI var.
Definition: ncxmod.c:7331
status_t ncxmod_setup_fhs_dirs(void)
Setup the following FHS location server directories if they do not already exist.
Definition: ncxmod.c:8366
void ncxmod_free_program_tempdir(ncxmod_temp_progcb_t *progcb)
Remove a program instance temp files directory.
Definition: ncxmod.c:9482
xmlChar * ncxmod_find_data_file(const xmlChar *fname, boolean generrors, boolean backup_file, status_t *res)
Determine the location of the specified data file.
Definition: ncxmod.c:5941
void ncxmod_clear_altpath(void)
Clear the alternate path so none is used (for yangdiff)
Definition: ncxmod.c:7606
const xmlChar * ncxmod_get_yumadir(void)
Get the yuma directory being used.
Definition: ncxmod.c:7376
status_t ncxmod_setup_tempdir(void)
Setup the ~/.yuma/tmp directory if it does not exist.
Definition: ncxmod.c:8536
status_t ncxmod_list_script_files(help_mode_t helpmode, boolean logstdout)
List the available script files found in the 'run' search parh.
Definition: ncxmod.c:7809
xmlChar * ncxmod_find_sid_file(const xmlChar *fname, boolean generrors, status_t *res)
Determine the location of the specified Schema Item Identifier file.
Definition: ncxmod.c:11360
status_t ncxmod_set_private_bestmatch(const xmlChar *modpath)
Check for all the modules avialable for bestmatch checking.
Definition: ncxmod.c:10875
xmlChar * ncxmod_get_pid_filespec(const xmlChar *progname, boolean fileloc_fhs, status_t *res)
Get the PID file specification for the given program name.
Definition: ncxmod.c:10279
status_t ncxmod_get_conf_files(const xmlChar *confdir, boolean must_exist, ncxmod_conf_cbfn_t cbfn, void *cookie)
Get all the available conf files found in the specified config directory if it exist; Invoke the call...
Definition: ncxmod.c:10790
status_t ncxmod_set_home(const xmlChar *home)
Override the HOME env var with the home CLI var.
Definition: ncxmod.c:7071
yang_pcb_t * ncxmod_load_module_ex(const xmlChar *modname, const xmlChar *revision, boolean with_submods, boolean savetkc, boolean keepmode, boolean docmode, dlq_hdr_t *savedevQ, status_t *res)
Load a YANG module (extended)
Definition: ncxmod.c:5782
status_t ncxmod_setup_yanglib_server_dir(const xmlChar *server_dir, uint16 portnum, boolean *created)
Setup the ~/.yumapro/.yanglib_cache/<server> directory if it does not exist.
Definition: ncxmod.c:8991
status_t ncxmod_set_bestmatch_modules(void)
Check for all the modules avialable for bestmatch checking.
Definition: ncxmod.c:10831
status_t ncxmod_get_backup_files(ncxmod_backup_cbfn_t cbfn, void *cookie)
Get all the available backup files found in the specified backup directory if it exist;.
Definition: ncxmod.c:10235
uint32 ncxmod_get_pathlen_from_filespec(const xmlChar *filespec)
Get the length of th path part of the filespec string.
Definition: ncxmod.c:10158
const xmlChar * ncxmod_get_yuma_home(void)
Get the YUMAPRO_HOME or –yuma-home parameter value, whichever is in effect, if any.
Definition: ncxmod.c:7200
ncxmod_temp_sescb_t * ncxmod_new_session_tempdir(ncxmod_temp_progcb_t *progcb, uint32 sidnum, status_t *res)
Setup a session instance temp files directory.
Definition: ncxmod.c:9509
boolean ncxmod_test_filespec(const xmlChar *filespec)
Check the exact filespec to see if it a file.
Definition: ncxmod.c:10129
status_t ncxmod_find_all_modules_ycli_cache(dlq_hdr_t *resultQ)
Find all modules in the search path for the yangcli cache.
Definition: ncxmod.c:5526
xmlChar * ncxmod_find_server_data_file(const xmlChar *fname, boolean fileloc_fhs, boolean generrors, boolean backup_file, boolean keep_result, status_t *res)
Find a server data file.
Definition: ncxmod.c:6164
status_t ncxmod_setup_yumadir(void)
Setup the ~/.yumapro directory if it does not exist.
Definition: ncxmod.c:8141
xmlChar * ncxmod_make_data_filespec(const xmlChar *fname, boolean backup_file, status_t *res)
Determine a suitable path location for the specified data file name.
Definition: ncxmod.c:6457
status_t ncxmod_clear_yanglib_cache(const xmlChar *server_dir)
Clear the yanglib cache on this machine.
Definition: ncxmod.c:8930
boolean(* private_bestmatch_fn_t)(const ncxmod_search_result_t *sr, void *cookie)
Callback to walk the private_bastmatch_dict.
Definition: ncxmod.h:529
xmlChar * ncxmod_find_script_file_ex(const xmlChar *fname, boolean no_err, status_t *res)
Determine the location of the specified script file but can suppress error if not found.
Definition: ncxmod.c:6812
void ncxmod_subsys_info_remove(const xmlChar *filespec)
Remove the subsystem info file.
Definition: ncxmod.c:10755
xmlChar * ncxmod_make_server_data_filespec(const xmlChar *fname, boolean fileloc_fhs, boolean backup_file, status_t *res)
Determine a suitable path location for the specified data file name.
Definition: ncxmod.c:6609
ncxmod_search_result_t * ncxmod_new_search_result(void)
Malloc and initialize a search result struct.
Definition: ncxmod.c:9756
status_t ncxmod_scan_loadpath(ncxmod_callback_fn_t cbfn, void *cookie)
Check for all the modules in the YUMAPRO_LOADPATH (–loadpath) Invoke the callback function which will...
Definition: ncxmod.c:11020
void ncxmod_set_loadpath(const xmlChar *loadpath)
Override the YUMAPRO_LOADPATH env var with the loadpath CLI var.
Definition: ncxmod.c:7271
status_t ncxmod_setup_backup_dir(const xmlChar *backup_dir)
Setup the ~/.yumapro/backups directory if it does not exist.
Definition: ncxmod.c:8315
status_t ncxmod_setup_yanglib_cache_dir(const xmlChar *cache_dir)
Setup the ~/.yumapro/.yanglib_cache directory if it does not exist.
Definition: ncxmod.c:8681
status_t ncxmod_find_all_modules(dlq_hdr_t *resultQ)
Find all modules in the path and create a Q of search results.
Definition: ncxmod.c:5498
ncxmod_search_result_t * ncxmod_find_search_result(dlq_hdr_t *searchQ, const xmlChar *modname, const xmlChar *revision, const xmlChar *nsuri)
Find a search result inthe specified Q.
Definition: ncxmod.c:9979
status_t ncxmod_walk_private_bestmatch(private_bestmatch_fn_t cbfn, void *cookie)
Walk the private bastmatch dict.
Definition: ncxmod.c:10945
status_t ncxmod_set_yuma_home(const xmlChar *yumahome)
Override the YUMAPRO_HOME env var with the yuma-home CLI var.
Definition: ncxmod.c:7154
status_t ncxmod_load_imodule(const xmlChar *modname, const xmlChar *revision, yang_pcb_t *pcb, yang_parsetype_t ptyp, ncx_module_t *parent, ncx_module_t **retmod)
Load an import module (special compiler processing)
Definition: ncxmod.c:5673
status_t ncxmod_get_yanglib_id(const xmlChar *server_dir, uint16 port_num, xmlChar **retbuff)
Get the YANG Library value ID for the server if found
Definition: ncxmod.c:9058
status_t(* ncxmod_conf_cbfn_t)(const xmlChar *fullspec, void *cookie)
internal .conf file handler Read all the foo.conf files in the specified directory Call the cbfn for ...
Definition: ncxmod.h:506
status_t ncxmod_load_module_loadpath(const xmlChar *modname, const xmlChar *revision, dlq_hdr_t *savedevQ, boolean is_loadpath, ncx_module_t **retmod)
Determine the location of the specified module and then load it into the system, if not already loade...
Definition: ncxmod.c:5210
const xmlChar * ncxmod_get_home(void)
Get the HOME or –home parameter value, whichever is in effect, if any.
Definition: ncxmod.c:7136
void ncxmod_free_session_tempfile(ncxmod_temp_filcb_t *filcb)
Clean and free a session instance temp files directory.
Definition: ncxmod.c:9734
status_t ncxmod_read_num_file(const xmlChar *numfile, uint64 *curnum, boolean file_error)
Read the uint64 file and return the value found Expects full filespec, does not call ncx_get_source!...
Definition: ncxmod.c:10430
void ncxmod_show_yanglib_cache(help_mode_t helpmode)
Show a summary of the contents of the yanglib cache on this machine.
Definition: ncxmod.c:8724
status_t ncxmod_setup_recordtest_dir(void)
Setup the ~/.yumapro/recordtest directory if it does not exist.
Definition: ncxmod.c:8585
status_t ncxmod_get_yanglib_filespec(const xmlChar *server_dir, uint16 port_num, const xmlChar *filename, xmlChar **retbuff)
Get the YANG Library full filespec for the filename
Definition: ncxmod.c:9105
status_t ncxmod_autoload_module(const xmlChar *modname, const xmlChar *revision, dlq_hdr_t *savedevQ, dlq_hdr_t *savemodQ, dlq_hdr_t *topfailedQ, ncx_module_t **retmod)
Load a YANG Module (Used by yangcli-pro)
Definition: ncxmod.c:5325
status_t ncxmod_setup_fhs_srid_dirs(const xmlChar *server_root)
Setup the following FHS SRID subdir location.
Definition: ncxmod.c:8453
void ncxmod_free_session_tempdir(ncxmod_temp_progcb_t *progcb, uint32 sidnum)
Clean and free a session instance temp files directory.
Definition: ncxmod.c:9605
status_t(* ncxmod_backup_cbfn_t)(const char *fullspec, const xmlChar *mtime, void *cookie)
user function callback template to process a backup file during a subtree traversal
Definition: ncxmod.h:488
yang_pcb_t * ncxmod_load_module_diff(const xmlChar *modname, const xmlChar *revision, boolean with_submods, const xmlChar *modpath, dlq_hdr_t *savedevQ, status_t *res)
Load a module (special yangdiff-pro handling)
Definition: ncxmod.c:5859
void ncxmod_clean_private_bestmatch(void)
clean up the private_bestmatch_dict after each use
Definition: ncxmod.c:10998
const xmlChar * ncxmod_get_datapath(void)
Get the ncxmod_data_path value.
Definition: ncxmod.c:11511
status_t ncxmod_setup_yumadir_force(const xmlChar *path)
Setup the ~/.yumapro directory if it does not exist.
Definition: ncxmod.c:8283
void ncxmod_dump_module_search_path(search_dumpfn_t dumpfn, log_debug_t loglevel)
Output the YANG module search path.
Definition: ncxmod.c:11100
status_t ncxmod_setup_yumadir_srid(const xmlChar *srid)
Setup the ~/.yumapro/SRID directory if it does not exist.
Definition: ncxmod.c:8216
status_t ncxmod_write_num_file(const xmlChar *numfile, uint64 curnum)
Write the number file with the supplied value Expects full filespec, does not call ncx_get_source!...
Definition: ncxmod.c:10516
xmlChar * ncxmod_get_subdir_filespec(const xmlChar *subdir, boolean fileloc_fhs, status_t *res)
Get the subdir specification for the given subdir name The correct .yumapro directory will be used fo...
Definition: ncxmod.c:10360
void ncxmod_cleanup(void)
Cleanup the ncxmod module.
Definition: ncxmod.c:5091
status_t ncxmod_subsys_info_write(const xmlChar *filespec, const xmlChar *ipaddr, uint16 portnum)
Write the subsystem info file;.
Definition: ncxmod.c:10674
void ncxmod_set_subdirs(boolean usesubdirs)
Set the subdirs flag to FALSE if the no-subdirs CLI param is set.
Definition: ncxmod.c:7360
void ncxmod_set_datapath(const xmlChar *datapath)
Override the YUMA_DATAPATH env var with the datapath CLI var.
Definition: ncxmod.c:7301
ncxmod_temp_progcb_t * ncxmod_new_program_tempdir(status_t *res)
Setup a program instance temp files directory.
Definition: ncxmod.c:9379
status_t ncxmod_set_yanglib_id(const xmlChar *server_dir, uint16 port_num, const xmlChar *yanglib_id, boolean is_replace)
Set the YANG Library value ID for the server.
Definition: ncxmod.c:9144
const xmlChar * ncxmod_get_runpath(void)
Get the ncxmod_run_path value.
Definition: ncxmod.c:11528
void ncxmod_log_env(void)
Report the environment variables used by the running system.
Definition: ncxmod.c:5040
status_t ncxmod_setup_yangcli_cache_dir(const xmlChar *cache_dir)
Setup the ~/.yumapro/.yangcli_cache directory if it does not exist.
Definition: ncxmod.c:8636
const xmlChar * ncxmod_get_envvar(const xmlChar *name, uint32 namelen)
Get the specified shell environment variable.
Definition: ncxmod.c:7552
boolean ncxmod_use_bestmatch_now(const xmlChar *revision)
Check if the bestmatch can be used for this module.
Definition: ncxmod.c:11084
status_t ncxmod_find_yanglib_server_dir(const xmlChar *server_dir, uint16 *portnum)
Find a server dir based on its IP address.
Definition: ncxmod.c:9317
ncxmod_search_result_t * ncxmod_new_search_result_str(const xmlChar *modname, const xmlChar *revision)
Malloc and initialize a search result struct.
Definition: ncxmod.c:9866
const xmlChar * ncxmod_get_userhome(const xmlChar *user, uint32 userlen)
Get the user home dir from the passwd file.
Definition: ncxmod.c:7501
ncxmod_search_result_t * ncxmod_new_search_result_ex(const ncx_module_t *mod)
Malloc and initialize a search result struct.
Definition: ncxmod.c:9783
void ncxmod_free_search_result(ncxmod_search_result_t *searchresult)
Clean and free a search result struct.
Definition: ncxmod.c:9910
xmlChar * ncxmod_make_data_filespec_from_src(const xmlChar *srcspec, const xmlChar *fname, status_t *res)
Determine the directory path portion of the specified source_url and change the filename to the speci...
Definition: ncxmod.c:6717
xmlChar * ncxmod_find_script_file(const xmlChar *fname, status_t *res)
Determine the location of the specified script file.
Definition: ncxmod.c:6804
const xmlChar * ncxmod_get_yuma_install(void)
Get the YUMAPRO_INSTALL or default install parameter value, whichever is in effect.
Definition: ncxmod.c:7217
status_t ncxmod_scan_loadpath_sm(ncxmod_callback_fn_t cbfn, xmlChar *load_path, void *cookie)
Check for all the modules in the YUMAPRO_LOADPATH (–loadpath) Invoke the callback function which will...
Definition: ncxmod.c:11051
void ncxmod_clean_search_result_queue(dlq_hdr_t *searchQ)
Clean and free all the search result structs in the specified Q.
Definition: ncxmod.c:9946
xmlChar * ncxmod_find_test_suite_file(const xmlChar *fname, status_t *res)
Determine the location of the specified test-suite file.
Definition: ncxmod.c:6944
status_t ncxmod_copy_text_file(const xmlChar *src_filespec, const xmlChar *dest_filespec)
Copy the source text file to the fully specified filespec.
Definition: ncxmod.c:10581
ncxmod_search_result_t * ncxmod_find_module(const xmlChar *modname, const xmlChar *revision)
Find a YANG module and generate a search result.
Definition: ncxmod.c:5422
void(* search_dumpfn_t)(log_debug_t level, const char *fstr,...)
Callback to do log dump function for show searchpath.
Definition: ncxmod.h:518
yang_parsetype_t
YANG parser mode entry types.
Definition: yang.h:104
YANG help text support for CLI Print help text for various templates.
YANG module data structures Many internal representations of YANG module constructs.
Global error messages for status code enumerations.
queue of this structure for list of enterprise capabilities
Definition: cap.h:319
representation of one module or submodule during and after parsing
Definition: ncxtypes.h:1118
struct for storing YANG file search results this is used by yangcli for schema auto-load also for fin...
Definition: ncxmod.h:433
xmlChar * source
file location
Definition: ncxmod.h:439
xmlChar * module
module or submodule name
Definition: ncxmod.h:435
dlq_hdr_t qhdr
queue header
Definition: ncxmod.h:434
xmlChar * namespacestr
set if module & namespace found
Definition: ncxmod.h:438
status_t res
search result, only use if NO_ERR
Definition: ncxmod.h:441
xmlChar * revision
set if most recent revision found
Definition: ncxmod.h:437
ncx_module_t * mod
back-ptr to found module if loaded
Definition: ncxmod.h:440
xmlChar * belongsto
set if submodule & belongs-to found
Definition: ncxmod.h:436
uint8 flags
replaces capmatch and ismod
Definition: ncxmod.h:444
cap_rec_t * cap
back-ptr to source capability URI
Definition: ncxmod.h:443
uint32 nslen
length of base part of namespacestr
Definition: ncxmod.h:442
temporary file control block
Definition: ncxmod.h:421
xmlChar * source
filespec source string
Definition: ncxmod.h:423
dlq_hdr_t qhdr
queue header
Definition: ncxmod.h:422
const xmlChar * filename
ptr into source
Definition: ncxmod.h:424
program-level temp dir control block
Definition: ncxmod.h:404
xmlChar * source
filespec source string
Definition: ncxmod.h:406
dlq_hdr_t temp_sescbQ
Q of ncxmod_temp_sescb_t.
Definition: ncxmod.h:407
dlq_hdr_t qhdr
queue header
Definition: ncxmod.h:405
session-level temp-dir control block
Definition: ncxmod.h:412
xmlChar * source
filespec source string
Definition: ncxmod.h:414
dlq_hdr_t temp_filcbQ
Q of ncxmod_temp_filcb_t.
Definition: ncxmod.h:416
dlq_hdr_t qhdr
queue header
Definition: ncxmod.h:413
uint32 sidnum
session ID number
Definition: ncxmod.h:415
YANG parser control block.
Definition: yang.h:204
YANG Module parser utilities.