Package com.sun.jna.platform.linux
Klasse Udev.UdevEnumerate
java.lang.Object
com.sun.jna.PointerType
com.sun.jna.platform.linux.Udev.UdevEnumerate
- Alle implementierten Schnittstellen:
NativeMapped
- Umschließende Schnittstelle:
Udev
To enumerate local devices on the system, an enumeration object can be
created via
Udev.UdevContext.enumerateNew()
.-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
addMatchSubsystem
(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.int
Query this object.void
unref()
Drop a reference to this object.Von Klasse geerbte Methoden com.sun.jna.PointerType
equals, fromNative, getPointer, hashCode, nativeType, setPointer, toNative, toString
-
Konstruktordetails
-
UdevEnumerate
public UdevEnumerate()
-
-
Methodendetails
-
ref
Acquire a further reference to this object.- Gibt zurück:
- this object, unmodified.
-
unref
public void unref()Drop a reference to this object. Once the reference count hits 0, the context object is destroyed and freed. -
addMatchSubsystem
Modify filters of this object to match a subsystem.- Parameter:
subsystem
- The subsystem to match- Gibt zurück:
- an integer greater than, or equal to, 0 on success.
-
scanDevices
public int scanDevices()Query this object. Scans/sys
for all devices which match the given filters. No filters will return all currently available devices.- Gibt zurück:
- an integer greater than, or equal to, 0 on success.
-
getListEntry
Get the first list entry from this object.- Gibt zurück:
- On success, returns the first entry in the list of found devices. If the list is empty, or on failure, NULL is returned.
-