Introduce widget type application/vnd.agl.resource 98/23398/1
authorJose Bollo <jose.bollo@iot.bzh>
Wed, 4 Dec 2019 11:00:59 +0000 (12:00 +0100)
committerJose Bollo <jose.bollo@iot.bzh>
Mon, 16 Dec 2019 11:12:39 +0000 (12:12 +0100)
The widget type application/vnd.agl.resource doesn't
brings service. It can be used to provide a binding
to the system.

Bug-AGL: SPEC-3057
Bug-AGL: SPEC-1663

Change-Id: I5c900865b8eeec494953942c8069dfefe254a85c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
conf/system/afm-system-setup.sh.in
conf/unit/service.inc

index c3f827e..b7a3c5d 100644 (file)
@@ -13,6 +13,7 @@ dodir $pdir
 dodir $pdir/display
 dodir $pdir/apis
 dodir $pdir/apis/ws
+dodir $pdir/apis/link
 @create_platform_debug@
 
 spdir=@afm_scope_platform_dir@
index 0036cae..a520e3b 100644 (file)
@@ -146,6 +146,14 @@ include(binder.inc)
 ExecStart={{:#metadata.install-dir}}/{{content.src}}
 {{/content.type=application/x-executable}}
 
+;-------------------------------------------------------------------------------
+;----                 application/vnd.agl.resource                          ----
+;-------------------------------------------------------------------------------
+{{#content.type=application/vnd.agl.resource}}
+Type=oneshot
+ExecStart=/bin/true
+{{/content.type=application/vnd.agl.resource}}
+
 IF_PERM(:system:run-by-default)
 ;-------------------------------------------------------------------------------
 ; auto start
@@ -161,5 +169,3 @@ ENDIF
 ENDIF
 
 %end systemd-unit
-
-