X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=extras%2Fgudev%2Fseed-example-enum.js;h=66206ad8067ca488fa107f2a1858e13d14d059fa;hb=eabac232a51b8d8dc2f6897018968bfe96d2912d;hp=2aa80362ea7fedf9e11115f4b4866ae6d0571ffd;hpb=0976fd063e1e488e388ec922fcd4dbed5b8da938;p=elogind.git diff --git a/extras/gudev/seed-example-enum.js b/extras/gudev/seed-example-enum.js index 2aa80362e..66206ad80 100755 --- a/extras/gudev/seed-example-enum.js +++ b/extras/gudev/seed-example-enum.js @@ -4,19 +4,21 @@ const GLib = imports.gi.GLib; const GUdev = imports.gi.GUdev; function print_device(device) { - 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()); + 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]));