Set svn:keywords to Id to get RCS IDs expanded.
[obnox/wireshark/wip.git] / epan / oid_resolv.h
1 /* oid_resolv.h
2  * Definitions for OBJECT IDENTIFIER name resolution
3  *
4  * $Id$
5  *
6  * Ethereal - Network traffic analyzer
7  * By Gerald Combs <gerald@ethereal.com>
8  * Copyright 1998 Gerald Combs
9  *
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.
14  *
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.
19  *
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.
23  */
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.
30  */
31
32 #ifndef __OID_RESOLV_H__
33 #define __OID_RESOLV_H__
34
35 /* init and clenup funcions called from epan.h */
36 extern void oid_resolv_init(void);
37 extern void oid_resolv_cleanup(void);
38
39 extern gboolean oid_resolv_enabled(void);
40
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);
44
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);
48
49
50 #endif /* __OID_RESOLV_H__ */