Add stats serializer.

This commit is contained in:
Ian Gulliver
2016-02-17 08:30:32 +00:00
parent 0db4d15897
commit a0d94a4198
9 changed files with 73 additions and 8 deletions

View File

@@ -7,6 +7,7 @@
#include <fcntl.h>
#include "json.h"
#include "stats.h"
#include "client.h"
struct client {
@@ -24,8 +25,11 @@ struct serializer {
{
.name = "json",
.serialize = json_serialize,
.client_head = NULL,
},
{
.name = "stats",
.serialize = stats_serialize,
}
};
#define NUM_SERIALIZERS (sizeof(serializers) / sizeof(*serializers))