1DPM_GETPROTOCOLS(3)          DPM Library Functions         DPM_GETPROTOCOLS(3)
2
3
4

NAME

6       dpm_getprotocols - get the list of supported protocols
7

SYNOPSIS

9       #include <sys/types.h>
10       #include "dpm_api.h"
11
12       int   dpm_getprotocols   (int   *nb_supported_protocols,  char  ***sup‐
13       ported_protocols)
14

DESCRIPTION

16       dpm_getprotocols gets the list of supported protocols.
17
18       nb_supported_protocols
19              will be set to the number of protocols in the array of supported
20              protocols.
21
22       supported_protocols
23              will  be  set to the address of an array of pointers to the sup‐
24              ported protocols.  This array of pointers is  allocated  by  the
25              API  and  the  client application is responsible for freeing the
26              array when not needed anymore.
27

RETURN VALUE

29       This routine returns 0 if the operation was successful  or  -1  if  the
30       operation failed. In the latter case, serrno is set appropriately.
31

ERRORS

33       EFAULT       nb_supported_protocols  or  supported_protocols  is a NULL
34                    pointer.
35
36       ENOMEM       Memory could not be allocated for  storing  the  array  of
37                    supported protocols.
38
39       SENOSHOST    Host unknown.
40
41       SECOMERR     Communication error.
42
43
44
45LCG                      $Date: 2004/12/15 06:53:28 $      DPM_GETPROTOCOLS(3)
Impressum