OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
gbucket.h
1/******
2gbucket.h
3GameSpy Stats/Tracking SDK
4
5Copyright 1999-2007 GameSpy Industries, Inc
6
7devsupport@gamespy.com
8
9******
10
11Please see the GameSpy Stats and Tracking SDK for more info
12You should not need to use the functions in this file, they
13are used to manage the buckets by the gstats SDK.
14Use the type-safe bucket functions in the gstats SDK instead.
15******/
16
17
18#ifndef _GBUCKET_H_
19#define _GBUCKET_H_
20
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26typedef struct bucketset_s *bucketset_t;
27typedef enum {bt_int, bt_float, bt_string} BucketType;
28
29bucketset_t NewBucketSet(void);
30void FreeBucketSet(bucketset_t set);
31char *DumpBucketSet(bucketset_t set);
32
33void *BucketNew(bucketset_t set, char *name, BucketType type, void *initialvalue);
34void *BucketSet(bucketset_t set, char *name,void *value);
35void *BucketAdd(bucketset_t set, char *name, void *value);
36void *BucketSub(bucketset_t set, char *name, void *value);
37void *BucketMult(bucketset_t set, char *name, void *value);
38void *BucketDiv(bucketset_t set, char *name, void *value);
39void *BucketConcat(bucketset_t set, char *name, void *value);
40void *BucketAvg(bucketset_t set, char *name, void *value);
41void *BucketGet(bucketset_t set, char *name);
42
43/* Helper functions */
44void *bint(int i);
45void *bfloat(double f);
46#define bstring(a) ((void *)a)
47
48#ifdef __cplusplus
49}
50#endif
51
52#endif
Definition gbucket.c:27