
/* lmtpstats.h -- statistics push interface

 * generated automatically from /home/ellie/fastmail/cyrus-imapd/imap/lmtpstats.snmp by snmpgen

 *

 * Copyright 2000 Carnegie Mellon University

 *

 * No warranty, yadda yadda

 */



#ifndef lmtpstats_H

#define lmtpstats_H



#define SNMPDEFINE_mgmt "1.3.6.1.2"
#define SNMPDEFINE_cmulmtp "1.3.6.1.4.1.3.2.2.3.2"
#define SNMPDEFINE_cmutree "1.3.6.1.4.1.3.2.2.3"
#define SNMPDEFINE_cmusieve "1.3.6.1.4.1.3.2.2.3.3"
#define SNMPDEFINE_mib2 "1.3.6.1.2.1"
#define SNMPDEFINE_mtamib "1.3.6.1.2.1.28"



#ifndef USING_SNMPGEN



#define snmp_connect()

#define snmp_close()

#define snmp_increment(a, b)

#define snmp_increment_args(a, b, c, d, e)

#define snmp_set(a, b)

#define snmp_set_str(a, b)

#define snmp_set_oid(a, b)

#define snmp_set_time(a, b)

#define snmp_getdescription(a)

#define snmp_getoid(a, b, c, d)

#define snmp_setvariable(a, b)



typedef void lmtpstats_t;



#else



typedef enum {

    SIEVE_NOTIFY,
    SIEVE_VACATION_REPLIED,
    mtaReceivedMessages,
    AUTHENTICATION_YES,
    TOTAL_CONNECTIONS,
    SIEVE_REJECT,
    SERVER_UPTIME,
    mtaReceivedVolume,
    SIEVE_DISCARD,
    SIEVE_FILEINTO,
    SIEVE_VACATION_TOTAL,
    SERVER_NAME_VERSION,
    SIEVE_KEEP,
    ACTIVE_CONNECTIONS,
    SIEVE_REDIRECT,
    SIEVE_MESSAGES_PROCESSED,
    AUTHENTICATION_NO,
    mtaSuccessfulConvertedMessages,
    mtaTransmittedMessages,
    mtaTransmittedVolume,
    mtaReceivedRecipients
} lmtpstats_t;



typedef enum {

    VARIABLE_LISTEND,
    VARIABLE_AUTH,
    VARIABLE_MTA


} lmtpstats_variable_t;



int snmp_connect(void);



int snmp_close(void);



/* only valid on counters */

int snmp_increment(lmtpstats_t cmd, int);

int snmp_increment_args(lmtpstats_t cmd, int incr, ...);



/* only valid on values */

int snmp_set(lmtpstats_t cmd, int);



int snmp_set_str(lmtpstats_t cmd, char *value);



int snmp_set_oid(lmtpstats_t cmd, char *str);



int snmp_set_time(lmtpstats_t cmd, time_t t);



const char *snmp_getdescription(lmtpstats_t cmd);



const char *snmp_getoid(const char *name, lmtpstats_t cmd, char* buf, int buflen);



void snmp_setvariable(lmtpstats_variable_t, int);



#endif /* USING_SNMPGEN */



#endif /* lmtpstats_H */



