The Database client slow control interface


                                                                                              

SlcTableGetChan

  int SlcTableGetChan(nmax, chantypes, servernames, tablenames) 
  
  int        nmax;
  char     **chantypes; 
  char     **servernames;
  char     **tablenames;
 

Description

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.

Return Value

         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.

Note

         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.



return button to first pagegoes to previous pagenext page button