On Wed, Sep 14, 2011 at 3:20 AM, Zhang, Jingke <jingke.zh...@intel.com> wrote: > > Hi all, > I am new to this mailing list. Hope to get help, thanks in advance! > When I investigate E_Dbus/bluez codes, I noticed the e_bluez_element.c file. > My question is what is the bluez dbus "element"? > > I tried "get_all" in bluez test, but only get 2 elements ("/" and > "/org/bluez/17304/hci0"), however, my dbus has total 5 "Object Paths" items. > Why did I only get two? Thanks!
Hi Zhang, Check the BlueZ docs, they explain their structure and it's basically what we expose in e_bluez. You may check our e17 module as example (and only user so far). get_all just return registered elements. "/" is the manager, the other is the HCI adapter. Then from the adapter you can query info (mac addr), configure it (name, discoverable, timeout...), start/stop scan, pair... You can get the default adapter with: e_bluez_manager_default_adapter(), it is async and will callback with the actual device. As usual with EFL, most stuff is notified in the main loop as events (use ecore_event_handler_add), see event types: E_BLUEZ_EVENT_MANAGER_IN E_BLUEZ_EVENT_MANAGER_OUT E_BLUEZ_EVENT_ELEMENT_ADD E_BLUEZ_EVENT_ELEMENT_DEL E_BLUEZ_EVENT_ELEMENT_UPDATED E_BLUEZ_EVENT_DEVICE_FOUND You have type checking with e_bluez_element_is_adapter() and e_bluez_element_is_device(), you also have few device getters... we just did what is used in e17 module, feel free to send us patches with more calls if you need them. BR, -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerry® mobile platform with sessions, labs & more. See new tools and technologies. Register for BlackBerry® DevCon today! http://p.sf.net/sfu/rim-devcon-copy1 _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel