MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | #ifndef LPC_STRUCTINFO_H_ |
| 2 | #define LPC_STRUCTINFO_H_ |
| 3 | |
| 4 | #ifndef __DRIVER_SOURCE__ |
| 5 | #include "lpctypes.h" |
| 6 | #endif |
| 7 | |
| 8 | /* Definition of argument values for struct_info() and |
| 9 | * of the indices in the corresponding result arrays. |
| 10 | */ |
| 11 | |
| 12 | /* Possible types of information requested from struct_info() |
| 13 | */ |
| 14 | #define SINFO_FLAT 0 |
| 15 | #define SINFO_NESTED 1 |
| 16 | |
| 17 | |
| 18 | /* Indices in the result array |
| 19 | */ |
| 20 | |
| 21 | #define SI_NAME 0 |
| 22 | #define SI_PROG_NAME 1 |
| 23 | #define SI_PROG_ID 2 |
| 24 | #define SI_BASE 3 |
| 25 | #define SI_MEMBER 4 |
| 26 | |
| 27 | #define SI_MAX 5 /* Min Number of SI_ result elements */ |
| 28 | |
| 29 | /* Indices in the SI_MEMBER arrays |
| 30 | */ |
| 31 | |
| 32 | #define SIM_NAME 0 |
| 33 | #define SIM_TYPE 1 |
| 34 | #define SIM_EXTRA 2 |
| 35 | |
| 36 | #define SIM_MAX 3 /* Number of SIM_ elements */ |
| 37 | |
| 38 | #endif /* LPC_STRUCTINFO_H_ */ |