Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: Vfs

[12:7] extends: object

Entry point for using GIO functionality.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • Vfs (Handle = null)

    Creates a new Vfs by wrapping a native handle or another wrapper.

    • @p Handle is the native handle or another wrapper whose handle to adopt.
  • toNativeHandle (Source)

    Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from fn.call(...), another generated wrapper exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • asObject ()

    Wraps this handle as Object.

    • @r A Object object.
  • get_file_for_path (string path)

    Gets a #GFile for @path.

    • @p path is a string containing a VFS path..
  • get_file_for_uri (string uri)

    Gets a #GFile for @uri. This operation never fails, but the returned object might not support any I/O operation if the URI is malformed or if the URI scheme is not supported.

    • @p uri is a string containing a URI.
  • get_supported_uri_schemes ()

    Gets a list of URI schemes supported by @vfs.

  • is_active ()

    Checks if the VFS is active.

  • parse_name (string parse_name)

    This operation never fails, but the returned object might not support any I/O operations if the @parse_name cannot be parsed by the #GVfs module.

    • @p parse_name is a string to be parsed by the VFS module..
  • unregister_uri_scheme (string scheme)

    Unregisters the URI handler for @scheme previously registered with g_vfs_register_uri_scheme().

    • @p scheme is an URI scheme, e.g. "http".