/*****************************************************************************
* Copyright (c) 2001-2007 Digi International Inc., All Rights Reserved
* 
* This software contains proprietary and confidential information of Digi
* International Inc.  By accepting transfer of this copy, Recipient agrees
* to retain this software in confidence, to prevent disclosure to others,
* and to make no use of this software other than that for which it was
* delivered.  This is an unpublished copyrighted work of Digi International
* Inc.  Except as permitted by federal law, 17 USC 117, copying is strictly
* prohibited.
* 
* Restricted Rights Legend
*
* Use, duplication, or disclosure by the Government is subject to
* restrictions set forth in sub-paragraph (c)(1)(ii) of The Rights in
* Technical Data and Computer Software clause at DFARS 252.227-7031 or
* subparagraphs (c)(1) and (2) of the Commercial Computer Software -
* Restricted Rights at 48 CFR 52.227-19, as applicable.
*
* Digi International Inc. 11001 Bren Road East, Minnetonka, MN 55343
*
*****************************************************************************/

#include "trdefs.h"

#include "trasn1.h"
#include "trimpl.h"
#include "trmib.h"
#include "trconsts.h"

#include "trmib2.h"

#ifdef TM_SNMP_AGENT_V3
#include "trsnmpv3.h"
#include "trdeskey.h"
#endif /* TM_SNMP_AGENT_V3 */

#include "example_local.h"
#include "example_var.h"
#include "trapi.h"
#include "trintapi.h"
#include "nastatus.h"
#include "snmpapi.h"

/*  Pulled directly from the example.ins file generated by the MIB compiler */
const struct tsSnmpVariable tvSnmpExampleoneVars[] = {
    {tfvar_group, TM_SNMP_RWRITE, 0, 2, GREENLEDON, TM_SNMP_INTEGER, 0, {1,1}},
    {tfvar_group, TM_SNMP_RWRITE, 0, 2, YELLOWLEDON, TM_SNMP_INTEGER, 0, {1,2}},
    {tfvar_group, TM_SNMP_RWRITE, 0, 2, BIGBOSS, TM_SNMP_STRING, 0, {1,3}},
    {tfvar_simpletable, TM_SNMP_RONLY, 0, 4, INDEX, TM_SNMP_INTEGER, 0, {2,1,1,1}},
    {tfvar_simpletable, TM_SNMP_RCREATE, 0, 4, ROWSTATUS, TM_SNMP_INTEGER, 0, {2,1,1,2}},
    {tfvar_simpletable, TM_SNMP_RCREATE, 0, 4, NAME, TM_SNMP_STRING, 0, {2,1,1,3}}
};

const ttSnmpSubtree TM_CONST_QLF custSnmpSubtrees[] = 
{
    /*  Pulled directly from the example.ins file generated by the MIB compiler */
    {(struct tsSnmpVariable *)tvSnmpExampleoneVars,
     {1,3,6,1,4,1,901,999,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
     sizeof(tvSnmpExampleoneVars)/sizeof(*tvSnmpExampleoneVars),
     sizeof(*tvSnmpExampleoneVars), 9, 0, {'\0'}}
	,
    {NULL,
     {0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
      0,
      0, 0, 0, {'\0'}}
};

const ttConceptualTable  TM_CONST_QLF  custConceptualTables[] =
{
    {
        { 1, 3, 6, 1, 4, 1, 901, 999, 1, 2, 1, 1}, 
        2, 12,
        { 0}
        ,
        { 0}
    }
    ,    
   {
        { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
        0, 0,
        {0},
        {0}
    }
};    

NaStatus initializeCustomMibs(void)
{
   return naInitializeCustomMibs(custSnmpSubtrees, custConceptualTables);
}



