summaryrefslogtreecommitdiffstats
path: root/src/afm-launch.h
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-03-15 11:10:27 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2016-03-15 11:28:07 +0100
commitdc4d29d0b8c3393ab8ba85b6278fd231b1191509 (patch)
tree79fb4e6faf4e24d57160795ebacd5f2f376b1ecf /src/afm-launch.h
parentfc453a43f14a50a2b4dc1f332649ce4bc13af1fa (diff)
afm-launch: comments and improvements
Change-Id: I1b0745dfe659d26efdcd686b117fd7d64ed3a440 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afm-launch.h')
-rw-r--r--src/afm-launch.h25
1 files changed, 15 insertions, 10 deletions
diff --git a/src/afm-launch.h b/src/afm-launch.h
index 552dd18..ec5a88a 100644
--- a/src/afm-launch.h
+++ b/src/afm-launch.h
@@ -16,18 +16,23 @@
limitations under the License.
*/
+/*
+ * Structure describing what is to be launched
+ */
struct afm_launch_desc {
- const char *path;
- const char *appid;
- const char *content;
- const char *type;
- const char *name;
- const char *home;
- const char **plugins;
- int width;
- int height;
- enum afm_launch_mode mode;
+ const char *path; /* to the widget directory */
+ const char *appid; /* application identifier */
+ const char *content; /* content to launch */
+ 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 */
+ int width; /* requested width */
+ int height; /* requested height */
+ enum afm_launch_mode mode; /* launch mode */
};
int afm_launch_initialize();
+
int afm_launch(struct afm_launch_desc *desc, pid_t children[2], char **uri);
+