yumapro  20.10-12
YumaPro SDK
errmsg.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018, 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_errmsg
12 #define _H_errmsg
13 
14 /* FILE: errmsg.h
15 *********************************************************************
16 * *
17 * P U R P O S E *
18 * *
19 *********************************************************************/
20 
33 /*********************************************************************
34 * *
35 * C H A N G E H I S T O R Y *
36 * *
37 *********************************************************************
38 
39 date init comment
40 ----------------------------------------------------------------------
41 24-mar-18 abb Begun
42 */
43 
44 #ifndef _H_status_enum
45 #include "status_enum.h"
46 #endif
47 
48 #ifdef __cplusplus
49 extern "C" {
50 #endif
51 
52 /********************************************************************
53 * *
54 * F U N C T I O N S *
55 * *
56 *********************************************************************/
57 
70 extern status_t
71  errmsg_init (void);
72 
73 
78 extern void
79  errmsg_cleanup (void);
80 
81 
84 #ifdef __cplusplus
85 } /* end extern 'C' */
86 #endif
87 
88 #endif /* _H_errmsg */
ncx_appinfo.h
NCX Module Library Extension (Application Info) Utility Functions.
val.h
Value Node Basic Support.
xml_util.h
XML Utilities.
errmsg_init
status_t errmsg_init(void)
Initialize this module; must be after ext_init!!!
Definition: errmsg.c:217
status_enum.h
global error status code enumerations
tk.h
NCX Syntax Token Handler.
obj_errmsg_add_filter
status_t obj_errmsg_add_filter(obj_errmsg_t *errmsg, const xmlChar *parmstr, boolean is_errortag)
Add an errmsg filter for the object.
Definition: obj_errmsg.c:537
ncxconst.h
Contains NCX constants.
ncxmod.h
NCX Module Load Manager.
obj_errmsg_add_parm
status_t obj_errmsg_add_parm(obj_errmsg_t *errmsg, const xmlChar *parmstr)
Add an errmsg parameter for the object.
Definition: obj_errmsg.c:504
obj_errmsg_add
status_t obj_errmsg_add(obj_template_t *obj, const xmlChar *basestr, obj_errmsg_t **ret_errmsg)
Create a new obj_errmsg struct for the object.
Definition: obj_errmsg.c:463
obj_errmsg.h
Handles errmsg data structures.
ERR_NCX_MISSING_PARM
@ ERR_NCX_MISSING_PARM
233
Definition: status_enum.h:272
log_debug2
void void void void void void void void void log_debug2(const char *fstr,...) __attribute__((format(printf
Generate a new LOG_DEBUG_DEBUG2 log entry.
NO_ERR
@ NO_ERR
000
Definition: status_enum.h:188
obj_errmsg_set_lang
status_t obj_errmsg_set_lang(obj_errmsg_t *errmsg, const xmlChar *langstr)
Set the errmsg-lang for the errmsg.
Definition: obj_errmsg.c:571
obj_get_name
const xmlChar * obj_get_name(const obj_template_t *obj)
Get the name field for this obj.
Definition: obj.c:10511
ERR_NCX_OPERATION_FAILED
@ ERR_NCX_OPERATION_FAILED
274
Definition: status_enum.h:315
LOGDEBUG2
#define LOGDEBUG2
Check if at least log-level=debug2.
Definition: log.h:292
ext_register_cbfn
status_t ext_register_cbfn(const xmlChar *modname, const xmlChar *extname, ext_cbfn_t cbfn, void *cbfn_cookie)
Register a callback function for the specified extension If multiple callbacks for same extension,...
Definition: ext.c:467
ERR_INTERNAL_INIT_SEQ
@ ERR_INTERNAL_INIT_SEQ
007
Definition: status_enum.h:197
typ.h
Parameter Type Handler.
errmsg.h
Handles the following YANG extensions.
yangconst.h
Contains YANG constants separated to prevent H file include loops.
dlq_nextEntry
#define dlq_nextEntry(nodeP)
get the next queue entry after the current entry
Definition: dlq.h:265
NCX_NT_OBJ
@ NCX_NT_OBJ
obj_template_t
Definition: ncxtypes.h:277
xml_strcmp
int xml_strcmp(const xmlChar *s1, const xmlChar *s2)
String compare for xmlChar.
Definition: xml_util.c:1746
log.h
NCX System Logging Manager.
ext_template_t_
One YANG 'extension' definition – language extension template.
Definition: ext.h:130
errmsg_cleanup
void errmsg_cleanup(void)
Cleanup this module; must be before ext_cleanup!!!
Definition: errmsg.c:247
dlq_firstEntry
#define dlq_firstEntry(listP)
get the first entry in the queue list
Definition: dlq.h:337
ncx.h
YANG module utility functions.
obj.h
Data Object Support.
yang_obj.h
YANG Module parser support for data-def-stmt.
status.h
Global error messages for status code enumerations.
dlq.h
dlq provides general double-linked list and queue support: