SuperuserPluginUnixBindings class final

Bindings for src/superuser_plugin_unix.h.

Regenerate bindings with dart run ffigen --config ffigen.yaml.

Constructors

SuperuserPluginUnixBindings.new(DynamicLibrary dynamicLibrary)
The symbols are looked up in dynamicLibrary.
SuperuserPluginUnixBindings.fromLookup(Pointer<T> lookup<T extends NativeType>(String symbolName))
The symbols are looked up with lookup.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

flush_group(Pointer<gid_t> groups) → void
Flush dynamic allocated pointers.
get_current_user_group(Pointer<Int> size, Pointer<Pointer<gid_t>> groups) int
Obtain all associated group for current user.
get_group_name_by_gid(int group_id, Pointer<Pointer<Char>> result) int
Resolve name of group from given ID number.
get_uname(Pointer<Pointer<Char>> result) int
Obtain name of user.
is_root() bool
Determine user who execute this program is root.
is_sudo_group(Pointer<Bool> result) int
Determine user is a group member, which eligable to execute program as root by calling sudo command.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited