diff options
author | 2016-06-24 14:04:37 +0200 | |
---|---|---|
committer | 2016-06-24 14:04:37 +0200 | |
commit | 448982b69026464c16ca0545aa91173a935e49f7 (patch) | |
tree | 76a2da1234c1ba8abb0b3b809896723779e8f22c /src/afm-db.c | |
parent | f58eb17b6fd797e1c969f4fd902f450c237a3079 (diff) |
improves naming using 'binding'
Change-Id: I535e01ce4a8dd1e16637e61c6624b4f37639b2f7
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afm-db.c')
-rw-r--r-- | src/afm-db.c | 10 |
1 files changed, 5 insertions, 5 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); |