forked from enlightenment/efl
eeze: add EEZE_UDEV_TYPE_BLUETOOTH.
patch by Mikael Sans. Don't forget to say no to drug ! SVN revision: 66993
This commit is contained in:
parent
b8e90a0539
commit
a9403af029
|
@ -1,2 +1,3 @@
|
|||
Mike Blumenkrantz (zmike/discomfitor) <michael.blumenkrantz@gmail.com>
|
||||
Cedric Bail <cedric@efl.so>
|
||||
Mikael Sans <sans.mikael@gmail.com>
|
||||
|
|
|
@ -58,9 +58,13 @@
|
|||
* added eeze_disk_can_{mount,unmount,eject} to determine at runtime whether eeze
|
||||
is capable of performing disk operations
|
||||
|
||||
2011-12-02 Carsten Haitzler (The Rasterman)
|
||||
2011-12-02 Carsten Haitzler (The Rasterman)
|
||||
|
||||
1.1.0 release
|
||||
|
||||
|
||||
2011-12-02 Mike Blumenkrantz (discomfitor/zmike)
|
||||
* added network device api (eeze_net_*) and Eeze_Net.h header
|
||||
|
||||
2012-01-09 Mikael Sans
|
||||
|
||||
* added EEZE_UDEV_TYPE_BLUETOOTH
|
||||
|
|
|
@ -1,5 +1,12 @@
|
|||
Eeze 1.1.0
|
||||
|
||||
Changes since Eeze 1.1.0:
|
||||
-------------------------
|
||||
|
||||
Additions :
|
||||
|
||||
* Detect bluetooth devices.
|
||||
|
||||
Changes since Eeze 1.0.0:
|
||||
-------------------------
|
||||
|
||||
|
|
|
@ -213,7 +213,9 @@ typedef enum
|
|||
/** - Network devices */
|
||||
EEZE_UDEV_TYPE_NET,
|
||||
/** - WebCam */
|
||||
EEZE_UDEV_TYPE_V4L
|
||||
EEZE_UDEV_TYPE_V4L,
|
||||
/** - Bluetooth */
|
||||
EEZE_UDEV_TYPE_BLUETOOTH
|
||||
} Eeze_Udev_Type;
|
||||
/**@}*/
|
||||
|
||||
|
|
|
@ -237,6 +237,9 @@ eeze_udev_find_by_type(Eeze_Udev_Type etype,
|
|||
case EEZE_UDEV_TYPE_V4L:
|
||||
udev_enumerate_add_match_subsystem(en, "video4linux");
|
||||
break;
|
||||
case EEZE_UDEV_TYPE_BLUETOOTH:
|
||||
udev_enumerate_add_match_subsystem(en, "bluetooth");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -275,7 +275,12 @@ _get_syspath_from_watch(void *data,
|
|||
if ((!(test = udev_device_get_subsystem(device)))
|
||||
|| (strcmp(test, "video4linux")))
|
||||
goto error;
|
||||
break;
|
||||
|
||||
case EEZE_UDEV_TYPE_BLUETOOTH:
|
||||
if ((!(test = udev_device_get_subsystem(device)))
|
||||
|| (strcmp(test, "bluetooth")))
|
||||
goto error;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -359,6 +364,12 @@ eeze_udev_watch_add(Eeze_Udev_Type type,
|
|||
udev_monitor_filter_add_match_subsystem_devtype(mon, "video4linux",
|
||||
NULL);
|
||||
break;
|
||||
|
||||
case EEZE_UDEV_TYPE_BLUETOOTH:
|
||||
udev_monitor_filter_add_match_subsystem_devtype(mon, "bluetooth",
|
||||
NULL);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue