#include <stdio.h>
-#include <stdbool.h>
#include <limits.h>
#include <Ecore.h>
#include <device-node.h>
static DBusMessage* e_dbus_start_cb(E_DBus_Object *obj, DBusMessage* msg)
{
DBusMessage *ret_dbus = NULL;
- bool booting_done = true;
+ int booting_done = 1;
int ret;
ret = pmqos_init_done(&booting_done, NULL);
static int pmqos_init_done(void *data, void *user_data)
{
struct edbus_method *methods = NULL;
- int booting_done;
+ int *booting_done;
int ret, size;
/*
* As a callback function for the booting-done event, it is notified
* with the result of the booting_finished() function by using the
- * first argument, void *data. When it is successfully booted up, 1 is
- * passed with the first argument.
+ * first argument, void *data. When it is successfully booted up, an int
+ * value, 1 is passed with the first argument.
*/
- booting_done = (int)data;
- if (!booting_done)
+ booting_done = (int *) data;
+ if (!(*booting_done))
return -EINVAL;
/* register edbus methods */