net-snmp 5.7
mfd.h
00001 /*
00002  * MIBs For Dummies header
00003  *
00004  * $Id$
00005  */
00006 #ifndef NETSNMP_MFD_H
00007 #define NETSNMP_MFD_H
00008 
00009 /***********************************************************************
00010  *
00011  * return codes
00012  *
00013  **********************************************************************/
00014 
00015 /*----------------------------------------------------------------------
00016  * general success/failure
00017  */
00018 #define MFD_SUCCESS              SNMP_ERR_NOERROR
00019 #define MFD_ERROR                SNMP_ERR_GENERR
00020 
00021 /*
00022  * object not currently available
00023  */
00024 #define MFD_SKIP                 SNMP_NOSUCHINSTANCE
00025 
00026 /*
00027  * no more data in table (get-next)
00028  */
00029 #define MFD_END_OF_DATA          SNMP_ENDOFMIBVIEW
00030 
00031 /*----------------------------------------------------------------------
00032  * set processing errors
00033  */
00034 /*
00035  * row creation errors
00036  */
00037 #define MFD_CANNOT_CREATE_NOW    SNMP_ERR_INCONSISTENTNAME
00038 #define MFD_CANNOT_CREATE_EVER   SNMP_ERR_NOCREATION
00039 
00040 /*
00041  * not writable or resource unavailable
00042  */
00043 #define MFD_NOT_WRITABLE         SNMP_ERR_NOTWRITABLE
00044 #define MFD_RESOURCE_UNAVAILABLE SNMP_ERR_RESOURCEUNAVAILABLE
00045 
00046 /*
00047  * new value errors
00048  */
00049 #define MFD_NOT_VALID_NOW        SNMP_ERR_INCONSISTENTVALUE
00050 #define MFD_NOT_VALID_EVER       SNMP_ERR_WRONGVALUE
00051 
00052 
00053 /***********************************************************************
00054  *
00055  * rowreq flags
00056  *
00057  **********************************************************************/
00058 
00059 /*----------------------------------------------------------------------
00060  * 8 flags resevered for the user
00061  */
00062 #define MFD_ROW_FLAG_USER_1            0x00000001 /* user flag 1 */
00063 #define MFD_ROW_FLAG_USER_2            0x00000002 /* user flag 2 */
00064 #define MFD_ROW_FLAG_USER_3            0x00000004 /* user flag 3 */
00065 #define MFD_ROW_FLAG_USER_4            0x00000008 /* user flag 4 */
00066 #define MFD_ROW_FLAG_USER_5            0x00000010 /* user flag 5 */
00067 #define MFD_ROW_FLAG_USER_6            0x00000020 /* user flag 6 */
00068 #define MFD_ROW_FLAG_USER_7            0x00000040 /* user flag 7 */
00069 #define MFD_ROW_FLAG_USER_8            0x00000080 /* user flag 8 */
00070 #define MFD_ROW_FLAG_USER_MASK         0x000000ff /* user flag mask */
00071 
00072 /*----------------------------------------------------------------------
00073  * MFD flags
00074  *
00075  * grow left to right, in case we want to add more user flags later
00076  */
00077 #define MFD_ROW_MASK                   0xffffff00 /* mask to clear user flags */
00078 #define MFD_ROW_CREATED                0x80000000 /* newly created row */
00079 #define MFD_ROW_DATA_FROM_USER         0x40000000 /* we didn't allocate data */
00080 #define MFD_ROW_DELETED                0x20000000 /* deleted row */
00081 #define MFD_ROW_DIRTY                  0x10000000 /* changed row */
00082 
00083 
00084 #endif                          /* NETSNMP_MFD_H */