19#include "ws_symbol_export.h"
41typedef enum _oid_key_type_t {
49 OID_KEY_TYPE_IMPLIED_OID,
50 OID_KEY_TYPE_IMPLIED_STRING,
51 OID_KEY_TYPE_IMPLIED_BYTES,
53 OID_KEY_TYPE_DATE_AND_TIME
63 oid_key_type_t keytype;
67typedef enum _oid_kind_t {
74 OID_KIND_NOTIFICATION,
83 oid_key_type_t key_type;
104extern void oid_pref_init(
module_t *nameres);
127unsigned oid_subid2encoded(
wmem_allocator_t *scope,
unsigned len, uint32_t* subids, uint8_t** encoded_p);
129unsigned oid_string2encoded(
wmem_allocator_t *scope,
const char *oid_str, uint8_t** encoded_p);
133unsigned oid_encoded2subid(
wmem_allocator_t *scope,
const uint8_t *oid,
int len, uint32_t** subids_p);
135unsigned oid_encoded2subid_sub(
wmem_allocator_t *scope,
const uint8_t *oid_bytes,
int oid_len, uint32_t** subids_pi,
138unsigned oid_string2subid(
wmem_allocator_t *scope,
const char *oid_str, uint32_t** subids_p);
140WS_DLL_PUBLIC
char* oid_encoded2string(
wmem_allocator_t *scope,
const uint8_t* encoded,
unsigned len);
141WS_DLL_PUBLIC
char* rel_oid_encoded2string(
wmem_allocator_t *scope,
const uint8_t* encoded,
unsigned len);
142WS_DLL_PUBLIC
char* oid_subid2string(
wmem_allocator_t *scope, uint32_t *subids,
unsigned len);
143WS_DLL_PUBLIC
char* rel_oid_subid2string(
wmem_allocator_t *scope, uint32_t *subids,
unsigned len,
bool is_absolute);
146WS_DLL_PUBLIC
char *oid_resolved(
wmem_allocator_t *scope,
unsigned len, uint32_t *subids);
147WS_DLL_PUBLIC
char *oid_resolved_from_encoded(
wmem_allocator_t *scope,
const uint8_t *oid,
int len);
148WS_DLL_PUBLIC
char *rel_oid_resolved_from_encoded(
wmem_allocator_t *scope,
const uint8_t *oid,
int len);
149WS_DLL_PUBLIC
char *oid_resolved_from_string(
wmem_allocator_t *scope,
const char *oid_str);
152WS_DLL_PUBLIC
void oid_both(
wmem_allocator_t *scope,
unsigned oid_len, uint32_t *subids,
char** resolved_p,
char** numeric_p);
153WS_DLL_PUBLIC
void oid_both_from_encoded(
wmem_allocator_t *scope,
const uint8_t *oid,
int oid_len,
char** resolved_p,
char** numeric_p);
154WS_DLL_PUBLIC
void oid_both_from_string(
wmem_allocator_t *scope,
const char *oid_str,
char** resolved_p,
char** numeric_p);
161WS_DLL_PUBLIC
oid_info_t* oid_get(
unsigned oid_len, uint32_t *subids,
unsigned* matched_p,
unsigned* left_p);
162WS_DLL_PUBLIC
oid_info_t* oid_get_from_encoded(
wmem_allocator_t *scope,
const uint8_t *oid,
int oid_len, uint32_t **subids,
unsigned* matched,
unsigned* left);
163WS_DLL_PUBLIC
oid_info_t* oid_get_from_string(
wmem_allocator_t *scope,
const char *oid_str, uint32_t **subids,
unsigned* matched,
unsigned* left);
166WS_DLL_PUBLIC
void oid_add(
const char* name,
unsigned oid_len, uint32_t *subids);
167WS_DLL_PUBLIC
void oid_add_from_encoded(
const char* name,
const uint8_t *oid,
int oid_len);
168WS_DLL_PUBLIC
void oid_add_from_string(
const char* name,
const char *oid_str);
179#define subid_t uint32_t
184extern char* oid_test_a2b(uint32_t num_subids, uint32_t* subids);
187#define add_oid_debug_subtree(a,b) ((void)0)
WS_DLL_PUBLIC char * oid_get_default_mib_path(void)
Definition oids.c:1279
WS_DLL_PUBLIC void oids_init(void)
Definition oids.c:860
WS_DLL_PUBLIC void oids_cleanup(void)
Definition oids.c:869
Definition wmem_allocator.h:27
Definition wmem_tree-int.h:48
Definition prefs-int.h:27