aboutsummaryrefslogtreecommitdiffstats
path: root/stat.h
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2017-09-07 22:37:43 +0100
committerFreeArtMan <dos21h@gmail.com>2017-09-07 22:37:43 +0100
commit08f96759f9b1d5e8b1dd300971d23f833b819e7c (patch)
treeaa3a4010910b7a0b70e6f551a82911708c001547 /stat.h
parentd8d0925669d1e015f7290caf1a34ad756895b151 (diff)
downloadagni-08f96759f9b1d5e8b1dd300971d23f833b819e7c.tar.gz
agni-08f96759f9b1d5e8b1dd300971d23f833b819e7c.zip
Added stat command
Diffstat (limited to 'stat.h')
-rw-r--r--stat.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/stat.h b/stat.h
new file mode 100644
index 0000000..50826ec
--- /dev/null
+++ b/stat.h
@@ -0,0 +1,28 @@
+#ifndef __AGNI_STAT_H
+#define __AGNI_STAT_H
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+typedef struct stat_server
+{
+ int cnt_ping;
+ int cnt_serv_tx;
+ int cnt_serv_rx;
+ int cnt_ipc_tx;
+ int cnt_ipc_rx;
+} stat_server;
+
+typedef struct stat_event
+{
+ int cnt_cmd_succ;
+ int cnt_cmd_err;
+ int cnt_ipc_tx;
+ int cnt_ipc_rx;
+} stat_event;
+
+char* stat_server2str(stat_server *st);
+char* stat_event2str(stat_event *st);
+
+#endif \ No newline at end of file