Update contrib.
1 /* Portion Copyright © 2008 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.*/
4 #define DBUS_COMPILATION /* cheat and use dbus-sysdeps */
6 #include <dbus/dbus-sysdeps.h>
7 #include <dbus/dbus-spawn.h>
9 #include "dbus-sysdeps.h"
10 #include "dbus-spawn.h"
11 #endif //__SYMBIAN32__
12 #undef DBUS_COMPILATION
16 setup_func (void *data)
18 printf ("entering setup func.\n");
22 main (int argc, char **argv)
30 fprintf (stderr, "You need to specify a program to launch.\n");
35 argv_copy = dbus_new (char *, argc);
36 for (i = 0; i < argc - 1; i++)
37 argv_copy [i] = argv[i + 1];
38 argv_copy[argc - 1] = NULL;
40 if (!_dbus_spawn_async_with_babysitter (NULL, argv_copy, setup_func, NULL, &error))
42 fprintf (stderr, "Could not launch application: \"%s\"\n",