Package com.sun.jna.platform.linux
Class Udev.UdevEnumerate
java.lang.Object
com.sun.jna.PointerType
com.sun.jna.platform.linux.Udev.UdevEnumerate
- All Implemented Interfaces:
- NativeMapped
- Enclosing interface:
- Udev
To enumerate local devices on the system, an enumeration object can be
 created via 
Udev.UdevContext.enumerateNew().- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintaddMatchSubsystem(String subsystem) Modify filters of this object to match a subsystem.Get the first list entry from this object.ref()Acquire a further reference to this object.intQuery this object.voidunref()Drop a reference to this object.Methods inherited from class com.sun.jna.PointerTypeequals, fromNative, getPointer, hashCode, nativeType, setPointer, toNative, toString
- 
Constructor Details- 
UdevEnumeratepublic UdevEnumerate()
 
- 
- 
Method Details- 
refAcquire a further reference to this object.- Returns:
- this object, unmodified.
 
- 
unrefpublic void unref()Drop a reference to this object. Once the reference count hits 0, the context object is destroyed and freed.
- 
addMatchSubsystemModify filters of this object to match a subsystem.- Parameters:
- subsystem- The subsystem to match
- Returns:
- an integer greater than, or equal to, 0 on success.
 
- 
scanDevicespublic int scanDevices()Query this object. Scans/sysfor all devices which match the given filters. No filters will return all currently available devices.- Returns:
- an integer greater than, or equal to, 0 on success.
 
- 
getListEntryGet the first list entry from this object.- Returns:
- On success, returns the first entry in the list of found devices. If the list is empty, or on failure, NULL is returned.
 
 
-