/***********************************************************************
Copyright ?2007 LGC Wireless, Inc. All rights reserved
File Name: 		snmp_mib.h
Description:	header file of snmp mib parser
Version:		v9.0.0
Author:			Roy Jiang
Create Date:	2007-6-9

History:
2007-6-9	v9.0.0	Create
***********************************************************************/
#ifndef _WXC2_SNMP_MIB_API_H_
#define _WXC2_SNMP_MIB_API_H_

#include "snmp_mib.h"

/*
*Purpose: Init mib parser, read all mib files listed in ./mib/index, 
*		you should config which mib file you want to parse in the file./mib/index
*Input:	None
*Output: None
*/
extern int init_mib();

/*
*Purpose: get the LGC root node of mib tree
*Input:	None
*Output: LGC root tree node
*/
extern struct tree *getLGCroot();

/*
*Purpose: Close mib parser and release all resources used in parsing mib files
*Input:	None
*Output: None
*/
extern void close_mib();

/*
*Purpose: Get tree node from oid
*Input:	const int oid: oid of the tree node to get
		int oidlen: the length of the oid
		struct tree *subtree: tree node from which the search start
*Output: tree node
*/
extern struct tree *get_tree(const int *oid, int oidlen, struct tree *subtree);

#endif

