net-snmp 5.7
container_binary_array.h
00001 /*
00002  * binary_array.h
00003  * $Id$
00004  */
00005 
00006 #ifndef BINARY_ARRAY_H
00007 #define BINARY_ARRAY_H
00008 
00009 #ifdef __cplusplus
00010 extern          "C" {
00011 #endif
00012 
00013 #include <net-snmp/library/asn1.h>
00014 #include <net-snmp/library/container.h>
00015 #include <net-snmp/library/factory.h>
00016 
00017     /*
00018      * initialize binary array container. call at startup.
00019      */
00020     void netsnmp_container_binary_array_init(void);
00021 
00022     /*
00023      * get an container which uses an binary_array for storage
00024      */
00025     netsnmp_container *   netsnmp_container_get_binary_array(void);
00026 
00027     /*
00028      * get a factory for producing binary_array objects
00029      */
00030     netsnmp_factory *     netsnmp_container_get_binary_array_factory(void);
00031 
00032 
00033     int netsnmp_binary_array_remove(netsnmp_container *c, const void *key,
00034                                     void **save);
00035 
00036     void netsnmp_binary_array_release(netsnmp_container *c);
00037 
00038     void netsnmp_container_binary_array_init(void);
00039 
00040     int netsnmp_binary_array_options_set(netsnmp_container *c, int set, u_int flags);
00041 
00042 
00043 #ifdef __cplusplus
00044 }
00045 #endif
00046 #endif