aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/stats/functions.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2007-07-10 09:01:06 +0000
committerChristian Grothoff <christian@grothoff.org>2007-07-10 09:01:06 +0000
commitce124c66c8aff19abaa695a16127a742050d01b4 (patch)
treeec813c1b394f5566655fa6ff52cfba45a14847d7 /src/plugins/stats/functions.h
parentb2f6fe964b05c6995bcb50ebe29cf25f1c185f84 (diff)
downloadgnunet-gtk-ce124c66c8aff19abaa695a16127a742050d01b4.tar.gz
gnunet-gtk-ce124c66c8aff19abaa695a16127a742050d01b4.zip
indent
Diffstat (limited to 'src/plugins/stats/functions.h')
-rw-r--r--src/plugins/stats/functions.h24
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
27typedef struct { 27typedef 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 */
38typedef int (*UpdateData)(const void * closure, 39typedef int (*UpdateData) (const void *closure, gfloat ** data);
39 gfloat ** data);
40 40
41 41
42typedef struct SE_ { 42typedef 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
51extern StatEntry stats[]; 52extern StatEntry stats[];
52 53
53void init_functions(struct GE_Context * e, 54void init_functions (struct GE_Context *e, struct GC_Configuration *c);
54 struct GC_Configuration * c);
55 55
56void done_functions(void); 56void done_functions (void);
57 57
58#endif 58#endif