2 * Definitions for OBJECT IDENTIFIER name resolution
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 /* The buffers returned by these functions are all allocated with a
25 * packet lifetime or are static buffers and does not have have to be freed.
26 * However, take into account that when the packet dissection
27 * completes, these buffers will be automatically reclaimed/freed.
28 * If you need the buffer to remain for a longer scope than packet lifetime
29 * you must copy the content to an se_alloc() buffer.
32 #ifndef __OID_RESOLV_H__
33 #define __OID_RESOLV_H__
35 /* init and clenup funcions called from epan.h */
36 extern void oid_resolv_init(void);
37 extern void oid_resolv_cleanup(void);
39 extern gboolean oid_resolv_enabled(void);
41 /* get_oid_name returns OID name from oid_table or MIBs database */
42 extern const gchar *get_oid_name(const guint8 *oid, gint oid_len);
43 extern const gchar *get_oid_str_name(const gchar *oid_str);
45 /* add OID name into oid_table */
46 extern void add_oid_name(const guint8 *oid, gint oid_len, const gchar *name);
47 extern void add_oid_str_name(const gchar *oid_str, const gchar *name);
50 #endif /* __OID_RESOLV_H__ */