header docs
This commit is contained in:
parent
4257999df5
commit
82351afde3
1 changed files with 11 additions and 3 deletions
|
|
@ -255,6 +255,13 @@ yn_realloc(yang_node *yn)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*! Copy yang statement recursively from old to new
|
/*! Copy yang statement recursively from old to new
|
||||||
|
* @param[in] ynew New empty (but created) yang statement (to)
|
||||||
|
* @param[in] yold Old existing yang statement (from)
|
||||||
|
* @code
|
||||||
|
* yang_stmt *new = ys_new(Y_LEAF);
|
||||||
|
* if (ys_cp(new, old) < 0)
|
||||||
|
* err;
|
||||||
|
* @endcode
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
ys_cp(yang_stmt *ynew,
|
ys_cp(yang_stmt *ynew,
|
||||||
|
|
@ -304,8 +311,10 @@ ys_cp(yang_stmt *ynew,
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*! Create a new yang node and copy the contents recursively from the original.
|
/*! Create a new yang node and copy the contents recursively from the original. *
|
||||||
*
|
* @param[in] old Old existing yang statement (from)
|
||||||
|
* @retval NULL Error
|
||||||
|
* @retval new New created yang statement
|
||||||
* This may involve duplicating strings, etc.
|
* This may involve duplicating strings, etc.
|
||||||
* The new yang tree needs to be freed by ys_free().
|
* The new yang tree needs to be freed by ys_free().
|
||||||
* The parent of new is NULL, it needs to be explicityl inserted somewhere
|
* The parent of new is NULL, it needs to be explicityl inserted somewhere
|
||||||
|
|
@ -328,7 +337,6 @@ ys_dup(yang_stmt *old)
|
||||||
return new;
|
return new;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*! Insert yang statement as child of a parent yang_statement, last in list
|
/*! Insert yang statement as child of a parent yang_statement, last in list
|
||||||
*
|
*
|
||||||
* Also add parent to child as up-pointer
|
* Also add parent to child as up-pointer
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue