Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Refactor of API interfaces
[src/app-framework-binder.git]
/
src
/
afb-msg-json.c
diff --git
a/src/afb-msg-json.c
b/src/afb-msg-json.c
index
59af9d9
..
b4ae51b
100644
(file)
--- a/
src/afb-msg-json.c
+++ b/
src/afb-msg-json.c
@@
-1,5
+1,5
@@
/*
/*
- * 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");
* Author: José Bollo <jose.bollo@iot.bzh>
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@
-107,4
+107,14
@@
struct afb_arg afb_msg_json_get_arg(struct json_object *object, const char *name
return arg;
}
return arg;
}
+struct json_object *afb_msg_json_internal_error()
+{
+ static struct json_object *obj;
+
+ if (obj == NULL)
+ obj = afb_msg_json_reply_error("failed", "internal error", NULL, NULL);
+
+ return obj;
+}
+