Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

273 lines
9.5 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. mibfuncs.h
  5. Abstract:
  6. Sample subagent instrumentation callbacks.
  7. Note:
  8. This file is an example of the output to be produced from the
  9. code generation utility.
  10. --*/
  11. #ifndef _MIBFUNCS_H_
  12. #define _MIBFUNCS_H_
  13. ///////////////////////////////////////////////////////////////////////////////
  14. // //
  15. // global group (1.3.6.1.4.1.311.1.12.1) //
  16. // //
  17. ///////////////////////////////////////////////////////////////////////////////
  18. UINT
  19. get_global(
  20. UINT actionId,
  21. AsnAny * objectArray,
  22. UINT * errorIndex
  23. );
  24. UINT
  25. set_global(
  26. UINT actionId,
  27. AsnAny * objectArray,
  28. UINT * errorIndex
  29. );
  30. typedef struct _buf_global {
  31. AsnAny globalLoggingLevel;
  32. AsnAny globalMaxRecQueueSize;
  33. AsnAny globalServerCount;
  34. } buf_global;
  35. typedef struct _sav_global {
  36. AsnAny globalLoggingLevel;
  37. AsnAny globalMaxRecQueueSize;
  38. } sav_global;
  39. #define gf_globalLoggingLevel get_global
  40. #define gf_globalMaxRecQueueSize get_global
  41. #define gf_globalServerCount get_global
  42. #define gb_globalLoggingLevel buf_global
  43. #define gb_globalMaxRecQueueSize buf_global
  44. #define gb_globalServerCount buf_global
  45. #define sf_globalLoggingLevel set_global
  46. #define sf_globalMaxRecQueueSize set_global
  47. #define sb_globalLoggingLevel sav_global
  48. #define sb_globalMaxRecQueueSize sav_global
  49. ///////////////////////////////////////////////////////////////////////////////
  50. // //
  51. // globalBOOTPServerEntry table (1.3.6.1.4.1.311.1.12.1.4.1) //
  52. // //
  53. ///////////////////////////////////////////////////////////////////////////////
  54. UINT
  55. get_globalBOOTPServerEntry(
  56. UINT actionId,
  57. AsnAny * objectArray,
  58. UINT * errorIndex
  59. );
  60. UINT
  61. set_globalBOOTPServerEntry(
  62. UINT actionId,
  63. AsnAny * objectArray,
  64. UINT * errorIndex
  65. );
  66. typedef struct _buf_globalBOOTPServerEntry {
  67. AsnAny globalBOOTPServerAddr;
  68. AsnAny globalBOOTPServerTag;
  69. DWORD dwServerAddr;
  70. } buf_globalBOOTPServerEntry;
  71. typedef struct _sav_globalBOOTPServerEntry {
  72. AsnAny globalBOOTPServerAddr;
  73. AsnAny globalBOOTPServerTag;
  74. } sav_globalBOOTPServerEntry;
  75. #define gf_globalBOOTPServerAddr get_globalBOOTPServerEntry
  76. #define gf_globalBOOTPServerTag get_globalBOOTPServerEntry
  77. #define gb_globalBOOTPServerAddr buf_globalBOOTPServerEntry
  78. #define gb_globalBOOTPServerTag buf_globalBOOTPServerEntry
  79. #define sf_globalBOOTPServerAddr set_globalBOOTPServerEntry
  80. #define sf_globalBOOTPServerTag set_globalBOOTPServerEntry
  81. #define sb_globalBOOTPServerAddr sav_globalBOOTPServerEntry
  82. #define sb_globalBOOTPServerTag sav_globalBOOTPServerEntry
  83. ///////////////////////////////////////////////////////////////////////////////
  84. // //
  85. // interface group (1.3.6.1.4.1.311.1.12.2) //
  86. // //
  87. ///////////////////////////////////////////////////////////////////////////////
  88. ///////////////////////////////////////////////////////////////////////////////
  89. // //
  90. // ifStatsEntry table (1.3.6.1.4.1.311.1.12.2.1.1) //
  91. // //
  92. ///////////////////////////////////////////////////////////////////////////////
  93. UINT
  94. get_ifStatsEntry(
  95. UINT actionId,
  96. AsnAny * objectArray,
  97. UINT * errorIndex
  98. );
  99. typedef struct _buf_ifStatsEntry {
  100. AsnAny ifSEIndex;
  101. AsnAny ifSEState;
  102. AsnAny ifSESendFailures;
  103. AsnAny ifSEReceiveFailures;
  104. AsnAny ifSEArpUpdateFailures;
  105. AsnAny ifSERequestReceiveds;
  106. AsnAny ifSERequestDiscards;
  107. AsnAny ifSEReplyReceiveds;
  108. AsnAny ifSEReplyDiscards;
  109. } buf_ifStatsEntry;
  110. #define gf_ifSEIndex get_ifStatsEntry
  111. #define gf_ifSEState get_ifStatsEntry
  112. #define gf_ifSESendFailures get_ifStatsEntry
  113. #define gf_ifSEReceiveFailures get_ifStatsEntry
  114. #define gf_ifSEArpUpdateFailures get_ifStatsEntry
  115. #define gf_ifSERequestReceiveds get_ifStatsEntry
  116. #define gf_ifSERequestDiscards get_ifStatsEntry
  117. #define gf_ifSEReplyReceiveds get_ifStatsEntry
  118. #define gf_ifSEReplyDiscards get_ifStatsEntry
  119. #define gb_ifSEIndex buf_ifStatsEntry
  120. #define gb_ifSEState buf_ifStatsEntry
  121. #define gb_ifSESendFailures buf_ifStatsEntry
  122. #define gb_ifSEReceiveFailures buf_ifStatsEntry
  123. #define gb_ifSEArpUpdateFailures buf_ifStatsEntry
  124. #define gb_ifSERequestReceiveds buf_ifStatsEntry
  125. #define gb_ifSERequestDiscards buf_ifStatsEntry
  126. #define gb_ifSEReplyReceiveds buf_ifStatsEntry
  127. #define gb_ifSEReplyDiscards buf_ifStatsEntry
  128. ///////////////////////////////////////////////////////////////////////////////
  129. // //
  130. // ifConfigEntry table (1.3.6.1.4.1.311.1.12.2.2.1) //
  131. // //
  132. ///////////////////////////////////////////////////////////////////////////////
  133. UINT
  134. get_ifConfigEntry(
  135. UINT actionId,
  136. AsnAny * objectArray,
  137. UINT * errorIndex
  138. );
  139. UINT
  140. set_ifConfigEntry(
  141. UINT actionId,
  142. AsnAny * objectArray,
  143. UINT * errorIndex
  144. );
  145. typedef struct _buf_ifConfigEntry {
  146. AsnAny ifCEIndex;
  147. AsnAny ifCEState;
  148. AsnAny ifCERelayMode;
  149. AsnAny ifCEMaxHopCount;
  150. AsnAny ifCEMinSecondsSinceBoot;
  151. } buf_ifConfigEntry;
  152. typedef struct _sav_ifConfigEntry {
  153. AsnAny ifCEIndex;
  154. AsnAny ifCERelayMode;
  155. AsnAny ifCEMaxHopCount;
  156. AsnAny ifCEMinSecondsSinceBoot;
  157. } sav_ifConfigEntry;
  158. #define gf_ifCEIndex get_ifConfigEntry
  159. #define gf_ifCEState get_ifConfigEntry
  160. #define gf_ifCERelayMode get_ifConfigEntry
  161. #define gf_ifCEMaxHopCount get_ifConfigEntry
  162. #define gf_ifCEMinSecondsSinceBoot get_ifConfigEntry
  163. #define gb_ifCEIndex buf_ifConfigEntry
  164. #define gb_ifCEState buf_ifConfigEntry
  165. #define gb_ifCERelayMode buf_ifConfigEntry
  166. #define gb_ifCEMaxHopCount buf_ifConfigEntry
  167. #define gb_ifCEMinSecondsSinceBoot buf_ifConfigEntry
  168. #define sf_ifCERelayMode set_ifConfigEntry
  169. #define sf_ifCEMaxHopCount set_ifConfigEntry
  170. #define sf_ifCEMinSecondsSinceBoot set_ifConfigEntry
  171. #define sb_ifCERelayMode sav_ifConfigEntry
  172. #define sb_ifCEMaxHopCount sav_ifConfigEntry
  173. #define sb_ifCEMinSecondsSinceBoot sav_ifConfigEntry
  174. ///////////////////////////////////////////////////////////////////////////////
  175. // //
  176. // ifBindingEntry table (1.3.6.1.4.1.311.1.12.2.3.1) //
  177. // //
  178. ///////////////////////////////////////////////////////////////////////////////
  179. UINT
  180. get_ifBindingEntry(
  181. UINT actionId,
  182. AsnAny * objectArray,
  183. UINT * errorIndex
  184. );
  185. typedef struct _buf_ifBindingEntry {
  186. AsnAny ifBindingIndex;
  187. AsnAny ifBindingState;
  188. AsnAny ifBindingAddrCount;
  189. } buf_ifBindingEntry;
  190. #define gf_ifBindingIndex get_ifBindingEntry
  191. #define gf_ifBindingState get_ifBindingEntry
  192. #define gf_ifBindingAddrCount get_ifBindingEntry
  193. #define gb_ifBindingIndex buf_ifBindingEntry
  194. #define gb_ifBindingState buf_ifBindingEntry
  195. #define gb_ifBindingAddrCount buf_ifBindingEntry
  196. ///////////////////////////////////////////////////////////////////////////////
  197. // //
  198. // ifAddressEntry table (1.3.6.1.4.1.311.1.12.2.4.1) //
  199. // //
  200. ///////////////////////////////////////////////////////////////////////////////
  201. UINT
  202. get_ifAddressEntry(
  203. UINT actionId,
  204. AsnAny * objectArray,
  205. UINT * errorIndex
  206. );
  207. typedef struct _buf_ifAddressEntry {
  208. AsnAny ifAEIfIndex;
  209. AsnAny ifAEAddress;
  210. AsnAny ifAEMask;
  211. DWORD dwIfAEAddr;
  212. DWORD dwIfAEMask;
  213. } buf_ifAddressEntry;
  214. #define gf_ifAEIfIndex get_ifAddressEntry
  215. #define gf_ifAEAddress get_ifAddressEntry
  216. #define gf_ifAEMask get_ifAddressEntry
  217. #define gb_ifAEIfIndex buf_ifAddressEntry
  218. #define gb_ifAEAddress buf_ifAddressEntry
  219. #define gb_ifAEMask buf_ifAddressEntry
  220. #endif // _MIBFUNCS_H_