Class IOModuleScope

java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gio.IOModuleScope
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class IOModuleScope extends ProxyInstance

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().

Since:
2.30
  • Constructor Details

    • IOModuleScope

      public IOModuleScope(MemorySegment address)
      Create a IOModuleScope proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
  • Method Details

    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • new_

      public static IOModuleScope new_(Set<IOModuleScopeFlags> flags)

      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
      Since:
      2.30
    • new_

      public static IOModuleScope new_(IOModuleScopeFlags... flags)

      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
      Since:
      2.30
    • block

      public void block(String basename)
      Block modules with the given basename 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
      Since:
      2.30
    • free

      public void free()
      Free a module scope.
      Since:
      2.30