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
session: removes file handling
[src/app-framework-binder.git]
/
plugins
/
samples
/
HelloWorld.c
diff --git
a/plugins/samples/HelloWorld.c
b/plugins/samples/HelloWorld.c
index
5638b42
..
05bec95
100644
(file)
--- a/
plugins/samples/HelloWorld.c
+++ b/
plugins/samples/HelloWorld.c
@@
-20,7
+20,7
@@
#include "local-def.h"
STATIC json_object* pingSample (AFB_request *request) {
#include "local-def.h"
STATIC json_object* pingSample (AFB_request *request) {
- static pingcount = 0;
+ static
int
pingcount = 0;
json_object *response;
char query [512];
int len;
json_object *response;
char query [512];
int len;
@@
-57,7
+57,7
@@
STATIC json_object* pingBug (AFB_request *request) {
// For samples https://linuxprograms.wordpress.com/2010/05/20/json-c-libjson-tutorial/
// For samples https://linuxprograms.wordpress.com/2010/05/20/json-c-libjson-tutorial/
-STATIC json_object* pingJson (AFB_
session *session, AFB_
request *request) {
+STATIC json_object* pingJson (AFB_request *request) {
json_object *jresp, *embed;
jresp = json_object_new_object();
json_object *jresp, *embed;
jresp = json_object_new_object();
@@
-87,8
+87,8
@@
STATIC AFB_restapi pluginApis[]= {
PUBLIC AFB_plugin *pluginRegister () {
AFB_plugin *plugin = malloc (sizeof (AFB_plugin));
plugin->type = AFB_PLUGIN_JSON;
PUBLIC AFB_plugin *pluginRegister () {
AFB_plugin *plugin = malloc (sizeof (AFB_plugin));
plugin->type = AFB_PLUGIN_JSON;
- plugin->info = "
Application Framework Binder Servic
e";
- plugin->prefix= "
dbus";
+ plugin->info = "
Minimal Hello World Sampl
e";
+ plugin->prefix= "
hello";
plugin->apis = pluginApis;
return (plugin);
};
plugin->apis = pluginApis;
return (plugin);
};