projects
/
framework
/
appfw
/
aul-1.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tizen 2.4 release
[framework/appfw/aul-1.git]
/
test
/
open_app.c
diff --git
a/test/open_app.c
b/test/open_app.c
index
d9b677c
..
816168c
100755
(executable)
--- a/
test/open_app.c
+++ b/
test/open_app.c
@@
-19,12
+19,14
@@
*
*/
*
*/
+#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <Ecore.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <Ecore.h>
+#include <bundle_internal.h>
#include "aul.h"
#define ROOT_UID 0
#include "aul.h"
#define ROOT_UID 0
@@
-113,7
+115,7
@@
static int __launch_app_dead_handler(int pid, void *data)
static Eina_Bool run_func(void *data)
{
int pid = -1;
static Eina_Bool run_func(void *data)
{
int pid = -1;
- char *str = NULL;
+ c
onst c
har *str = NULL;
if ((pid = launch()) > 0) {
printf("... successfully launched\n");
} else {
if ((pid = launch()) > 0) {
printf("... successfully launched\n");
} else {
@@
-123,7
+125,7
@@
static Eina_Bool run_func(void *data)
str = bundle_get_val(kb, "__LAUNCH_APP_MODE__");
if( str && strcmp(str, "SYNC") == 0 ) {
str = bundle_get_val(kb, "__LAUNCH_APP_MODE__");
if( str && strcmp(str, "SYNC") == 0 ) {
- aul_listen_app_dead_signal(__launch_app_dead_handler, pid);
+ aul_listen_app_dead_signal(__launch_app_dead_handler,
(void *)
pid);
} else {
ecore_main_loop_quit();
}
} else {
ecore_main_loop_quit();
}
@@
-148,8
+150,6
@@
int main(int argc, char **argv)
gargc = argc;
gargv = argv;
gargc = argc;
gargv = argv;
- aul_launch_init(NULL, NULL);
-
ecore_idler_add(run_func, NULL);
ecore_main_loop_begin();
ecore_idler_add(run_func, NULL);
ecore_main_loop_begin();