Restructured error,debug anf log API
Renamed functions clicon->clixon, replaced global variables w access functions Unified clicon_netconf_error with clixon_err()
This commit is contained in:
parent
261469be16
commit
24a4991ec8
199 changed files with 4668 additions and 4158 deletions
|
|
@ -47,12 +47,13 @@
|
|||
/* cligen */
|
||||
#include <cligen/cligen.h>
|
||||
|
||||
/* clicon */
|
||||
#include "clixon_log.h"
|
||||
#include "clixon_err.h"
|
||||
/* clixon */
|
||||
#include "clixon_queue.h"
|
||||
#include "clixon_hash.h"
|
||||
#include "clixon_handle.h"
|
||||
#include "clixon_log.h"
|
||||
#include "clixon_debug.h"
|
||||
#include "clixon_err.h"
|
||||
#include "clixon_yang.h"
|
||||
#include "clixon_yang_sub_parse.h"
|
||||
#include "clixon_yang_schemanode_parse.h"
|
||||
|
|
@ -76,7 +77,7 @@ yang_subparse(char *str,
|
|||
const char *mainfile,
|
||||
int linenum,
|
||||
int *enabled,
|
||||
clicon_handle h)
|
||||
clixon_handle h)
|
||||
{
|
||||
int retval = -1;
|
||||
clixon_yang_sub_parse_yacc ife = {0,};
|
||||
|
|
@ -92,8 +93,8 @@ yang_subparse(char *str,
|
|||
if (clixon_yang_sub_parsel_init(&ife) < 0)
|
||||
goto done;
|
||||
if (clixon_yang_sub_parseparse(&ife) != 0) { /* yacc returns 1 on error */
|
||||
if (clicon_errno == 0)
|
||||
clicon_err(OE_YANG, 0, "If-feature parser error with no error code (should not happen)");
|
||||
if (clixon_err_category() == 0)
|
||||
clixon_err(OE_YANG, 0, "If-feature parser error with no error code (should not happen)");
|
||||
goto done;
|
||||
}
|
||||
if (enabled)
|
||||
|
|
@ -131,8 +132,8 @@ yang_schema_nodeid_subparse(char *str,
|
|||
if (clixon_yang_schemanode_parsel_init(&ife) < 0)
|
||||
goto done;
|
||||
if (clixon_yang_schemanode_parseparse(&ife) != 0) { /* yacc returns 1 on error */
|
||||
if (clicon_errno == 0)
|
||||
clicon_err(OE_YANG, 0, "descendant-schema-nodeid parser error with no error code (should not happen)");
|
||||
if (clixon_err_category() == 0)
|
||||
clixon_err(OE_YANG, 0, "descendant-schema-nodeid parser error with no error code (should not happen)");
|
||||
goto done;
|
||||
}
|
||||
retval = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue