1 /*****************************************************************************\
3 pml.h - get/set pml api for hpmud
5 (c) 2004-2007 Copyright Hewlett-Packard Development Company, LP
7 Permission is hereby granted, free of charge, to any person obtaining a copy
8 of this software and associated documentation files (the "Software"), to deal
9 in the Software without restriction, including without limitation the rights
10 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
11 of the Software, and to permit persons to whom the Software is furnished to do
12 so, subject to the following conditions:
14 The above copyright notice and this permission notice shall be included in all
15 copies or substantial portions of the Software.
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
19 FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
20 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
21 IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 (c) 2003-2004 Copyright Hewlett-Packard Development Company, LP
25 \*****************************************************************************/
37 PML_GET_NEXT_REQUEST = 0x1,
38 PML_BLOCK_REQUEST = 0x3,
39 PML_SET_REQUEST = 0x4,
40 PML_ENABLE_TRAP_REQUEST = 0x5,
41 PML_DISABLE_TRAP_REQUEST = 0x6,
42 PML_TRAP_REQUEST = 0x7
48 PML_EV_OK_END_OF_SUPPORTED_OBJECTS = 0x1,
49 PML_EV_OK_NEAREST_LEGAL_VALUE_SUBSTITUTED = 0x2,
50 PML_EV_ERROR_UNKNOWN_REQUEST = 0x80,
51 PML_EV_ERROR_BUFFER_OVERFLOW = 0x81,
52 PML_EV_ERROR_COMMAND_EXECUTION_ERROR = 0x82,
53 PML_EV_ERROR_UNKNOWN_OBJECT_IDENTIFIER = 0x83,
54 PML_EV_ERROR_OBJECT_DOES_NOT_SUPPORT_REQUESTED_ACTION = 0x84,
55 PML_EV_ERROR_INVALID_OR_UNSUPPORTED_VALUE = 0x85,
56 PML_EV_ERROR_PAST_END_OF_SUPPORTED_OBJECTS = 0x86,
57 PML_EV_ERROR_ACTION_CAN_NOT_BE_PERFORMED_NOW = 0x87
62 PML_DT_OBJECT_IDENTIFIER = 0,
63 PML_DT_ENUMERATION = 0x04,
64 PML_DT_SIGNED_INTEGER = 0x08,
68 PML_DT_ERROR_CODE = 0x18,
69 PML_DT_NULL_VALUE = 0x1C,
70 PML_DT_COLLECTION = 0x20,
74 int __attribute__ ((visibility ("hidden"))) GetSnmp(const char *ip, int port, const char *szoid, void *buffer, unsigned int size, int *type, int *pml_result, int *result);