|
1 /* |
|
2 * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. |
|
3 * |
|
4 * U.S. Government Rights - Commercial software. Government users are subject |
|
5 * to the Sun Microsystems, Inc. standard license agreement and applicable |
|
6 * provisions of the FAR and its supplements. |
|
7 * |
|
8 * |
|
9 * This distribution may include materials developed by third parties. Sun, |
|
10 * Sun Microsystems, the Sun logo and Solaris are trademarks or registered |
|
11 * trademarks of Sun Microsystems, Inc. in the U.S. and other countries. |
|
12 * |
|
13 */ |
|
14 #pragma ident "@(#)entLPMappingTable.h 1.1 03/02/24 SMI" |
|
15 /* |
|
16 * Note: this file originally auto-generated by mib2c using |
|
17 * : mib2c.iterate.conf,v 5.4 2002/09/11 22:42:04 hardaker Exp $ |
|
18 */ |
|
19 #ifndef ENTLPMAPPINGTABLE_H |
|
20 #define ENTLPMAPPINGTABLE_H |
|
21 |
|
22 /* |
|
23 * function declarations |
|
24 */ |
|
25 void init_entLPMappingTable(void); |
|
26 void initialize_table_entLPMappingTable(void); |
|
27 Netsnmp_Node_Handler entLPMappingTable_handler; |
|
28 |
|
29 Netsnmp_First_Data_Point entLPMappingTable_get_first_data_point; |
|
30 Netsnmp_Next_Data_Point entLPMappingTable_get_next_data_point; |
|
31 |
|
32 /* |
|
33 * column number definitions for table entLPMappingTable |
|
34 */ |
|
35 #define COLUMN_ENTLPPHYSICALINDEX 1 |
|
36 |
|
37 typedef struct entLPMappingTableEntry_s { |
|
38 int_l entLogicalIndex; |
|
39 int_l *physicalIndexes; /* array of Physical Table indexes */ |
|
40 struct entLPMappingTableEntry_s *pNextLPMappingTableEntry; |
|
41 } entLPMappingTableEntry_t; |
|
42 |
|
43 extern int addLPMappingTableEntry(int xentLogicalIndex, int xentPhysicalIndex); |
|
44 |
|
45 /* |
|
46 This function deletes the table entries for a given logical index |
|
47 and physical index. |
|
48 |
|
49 Returns 1 for success and -1 for failure. |
|
50 */ |
|
51 |
|
52 extern int deleteLPMappingTableEntry(int xLogicalIndex, int xPhysicalIndex); |
|
53 extern int deleteLPMappingLogicalIndex(int xentLogicalIndex); |
|
54 extern int deleteLPMappingPhysicalIndex(int xentPhysicalIndex); |
|
55 |
|
56 |
|
57 #endif /* ENTLPMAPPINGTABLE_H */ |