/*
 * Note: this file originally auto-generated by mib2c using
 *        : mib2c.iterate.conf,v 5.6 2003/02/20 00:52:07 hardaker Exp $
 */

/***********************************************************************
 *   This file is auto-generated and SHOULD NOT BE EDITED by hand.
 *   Modify the qos_checkfns_local.[ch] files insead.
 *   (so that you can regenerate this one as mib2c improvements are made)
 ***********************************************************************/
#ifndef QOS_CHECKFNS_H
#define QOS_CHECKFNS_H


#define UPDATE_INTERVAL 10
/** make sure we load the functions that you can modify */
config_require(qos_checkfns_local)

    /*
     * these functions are designed to check incoming values for 
     * columns in the qosObjectTable table for legality with respect to 
     * datatype and value.
     */
typedef struct qos_data qos_data;
struct qos_data {
    long	device_type;
    long	device_index;
    u_long	majorhandle;
    u_long	minorhandle;
    u_long	parent;
    char	text_parent[20];
    char	text_handle[20];
    char	text_leaf[20];
    char	dev_name[10];
    char	type[10];
    unsigned long long	qosBytes;
    u_long	qosPackets;
    u_long	qosDropped;
    u_long	qosOverlimit;
    u_long	qosBps;
    u_long	qosPps;
    u_long	qosQlen;
    u_long	qosBacklog;
    
    u_long	redEarly;
    u_long	redPdrop;
    u_long	redOther;
    u_long	redMarked;
    
    u_long	htbLends;
    u_long	htbBorrows;
    u_long	htbGiants;
    u_long	htbTokens;
    u_long	htbCTokens;
    u_long	htbRate;
    u_long	htbCeil;
    u_long	htbPrio;
    
    u_long	cbqBorrows;
    u_long	cbqOveractions;
    long	cbqAvgidle;
    long	cbqUndertime;
    char	info[256];
};

typedef struct qos_table qos_table;
struct qos_table {
    qos_data	data;
    qos_table	*next;
};

void initialize_qos_table(qos_table *table);
void update_qos_table_data(qos_table *table);     

void delete_old_qos_table_data(qos_table *table);
qos_table* create_new_qos_table_entry();
qos_table* get_last_entry_in_list(qos_table *table);
#endif                          /* QOS_CHECKFNS_H */
