C-API changes: Replace yn_each with yn_iter, add keyw argument to yang_stats()
This commit is contained in:
parent
3e07a1d279
commit
4b9ee6740b
23 changed files with 358 additions and 248 deletions
|
|
@ -716,6 +716,8 @@ api_operations_get(clixon_handle h,
|
|||
char *namespace;
|
||||
cbuf *cbx = NULL;
|
||||
cxobj *xt = NULL;
|
||||
int inext;
|
||||
int inext2;
|
||||
int i;
|
||||
|
||||
clixon_debug(CLIXON_DBG_RESTCONF, "");
|
||||
|
|
@ -735,12 +737,12 @@ api_operations_get(clixon_handle h,
|
|||
default:
|
||||
break;
|
||||
}
|
||||
ymod = NULL;
|
||||
i = 0;
|
||||
while ((ymod = yn_each(yspec, ymod)) != NULL) {
|
||||
inext = 0;
|
||||
while ((ymod = yn_iter(yspec, &inext)) != NULL) {
|
||||
namespace = yang_find_mynamespace(ymod);
|
||||
yc = NULL;
|
||||
while ((yc = yn_each(ymod, yc)) != NULL) {
|
||||
inext2 = 0;
|
||||
while ((yc = yn_iter(ymod, &inext2)) != NULL) {
|
||||
if (yang_keyword_get(yc) != Y_RPC)
|
||||
continue;
|
||||
switch (media_out){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue