|
1 /* |
|
2 * Copyright (c) 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 /* |
|
15 * Note: this file originally auto-generated by mib2c using |
|
16 * : mib2c.iterate.conf,v 1.1.1.1 2003/03/26 18:12:29 pcarroll Exp $ |
|
17 */ |
|
18 #ifndef DEMO_MODULE_5_H |
|
19 #define DEMO_MODULE_5_H |
|
20 |
|
21 |
|
22 /* function declarations */ |
|
23 void init_demo_module_5(void); |
|
24 void initialize_table_me5FileTable(void); |
|
25 Netsnmp_Node_Handler me5FileTable_handler; |
|
26 |
|
27 Netsnmp_First_Data_Point me5FileTable_get_first_data_point; |
|
28 Netsnmp_Next_Data_Point me5FileTable_get_next_data_point; |
|
29 |
|
30 int AddItem (char* fileName); |
|
31 int ChangeItem (int fileIndex, char* fileName); |
|
32 char* GetFileName( int fIndex); |
|
33 void demo5_load_tokens(const char *token, char *cptr); |
|
34 int demo5_persist_data(int a, int b, void *c, void *d); |
|
35 int demo5_post_read_config(int a, int b, void *c, void *d); |
|
36 |
|
37 /* column number definitions for table me5FileTable */ |
|
38 #define COLUMN_ME5FILEINDEX 1 |
|
39 #define COLUMN_ME5FILENAME 2 |
|
40 #define COLUMN_ME5FILESIZE 3 |
|
41 #define COLUMN_ME5FILEPERM 4 |
|
42 |
|
43 typedef struct fileTable{ |
|
44 unsigned long findex; |
|
45 char fileName[MAXNAMELEN]; |
|
46 unsigned long fileSize; |
|
47 char filePerm[MAXNAMELEN]; |
|
48 struct fileTable* next; |
|
49 } fileEntry; |
|
50 |
|
51 #define ADDFILE 1 |
|
52 #define RMFILE 2 |
|
53 #define GETFILE 3 |
|
54 #define ME5FILE_SET_FILENAME "me5FileName" |
|
55 |
|
56 #define DEMO5_CONF_FILE "demo_module_5" |
|
57 |
|
58 #endif /* DEMO_MODULE_5_H */ |