summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
f58eb17)
Change-Id: I535e01ce4a8dd1e16637e61c6624b4f37639b2f7
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
SET(PROJECT_PRETTY_NAME "Application Framework Main")
SET(PROJECT_DESCRIPTION "Secured Application framework")
SET(PROJECT_VERSION "1.0")
SET(PROJECT_PRETTY_NAME "Application Framework Main")
SET(PROJECT_DESCRIPTION "Secured Application framework")
SET(PROJECT_VERSION "1.0")
-SET(PROJECT_URL "https://github.com/iotbzh/afm-main")
setc(USE_LIBZIP 1)
setc(USE_SIMULATION 1)
setc(USE_LIBZIP 1)
setc(USE_SIMULATION 1)
-setc(afm_name "aglfwk")
-setc(afm_confdir "${CMAKE_INSTALL_SYSCONFDIR}/${afm_name}")
-setc(afm_datadir "${CMAKE_INSTALL_DATADIR}/${afm_name}")
+setc(afm_name "afm")
+setc(afm_confdir "${CMAKE_INSTALL_FULL_SYSCONFDIR}/${afm_name}")
+setc(afm_datadir "${CMAKE_INSTALL_FULL_DATADIR}/${afm_name}")
setc(afm_appdir "${afm_datadir}/applications")
setc(afm_icondir "${afm_datadir}/icons")
setc(afm_prefix "urn:agl:")
setc(afm_prefix_permission "${afm_prefix}perm:")
setc(afm_appdir "${afm_datadir}/applications")
setc(afm_icondir "${afm_datadir}/icons")
setc(afm_prefix "urn:agl:")
setc(afm_prefix_permission "${afm_prefix}perm:")
-setc(afm_prefix_plugin "${afm_prefix}plugin:")
+setc(afm_prefix_binding "${afm_prefix}binding:")
setc(afm_user_appdir "app-data")
setc(wgtpkg_trusted_cert_dir "${afm_confdir}/certs")
setc(afm_user_appdir "app-data")
setc(wgtpkg_trusted_cert_dir "${afm_confdir}/certs")
defstr(FWK_CONFIG_DIR "${afm_confdir}")
defstr(FWK_PREFIX_PERMISSION "${afm_prefix_permission}")
defstr(FWK_CONFIG_DIR "${afm_confdir}")
defstr(FWK_PREFIX_PERMISSION "${afm_prefix_permission}")
-defstr(FWK_PREFIX_PLUGIN "${afm_prefix_plugin}")
+defstr(FWK_PREFIX_BINDING "${afm_prefix_binding}")
defstr(FWK_ICON_DIR "${afm_icondir}")
defstr(FWK_APP_DIR "${afm_appdir}")
defstr(FWK_USER_APP_DIR "${afm_user_appdir}")
defstr(FWK_ICON_DIR "${afm_icondir}")
defstr(FWK_APP_DIR "${afm_appdir}")
defstr(FWK_USER_APP_DIR "${afm_user_appdir}")
# %c content
# %D datadir
# %H height
# %c content
# %D datadir
# %H height
# %I icondir
# %m mime-type
# %n name
# %I icondir
# %m mime-type
# %n name
# %P port
# %R readyfd
# %r rootdir
# %P port
# %R readyfd
# %r rootdir
* 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'
* 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
* {
* ]
* public: OBJECT, public content describing the application widget
* {
- plugs = j_add_new_array(priv, "plugins");
+ plugs = j_add_new_array(priv, "bindings");
|| !j_add_string(pub, "author", desc->author))
goto error;
|| !j_add_string(pub, "author", desc->author))
goto error;
- /* extract plugins from features */
+ /* extract bindings from features */
feat = desc->features;
while (feat) {
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);
if (!memcmp(feat->name, prefix, sizeof prefix - 1)) {
str = json_object_new_string (
feat->name + sizeof prefix - 1);
/*
%% %
%a appid desc->appid
/*
%% %
%a appid desc->appid
+%b bindings desc->bindings
%c content desc->content
%D datadir params->datadir
%H height desc->height
%c content desc->content
%D datadir params->datadir
%H height desc->height
%I icondir FWK_ICON_DIR
%m mime-type desc->type
%n name desc->name
%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
%P port params->port
%r rootdir desc->path
%R readyfd params->readyfd
c = *p++;
switch (c) {
case 'a': v = desc->appid; break;
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':
case 'c': v = desc->content; break;
case 'D': v = params->datadir; break;
case 'H':
params->port);
v = port;
break;
params->port);
v = port;
break;
- case 'p':
- v = "" /*TODO:desc->plugins*/;
- break;
case 'R':
if(!data)
sprintf(readyfd, "%d",
case 'R':
if(!data)
sprintf(readyfd, "%d",
const char *type; /* type to launch */
const char *name; /* name of the application */
const char *home; /* home directory of the applications */
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 */
int width; /* requested width */
int height; /* requested height */
enum afm_launch_mode mode; /* launch mode */
{
/* TODO */
static const char *null = NULL;
{
/* TODO */
static const char *null = NULL;
+ desc->bindings = &null;