Package org.gnome.gio
Class IOModuleScope
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gio.IOModuleScope
- All Implemented Interfaces:
Proxy
Represents a scope for loading IO modules. A scope can be used for blocking
duplicate modules, or blocking a module you don't want to load.
The scope can be used with g_io_modules_load_all_in_directory_with_scope() or g_io_modules_scan_all_in_directory_with_scope().
-
Constructor Summary
ConstructorDescriptionIOModuleScope
(MemorySegment address) Create a IOModuleScope proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Block modules with the givenbasename
from being loaded when this scope is used with g_io_modules_scan_all_in_directory_with_scope() or g_io_modules_load_all_in_directory_with_scope().void
free()
Free a module scope.static IOModuleScope
new_
(IOModuleScopeFlags flags) Create a new scope for loading of IO modules.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
IOModuleScope
Create a IOModuleScope proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
-
Method Details
-
new_
Create a new scope for loading of IO modules. A scope can be used for blocking duplicate modules, or blocking a module you don't want to load.Specify the
IOModuleScopeFlags.BLOCK_DUPLICATES
flag to block modules which have the same base name as a module that has already been seen in this scope.- Parameters:
flags
- flags for the new scope- Returns:
- the new module scope
-
block
Block modules with the givenbasename
from being loaded when this scope is used with g_io_modules_scan_all_in_directory_with_scope() or g_io_modules_load_all_in_directory_with_scope().- Parameters:
basename
- the basename to block
-
free
public void free()Free a module scope.
-