dpm_getprotocols man page

DPM_GETPROTOCOLS(3)          DPM Library Functions         DPM_GETPROTOCOLS(3)

[1mNAME[0m
      dpm_getprotocols - get the list of supported protocols

[1mSYNOPSIS[0m
      [1m#include <sys/types.h>[0m
      [1m#include "dpm_api.h"[0m

      [1mint   dpm_getprotocols   (int   *[4m[22mnb_supported_protocols[24m[1m,  char  ***[4m[22msup-[0m
      [4mported_protocols[24m[1m)[0m

[1mDESCRIPTION[0m
      [1mdpm_getprotocols [22mgets the list of supported protocols.

      [4mnb_supported_protocols[0m
             will be set to the number of protocols in the array of supported
             protocols.

      [4msupported_protocols[0m
             will  be  set to the address of an array of pointers to the sup-
             ported protocols.  This array of pointers is  allocated  by  the
             API  and  the  client application is responsible for freeing the
             array when not needed anymore.

[1mRETURN VALUE[0m
      This routine returns 0 if the operation was successful  or  -1  if  the
      operation failed. In the latter case, [1mserrno [22mis set appropriately.

[1mERRORS[0m
      [1mEFAULT       [4m[22mnb_supported_protocols[24m  or  [4msupported_protocols[24m  is a NULL
                   pointer.

      [1mENOMEM       [22mMemory could not be allocated for  storing  the  array  of
                   supported protocols.

      [1mSENOSHOST    [22mHost unknown.

      [1mSECOMERR     [22mCommunication error.

LCG                      $Date: 2004/12/15 06:53:28 $      DPM_GETPROTOCOLS(3)