NAME

catgen_set - set session-specific information

SYNOPSIS

#include <cat/gen.h>

int catgen_set(cat_session *sess, const char *name, const char *value);

DESCRIPTION

This function stores information in the session-specific location of the info tree. Parent nodes must exist.

RETURN VALUES

The function returns 0 if successful, or a negative code on error. Specifically, the function returns CAT_ENOPARENT if the parent node does not exist.

EXAMPLE

If the session has a session id of 7 and calls:

        catgen_set(sess, "foo", "Hello I'm seven");

the following value will be inserted into the info tree:

        .sessions.7.foo = "Hello I'm seven"

SEE ALSO

cat, catgen, catinfo

catgen_fixservice, catgen_getint, catgen_infopath, catgen_newnode, catgen_servicepath