Browse code

statsd: clang-format

Victor Seva authored on 29/10/2021 12:23:55
Showing 1 changed files
... ...
@@ -2,10 +2,11 @@
2 2
 
3 3
 #define BUFFER_SIZE 8192
4 4
 
5
-typedef struct StatsConnection{
6
-    char *ip;
7
-    char *port;
8
-    int sock;
5
+typedef struct StatsConnection
6
+{
7
+	char *ip;
8
+	char *port;
9
+	int sock;
9 10
 } StatsConnection;
10 11
 
11 12
 bool statsd_connect(void);
Browse code

stastd: adding histogram (#2774)

Julien Chavanton authored on 10/06/2021 16:49:47 • GitHub committed on 10/06/2021 16:49:47
Showing 1 changed files
... ...
@@ -12,6 +12,7 @@ bool statsd_connect(void);
12 12
 bool send_command(char *command);
13 13
 bool statsd_set(char *key, char *value);
14 14
 bool statsd_gauge(char *key, char *value);
15
+bool statsd_histogram(char *key, char *value);
15 16
 bool statsd_count(char *key, char *value);
16 17
 bool statsd_timing(char *key, int value);
17 18
 bool statsd_init(char *ip, char *port);
Browse code

core, lib, modules: restructured source code tree

- new folder src/ to hold the source code for main project applications
- main.c is in src/
- all core files are subfolder are in src/core/
- modules are in src/modules/
- libs are in src/lib/
- application Makefiles are in src/
- application binary is built in src/ (src/kamailio)

Daniel-Constantin Mierla authored on 07/12/2016 11:03:51
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,18 @@
1
+#include <stdbool.h>
2
+
3
+#define BUFFER_SIZE 8192
4
+
5
+typedef struct StatsConnection{
6
+    char *ip;
7
+    char *port;
8
+    int sock;
9
+} StatsConnection;
10
+
11
+bool statsd_connect(void);
12
+bool send_command(char *command);
13
+bool statsd_set(char *key, char *value);
14
+bool statsd_gauge(char *key, char *value);
15
+bool statsd_count(char *key, char *value);
16
+bool statsd_timing(char *key, int value);
17
+bool statsd_init(char *ip, char *port);
18
+bool statsd_destroy(void);