/*
- * Bluetooth-frwk
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Hocheol Seo <hocheol.seo@samsung.com>
- * Girishashok Joshi <girish.joshi@samsung.com>
- * Chanyeol Park <chanyeol.park@samsung.com>
+ * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <errno.h>
#include <termios.h>
#include <net_connection.h>
-#include <dbus/dbus-glib-lowlevel.h>
-#include <dbus/dbus-glib.h>
#include <dbus/dbus.h>
#include <glib.h>
#include <dlog.h>
#include <bundle.h>
#include <eventsystem.h>
-#include <bundle.h>
-#include <eventsystem.h>
-
-
#include "bluetooth-api.h"
#include "bt-service-common.h"
#include "bt-service-agent.h"
{
GError *error = NULL;
- if (!g_thread_supported()) {
- g_thread_init(NULL);
- }
-
-// dbus_g_thread_init();
+ dbus_threads_init_default();
g_type_init();
if (object_path == NULL)
continue;
- while (g_variant_iter_loop(interface_iter, "{sa{sv}}",
+ while (g_variant_iter_loop(interface_iter, "{&sa{sv}}",
&interface_str, &svc_iter)) {
if (g_strcmp0(interface_str, "org.bluez.Adapter1") != 0)
continue;
BT_DBG("Object Path: %s", object_path);
- g_free(interface_str);
g_variant_iter_free(svc_iter);
g_variant_iter_free(interface_iter);
return g_strdup(object_path);
bundle_add_str(b, key, value);
- ret = eventsystem_request_sending_system_event(event, b);
+ ret = eventsystem_send_system_event(event, b);
- BT_DBG("request_sending_system_event result: %d", ret);
+ BT_DBG("eventsystem_send_system_event result: %d", ret);
bundle_free(b);