THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
typedef enum { TS_STAT_TYPE_INT = 1, // The following are currently not supported. TS_STAT_TYPE_FLOAT, TS_STAT_TYPE_STRING, TS_STAT_TYPE_COUNTER, } TSStatDataType; typedef enum { TS_STAT_PERSISTENT = 1, TS_STAT_NON_PERSISTENT } TSStatPersistence; typedef enum { TS_STAT_SYNC_SUM = 0, TS_STAT_SYNC_COUNT, TS_STAT_SYNC_AVG, TS_STAT_SYNC_TIMEAVG, } TSStatSync; inkapi int TSStatCreate(const char *the_name, TSStatDataType the_type, TSStatPersistence persist, TSStatSync sync); inkapi INKReturnCode TSStatIntIncrement(int the_stat, INK64 amount); inkapi INKReturnCode TSStatIntDecrement(int the_stat, INK64 amount); // Currently not supported. // inkapi INKReturnCode TSStatFloatIncrement(int the_stat, float amount); // inkapi INKReturnCode TSStatFloatDecrement(int the_stat, float amount); inkapi INKReturnCode TSStatIntGet(int the_stat, INK64* value); inkapi INKReturnCode TSStatIntSet(int the_stat, INK64 value); // Currently not supported // inkapi INKReturnCode TSStatFloatGet(int the_stat, float* value); // inkapi INKReturnCode TSStatFloatSet(int the_stat, float value); inkapi int TSStatFindName(const char* name); |
...