*/
#include <string.h>
-#include <dbus/dbus-glib.h>
-#include <dbus/dbus.h>
#include <glib.h>
#include <dlog.h>
+#include <gio/gio.h>
#include "bluetooth-api.h"
#include "bt-service-common.h"
/* insert request next to head */
int _bt_insert_request_list(int req_id, int service_function,
- char *name, DBusGMethodInvocation *context)
+ char *name, GDBusMethodInvocation *context)
{
request_info_t *info;
info = g_malloc0(sizeof(request_info_t));
+ /* Fix : NULL_RETURNS */
+ retv_if(info == NULL, BLUETOOTH_ERROR_MEMORY_ALLOCATION);
info->req_id = req_id;
info->service_function = service_function;