The Database client slow control interface
int SlcTableGetChan(nmax, chantypes, servernames, tablenames) int nmax; char **chantypes; char **servernames; char **tablenames;
This function retrieves the channel types, servers and tables defined in the slow control configuration database, this retrieval is done by matching the patterns of the chantypes argument with the existing channel types. The matching is tried from the first to last channel.
nmax: maximum number of channels. chantypes: input patterns that will be compared with the slow channels identifiers. servernames: the found servers names. tablenames: the found tables names.
The number of entries found, or if error -1 if the slow control configuration server was unreachable -2 if was unable to find the configuration table.
The chantypes, servernames, tablenames arguments are arrays of char pointers with at least nmax elements, and because the TABLEstring type is internally used the memory is automatically reallocated but initially chantypes[0], servernames[0], tablenames[0] must either point to some allocated space or be NULL.