NAME

catgen_servicepath - get full path component for a service name

SYNOPSIS

#include <cat/gen.h>

char *catgen_servicepath(const char *service);

DESCRIPTION

This function gets the full info path component for a service, given the service name. The function concatenates the service name with ``.services'' and calls catinfo_name() to convert any dot ('.') in the name to an underscore ('_'). This is needed since the '.' character is a delimiter for nodes and values in the info tree.

The service argument is the service name of the Agent.

The function returns the info tree path name. The returned string must be freed by the caller.

SEE ALSO

cat, catgen, catinfo

catgen_fixservice, catgen_getint, catgen_infopath, catgen_newnode, catgen_set