1DPM_GETPROTOCOLS(3) DPM Library Functions
2DPM_GETPROTOCOLS(3)
3
4
5
6[1mNAME[0m
7 dpm_getprotocols ‐ get the list of supported protocols
8
9[1mSYNOPSIS[0m
10 [1m#include <sys/types.h>[0m
11 [1m#include "dpm_api.h"[0m
12
13 [1mint dpm_getprotocols (int *[4m[22mnb_support‐
14ed_protocols[24m[1m, char ***[4m[22msup‐[0m
15 [4mported_protocols[24m[1m)[0m
16
17[1mDESCRIPTION[0m
18 [1mdpm_getprotocols [22mgets the list of supported proto‐
19cols.
20
21 [4mnb_supported_protocols[0m
22 will be set to the number of protocols in the array
23of supported
24 protocols.
25
26 [4msupported_protocols[0m
27 will be set to the address of an array of point‐
28ers to the sup‐
29 ported protocols. This array of pointers is allo‐
30cated by the
31 API and the client application is responsible
32for freeing the
33 array when not needed anymore.
34
35[1mRETURN VALUE[0m
36 This routine returns 0 if the operation was successful or
37‐1 if the
38 operation failed. In the latter case, [1mserrno [22mis set
39appropriately.
40
41[1mERRORS[0m
42 [1mEFAULT [4m[22mnb_supported_protocols[24m or
43[4msupported_protocols[24m is a NULL
44 pointer.
45
46 [1mENOMEM [22mMemory could not be allocated for
47storing the array of
48 supported protocols.
49
50 [1mSENOSHOST [22mHost unknown.
51
52 [1mSECOMERR [22mCommunication error.
53
54
55
56LCG $Date: 2004/12/15 06:53:28 $
57DPM_GETPROTOCOLS(3)
58
59
60
61
62
63
64
65
66