set_helper.h 542 B

1234567891011121314151617181920212223242526
  1. #ifndef SET_HELPER_H
  2. #define SET_HELPER_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. typedef struct netsnmp_set_info_s {
  7. int action;
  8. void *stateRef;
  9. /*
  10. * don't use yet:
  11. */
  12. void **oldData;
  13. int setCleanupFlags; /* XXX: client sets this to: */
  14. #define AUTO_FREE_STATEREF 0x01 /* calls free(stateRef) */
  15. #define AUTO_FREE_OLDDATA 0x02 /* calls free(*oldData) */
  16. #define AUTO_UNDO 0x04 /* ... */
  17. } netsnmp_set_info;
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21. #endif