diff options
author | Christian Grothoff <christian@grothoff.org> | 2007-07-10 09:01:06 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2007-07-10 09:01:06 +0000 |
commit | ce124c66c8aff19abaa695a16127a742050d01b4 (patch) | |
tree | ec813c1b394f5566655fa6ff52cfba45a14847d7 /src/plugins/stats/functions.h | |
parent | b2f6fe964b05c6995bcb50ebe29cf25f1c185f84 (diff) | |
download | gnunet-gtk-ce124c66c8aff19abaa695a16127a742050d01b4.tar.gz gnunet-gtk-ce124c66c8aff19abaa695a16127a742050d01b4.zip |
indent
Diffstat (limited to 'src/plugins/stats/functions.h')
-rw-r--r-- | src/plugins/stats/functions.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/plugins/stats/functions.h b/src/plugins/stats/functions.h index ebd54cf1..a02ac4fa 100644 --- a/src/plugins/stats/functions.h +++ b/src/plugins/stats/functions.h | |||
@@ -24,8 +24,9 @@ | |||
24 | 24 | ||
25 | #include <GNUnet/gnunet_util.h> | 25 | #include <GNUnet/gnunet_util.h> |
26 | 26 | ||
27 | typedef struct { | 27 | typedef struct |
28 | char * statName; | 28 | { |
29 | char *statName; | ||
29 | long long value; | 30 | long long value; |
30 | long long lvalue; | 31 | long long lvalue; |
31 | cron_t delta; | 32 | cron_t delta; |
@@ -35,24 +36,23 @@ typedef struct { | |||
35 | * Callback function to obtain the latest stats | 36 | * Callback function to obtain the latest stats |
36 | * data for this stat display. | 37 | * data for this stat display. |
37 | */ | 38 | */ |
38 | typedef int (*UpdateData)(const void * closure, | 39 | typedef int (*UpdateData) (const void *closure, gfloat ** data); |
39 | gfloat ** data); | ||
40 | 40 | ||
41 | 41 | ||
42 | typedef struct SE_ { | 42 | typedef struct SE_ |
43 | char * paneName; | 43 | { |
44 | char * frameName; | 44 | char *paneName; |
45 | char *frameName; | ||
45 | UpdateData getData; | 46 | UpdateData getData; |
46 | void * get_closure; | 47 | void *get_closure; |
47 | unsigned int count; | 48 | unsigned int count; |
48 | int fill; /* fill first "fill" entries */ | 49 | int fill; /* fill first "fill" entries */ |
49 | } StatEntry; | 50 | } StatEntry; |
50 | 51 | ||
51 | extern StatEntry stats[]; | 52 | extern StatEntry stats[]; |
52 | 53 | ||
53 | void init_functions(struct GE_Context * e, | 54 | void init_functions (struct GE_Context *e, struct GC_Configuration *c); |
54 | struct GC_Configuration * c); | ||
55 | 55 | ||
56 | void done_functions(void); | 56 | void done_functions (void); |
57 | 57 | ||
58 | #endif | 58 | #endif |