summaryrefslogtreecommitdiff
path: root/legacy/eeze/src/bin
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2010-07-31 03:21:55 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2010-07-31 03:21:55 +0000
commite48c3cdc31ff94fd156f43662eb38312d9e0e12d (patch)
tree8ab3015b2b20f38a6e5b52bf02d2de0417a1dc83 /legacy/eeze/src/bin
parentf7019f134dd8e8ae830eb1d39fb8570c74b730e9 (diff)
forgot to commit this earlier
SVN revision: 50699
Diffstat (limited to 'legacy/eeze/src/bin')
-rw-r--r--legacy/eeze/src/bin/eeze_udev_test.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/legacy/eeze/src/bin/eeze_udev_test.c b/legacy/eeze/src/bin/eeze_udev_test.c
index a9abf2bb38..b381e07bc6 100644
--- a/legacy/eeze/src/bin/eeze_udev_test.c
+++ b/legacy/eeze/src/bin/eeze_udev_test.c
@@ -18,7 +18,7 @@ typedef struct kbdmouse
18 18
19static void 19static void
20/* event will always be a syspath starting with /sys */ 20/* event will always be a syspath starting with /sys */
21catch_events(const char *device, int event, void *data, Eeze_Udev_Watch *watch) 21catch_events(const char *device, Eeze_Udev_Event event, void *data, Eeze_Udev_Watch *watch)
22{ 22{
23 kbdmouse *akbdmouse = data; 23 kbdmouse *akbdmouse = data;
24 Eina_List *l; 24 Eina_List *l;
@@ -100,7 +100,7 @@ int main()
100 /* add all "link" devices that aren't explicitly found, but are still 100 /* add all "link" devices that aren't explicitly found, but are still
101 * part of the device chain 101 * part of the device chain
102 */ 102 */
103 eeze_udev_find_unlisted_similar(type); 103 type = eeze_udev_find_unlisted_similar(type);
104 EINA_LIST_FOREACH(type, l, name) 104 EINA_LIST_FOREACH(type, l, name)
105 { 105 {
106 /* add the devpath to the hash for use in the cb later */ 106 /* add the devpath to the hash for use in the cb later */
@@ -117,7 +117,7 @@ int main()
117 printf("\nNext, I will find all of your mice and print the corresponding manufacturer.\n"); 117 printf("\nNext, I will find all of your mice and print the corresponding manufacturer.\n");
118 /* find all mice using type EEZE_UDEV_TYPE_MOUSE */ 118 /* find all mice using type EEZE_UDEV_TYPE_MOUSE */
119 type = eeze_udev_find_by_type(EEZE_UDEV_TYPE_MOUSE, NULL); 119 type = eeze_udev_find_by_type(EEZE_UDEV_TYPE_MOUSE, NULL);
120 eeze_udev_find_unlisted_similar(type); 120 type = eeze_udev_find_unlisted_similar(type);
121 EINA_LIST_FOREACH(type, l, name) 121 EINA_LIST_FOREACH(type, l, name)
122 { /* add the devpath to the hash for use in the cb later */ 122 { /* add the devpath to the hash for use in the cb later */
123 if ((check = eeze_udev_syspath_get_devpath(name))) 123 if ((check = eeze_udev_syspath_get_devpath(name)))
@@ -133,7 +133,7 @@ int main()
133 printf("\nNow let's try something a little more difficult. Mountable filesystems!\n"); 133 printf("\nNow let's try something a little more difficult. Mountable filesystems!\n");
134 /* find all mountable drives using type EEZE_UDEV_TYPE_DRIVE_MOUNTABLE */ 134 /* find all mountable drives using type EEZE_UDEV_TYPE_DRIVE_MOUNTABLE */
135 type = eeze_udev_find_by_type(EEZE_UDEV_TYPE_DRIVE_MOUNTABLE, NULL); 135 type = eeze_udev_find_by_type(EEZE_UDEV_TYPE_DRIVE_MOUNTABLE, NULL);
136 eeze_udev_find_unlisted_similar(type); 136 type = eeze_udev_find_unlisted_similar(type);
137 EINA_LIST_FOREACH(type, l, name) 137 EINA_LIST_FOREACH(type, l, name)
138 { 138 {
139 printf("Found device: %s\n", name); /* get a property using the device's syspath */ 139 printf("Found device: %s\n", name); /* get a property using the device's syspath */
@@ -152,7 +152,7 @@ int main()
152 printf("\nInternal drives, anyone? With serial numbers?\n"); 152 printf("\nInternal drives, anyone? With serial numbers?\n");
153 /* find all internal drives using type EEZE_UDEV_TYPE_DRIVE_INTERNAL */ 153 /* find all internal drives using type EEZE_UDEV_TYPE_DRIVE_INTERNAL */
154 type = eeze_udev_find_by_type(EEZE_UDEV_TYPE_DRIVE_INTERNAL, NULL); 154 type = eeze_udev_find_by_type(EEZE_UDEV_TYPE_DRIVE_INTERNAL, NULL);
155 eeze_udev_find_unlisted_similar(type); 155 type = eeze_udev_find_unlisted_similar(type);
156 EINA_LIST_FOREACH(type, l, name) /* get a property using the device's syspath */ 156 EINA_LIST_FOREACH(type, l, name) /* get a property using the device's syspath */
157 printf("%s: %s\n", name, eeze_udev_syspath_get_property(name, "ID_SERIAL")); 157 printf("%s: %s\n", name, eeze_udev_syspath_get_property(name, "ID_SERIAL"));
158 eina_list_free(type); 158 eina_list_free(type);
@@ -160,7 +160,7 @@ int main()
160 printf("\nGot any removables? I'm gonna find em!\n"); 160 printf("\nGot any removables? I'm gonna find em!\n");
161 /* find all removable media using type EEZE_UDEV_TYPE_DRIVE_REMOVABLE */ 161 /* find all removable media using type EEZE_UDEV_TYPE_DRIVE_REMOVABLE */
162 type = eeze_udev_find_by_type(EEZE_UDEV_TYPE_DRIVE_REMOVABLE, NULL); 162 type = eeze_udev_find_by_type(EEZE_UDEV_TYPE_DRIVE_REMOVABLE, NULL);
163 eeze_udev_find_unlisted_similar(type); 163 type = eeze_udev_find_unlisted_similar(type);
164 EINA_LIST_FOREACH(type, l, name) /* get a property using the device's syspath */ 164 EINA_LIST_FOREACH(type, l, name) /* get a property using the device's syspath */
165 { 165 {
166 if ((check = eeze_udev_syspath_get_property(name, "ID_MODEL"))) 166 if ((check = eeze_udev_syspath_get_property(name, "ID_MODEL")))