Revert "Bluez 5"

This reverts commit 767df72a75.
This commit is contained in:
Eduardo Lima (Etrunko) 2016-04-25 19:56:22 -03:00
parent de958d5e2e
commit 677adbbc2e
2 changed files with 0 additions and 40 deletions

View File

@ -841,30 +841,3 @@ ebluez4_adapter_property_set(Adapter *adap, const char *prop_name, Eina_Bool val
eldbus_message_iter_container_close(iter, variant);
eldbus_proxy_send(adap->proxy, new_msg, NULL, NULL, -1);
}
static struct ebluez5 *bluez5 = NULL;
void
eldbus5_init(void)
{
Eldbus_Object *obj;
if (bluez5 != NULL)
return;
bluez5 = calloc(1, sizeof(*bluez5));
bluez5->conn = eldbus_connection_get(ELDBUS_CONNECTION_TYPE_SYSTEM);
obj = eldbus_object_get(bluez5->conn, BLUEZ_BUS, ORG_BLUEZ_PATH);
bluez5->agent_manager = eldbus_proxy_get(obj, AGENT_MANAGER_INTERFACE);
}
void
eldbus5_shutdown(void)
{
if (!bluez5)
return;
eldbus_connection_unref(bluez5->conn);
free(bluez5);
}

View File

@ -82,16 +82,3 @@ void ebluez4_pair_with_device(const char *addr, void (*cb)(void *, Eina_Bool, co
void ebluez4_remove_device(Eldbus_Object *obj);
int ebluez4_dev_path_cmp(const void *d1, const void *d2);
void ebluez4_adapter_property_set(Adapter *adap, const char *prop_name, Eina_Bool value);
#define ORG_BLUEZ_PATH "/org/bluez"
#define AGENT_MANAGER_INTERFACE "org.bluez.AgentManager1"
struct ebluez5
{
Eldbus_Connection *conn;
Eldbus_Proxy *agent_manager;
};
void ebluez5_init(void);
void ebluez5_shutdown(void);