Netgroup Map Type
This section explains the netgroup map type.
The following is the required prototype for a user-defined netgroup
map class:
void * ng_pvtinit();
void ng_rewind(void *private, const char *group);
void ng_close(void *private);
int ng_next(void *private, char **host, char **user, char **domain);
int ng_test(void *private, const char *name, const char *host, const char *user,
const char *domain);
void ng_minimize(void *private);
Function ng_pvtinit must exist. It is not required to return anything more than NULL. For example, the function can return NULL if the calling routine does not need private data.
Functions other than ng_pvtinit are optional for this class. The module can provide none or only part of the optional functions in its definition.