container_binary_array.h 997 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * binary_array.h
  3. * $Id$
  4. */
  5. #ifndef BINARY_ARRAY_H
  6. #define BINARY_ARRAY_H
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. #include <net-snmp/library/asn1.h>
  11. #include <net-snmp/library/container.h>
  12. /*
  13. * initialize binary array container. call at startup.
  14. */
  15. void netsnmp_container_binary_array_init(void);
  16. /*
  17. * get an container which uses an binary_array for storage
  18. */
  19. netsnmp_container * netsnmp_container_get_binary_array(void);
  20. /*
  21. * get a factory for producing binary_array objects
  22. */
  23. struct netsnmp_factory_s *netsnmp_container_get_binary_array_factory(void);
  24. int netsnmp_binary_array_remove(netsnmp_container *c, const void *key,
  25. void **save);
  26. void netsnmp_binary_array_release(netsnmp_container *c);
  27. void netsnmp_container_binary_array_init(void);
  28. int netsnmp_binary_array_options_set(netsnmp_container *c, int set, u_int flags);
  29. #ifdef __cplusplus
  30. }
  31. #endif
  32. #endif