/*
- * Copyright (C) 2016 "IoT.bzh"
+ * Copyright (C) 2016, 2017 "IoT.bzh"
* Author José Bollo <jose.bollo@iot.bzh>
*
* Licensed under the Apache License, Version 2.0 (the "License");
#include <systemd/sd-bus.h>
#include <systemd/sd-bus-protocol.h>
+#define AFB_BINDING_VERSION 1
#include <afb/afb-binding.h>
/*
/*
* Get the string of 'key' from 'obj'
* Returns NULL if 'key' isn't in 'obj'
- */
+ */
static const char *strval(struct json_object *obj, const char *key)
{
struct json_object *keyval;
}
if (rc < 0)
break;
- return 1 + len;
+ return 1 + len;
case SD_BUS_TYPE_DICT_ENTRY_BEGIN:
if (!allows_not_basic || !allows_dict)