diff options
author | Kay Sievers <kay@vrfy.org> | 2015-06-03 00:09:23 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2015-06-03 00:22:53 +0200 |
commit | 2375607039517c88df51ef16ddbb624ec1c10654 (patch) | |
tree | 70a06d375e3a7c82a12fabb5c9af8ad2548dfbf6 /src/gudev/seed-example-enum.js | |
parent | 7e518afab9fb55b8052f68888210927259275560 (diff) |
remove gudev and gtk-doc
The library moved to:
https://git.gnome.org/browse/libgudev/
Diffstat (limited to 'src/gudev/seed-example-enum.js')
-rwxr-xr-x | src/gudev/seed-example-enum.js | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/gudev/seed-example-enum.js b/src/gudev/seed-example-enum.js deleted file mode 100755 index 66206ad806..0000000000 --- a/src/gudev/seed-example-enum.js +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env seed - -const GLib = imports.gi.GLib; -const GUdev = imports.gi.GUdev; - -function print_device(device) { - print(" initialized: " + device.get_is_initialized()); - print(" usec since initialized: " + device.get_usec_since_initialized()); - print(" subsystem: " + device.get_subsystem()); - print(" devtype: " + device.get_devtype()); - print(" name: " + device.get_name()); - print(" number: " + device.get_number()); - print(" sysfs_path: " + device.get_sysfs_path()); - print(" driver: " + device.get_driver()); - print(" action: " + device.get_action()); - print(" seqnum: " + device.get_seqnum()); - print(" device type: " + device.get_device_type()); - print(" device number: " + device.get_device_number()); - print(" device file: " + device.get_device_file()); - print(" device file symlinks: " + device.get_device_file_symlinks()); - print(" tags: " + device.get_tags()); - var keys = device.get_property_keys(); - for (var n = 0; n < keys.length; n++) { - print(" " + keys[n] + "=" + device.get_property(keys[n])); - } -} - -var client = new GUdev.Client({subsystems: []}); -var enumerator = new GUdev.Enumerator({client: client}); -enumerator.add_match_subsystem('b*') - -var devices = enumerator.execute(); - -for (var n=0; n < devices.length; n++) { - var device = devices[n]; - print_device(device); - print(""); -} |