catgen_newnode - create new info node
#include <cat/gen.h>
int catgen_newnode(cat_session *sess, const char *name);
This function creates a new info node in the session-specific part of the
info tree. Parent nodes must exist.
sess is the session.
name is the name of the new node.
The function returns 0 if successful or a negative code on error.
Specifically, the function will return CAT_ENOPARENT if the parent node does not exist.
If the session has a session id of 7 (as returned by cat_getsessid) and calls:
catgen_newnode(sess, "debug");
the following node will be inserted into the info tree:
.sessions.7.debug
cat, catgen, catinfo, cat_getsessid
catgen_fixservice, catgen_getint, catgen_infopath
catgen_servicepath, catgen_set