summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-06-24 14:04:37 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-06-24 14:04:37 +0200
commit448982b69026464c16ca0545aa91173a935e49f7 (patch)
tree76a2da1234c1ba8abb0b3b809896723779e8f22c /src
parentf58eb17b6fd797e1c969f4fd902f450c237a3079 (diff)
improves naming using 'binding'
Change-Id: I535e01ce4a8dd1e16637e61c6624b4f37639b2f7 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src')
-rw-r--r--src/afm-db.c10
-rw-r--r--src/afm-launch.c8
-rw-r--r--src/afm-launch.h2
-rw-r--r--src/afm-run.c4
4 files changed, 12 insertions, 12 deletions
diff --git a/src/afm-db.c b/src/afm-db.c
index b650d67..034617b 100644
--- a/src/afm-db.c
+++ b/src/afm-db.c
@@ -39,9 +39,9 @@
* path: STRING, the path of the root directory for the application
* content: STRING, the relative path to the entryu point of the application
* type: STRING, the mime type describing the type 'content'
- * plugins: ARRAY, array of plugins
+ * bindings: ARRAY, array of bindings
* [
- * STRING, path to the plugin
+ * STRING, path to the binding
* ]
* public: OBJECT, public content describing the application widget
* {
@@ -139,7 +139,7 @@ static int addwgt(struct afm_apps *apps, const char *path,
if (!pub)
goto error;
- plugs = j_add_new_array(priv, "plugins");
+ plugs = j_add_new_array(priv, "bindings");
if (!plugs)
goto error;
@@ -157,10 +157,10 @@ static int addwgt(struct afm_apps *apps, const char *path,
|| !j_add_string(pub, "author", desc->author))
goto error;
- /* extract plugins from features */
+ /* extract bindings from features */
feat = desc->features;
while (feat) {
- static const char prefix[] = FWK_PREFIX_PLUGIN;
+ static const char prefix[] = FWK_PREFIX_BINDING;
if (!memcmp(feat->name, prefix, sizeof prefix - 1)) {
str = json_object_new_string (
feat->name + sizeof prefix - 1);
diff --git a/src/afm-launch.c b/src/afm-launch.c
index 87c5b12..88402c9 100644
--- a/src/afm-launch.c
+++ b/src/afm-launch.c
@@ -487,6 +487,7 @@ static int mkport()
/*
%% %
%a appid desc->appid
+%b bindings desc->bindings
%c content desc->content
%D datadir params->datadir
%H height desc->height
@@ -494,7 +495,6 @@ static int mkport()
%I icondir FWK_ICON_DIR
%m mime-type desc->type
%n name desc->name
-%p plugins desc->plugins
%P port params->port
%r rootdir desc->path
%R readyfd params->readyfd
@@ -571,6 +571,9 @@ static union arguments instantiate_arguments(
c = *p++;
switch (c) {
case 'a': v = desc->appid; break;
+ case 'b':
+ v = "" /*TODO:desc->bindings*/;
+ break;
case 'c': v = desc->content; break;
case 'D': v = params->datadir; break;
case 'H':
@@ -589,9 +592,6 @@ static union arguments instantiate_arguments(
params->port);
v = port;
break;
- case 'p':
- v = "" /*TODO:desc->plugins*/;
- break;
case 'R':
if(!data)
sprintf(readyfd, "%d",
diff --git a/src/afm-launch.h b/src/afm-launch.h
index ec5a88a..b6c59f6 100644
--- a/src/afm-launch.h
+++ b/src/afm-launch.h
@@ -26,7 +26,7 @@ struct afm_launch_desc {
const char *type; /* type to launch */
const char *name; /* name of the application */
const char *home; /* home directory of the applications */
- const char **plugins; /* plugins for the application */
+ const char **bindings; /* bindings for the application */
int width; /* requested width */
int height; /* requested height */
enum afm_launch_mode mode; /* launch mode */
diff --git a/src/afm-run.c b/src/afm-run.c
index 16b20bd..c5d1552 100644
--- a/src/afm-run.c
+++ b/src/afm-run.c
@@ -388,11 +388,11 @@ static int fill_launch_desc(struct json_object *appli,
return -1;
}
- /* plugins */
+ /* bindings */
{
/* TODO */
static const char *null = NULL;
- desc->plugins = &null;
+ desc->bindings = &null;
}
/* finaly */