net-snmp 5.7
int64.h
00001 #ifndef INT64_INCLUDED
00002 #define INT64_INCLUDED
00003 
00004 #ifdef __cplusplus
00005 extern          "C" {
00006 #endif
00007 
00008     typedef struct counter64 U64;
00009 
00010 #define I64CHARSZ 21
00011 
00012     void            divBy10(U64, U64 *, unsigned int *);
00013     void            multBy10(U64, U64 *);
00014     void            incrByU16(U64 *, unsigned int);
00015     void            incrByU32(U64 *, unsigned int);
00016     NETSNMP_IMPORT
00017     void            zeroU64(U64 *);
00018     int             isZeroU64(const U64 *);
00019     NETSNMP_IMPORT
00020     void            printU64(char *, const U64 *);
00021     NETSNMP_IMPORT
00022     void            printI64(char *, const U64 *);
00023     int             read64(U64 *, const char *);
00024     NETSNMP_IMPORT
00025     void            u64Subtract(const U64 * pu64one, const U64 * pu64two,
00026                                 U64 * pu64out);
00027     void            u64Incr(U64 * pu64out, const U64 * pu64one);
00028     void            u64UpdateCounter(U64 * pu64out, const U64 * pu64one,
00029                                      const U64 * pu64two);
00030     void            u64Copy(U64 * pu64one, const U64 * pu64two);
00031 
00032     int             netsnmp_c64_check_for_32bit_wrap(U64 *old_val, U64 *new_val,
00033                                                      int adjust);
00034     NETSNMP_IMPORT
00035     int             netsnmp_c64_check32_and_update(struct counter64 *prev_val,
00036                                                    struct counter64 *new_val,
00037                                                    struct counter64 *old_prev_val,
00038                                                    int *need_wrap_check);
00039 
00040 #ifdef __cplusplus
00041 }
00042 #endif
00043 #endif