Table of Contents

Class Vfs

Namespace
Gio.Internal
Assembly
Gio-2.0.dll
public class Vfs
Inheritance
Vfs
Inherited Members

Methods

GetDefault()

Calls native function g_vfs_get_default.

public static extern IntPtr GetDefault()

Returns

IntPtr

Transfer ownership: None Nullable: False

GetFileForPath(IntPtr, NonNullableUtf8StringHandle)

Calls native method g_vfs_get_file_for_path.

public static extern IntPtr GetFileForPath(IntPtr vfs, NonNullableUtf8StringHandle path)

Parameters

vfs IntPtr

Transfer ownership: None Nullable: False

path NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

GetFileForUri(IntPtr, NonNullableUtf8StringHandle)

Calls native method g_vfs_get_file_for_uri.

public static extern IntPtr GetFileForUri(IntPtr vfs, NonNullableUtf8StringHandle uri)

Parameters

vfs IntPtr

Transfer ownership: None Nullable: False

uri NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

GetGType()

Calls native function g_vfs_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetLocal()

Calls native function g_vfs_get_local.

public static extern IntPtr GetLocal()

Returns

IntPtr

Transfer ownership: None Nullable: False

GetSupportedUriSchemes(IntPtr)

Calls native method g_vfs_get_supported_uri_schemes.

public static extern Utf8StringArrayNullTerminatedUnownedHandle GetSupportedUriSchemes(IntPtr vfs)

Parameters

vfs IntPtr

Transfer ownership: None Nullable: False

Returns

Utf8StringArrayNullTerminatedUnownedHandle

Transfer ownership: None Nullable: False

IsActive(IntPtr)

Calls native method g_vfs_is_active.

public static extern bool IsActive(IntPtr vfs)

Parameters

vfs IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

ParseName(IntPtr, NonNullableUtf8StringHandle)

Calls native method g_vfs_parse_name.

public static extern IntPtr ParseName(IntPtr vfs, NonNullableUtf8StringHandle parseName)

Parameters

vfs IntPtr

Transfer ownership: None Nullable: False

parseName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

RegisterUriScheme(IntPtr, NonNullableUtf8StringHandle, VfsFileLookupFunc, IntPtr, DestroyNotify, VfsFileLookupFunc, IntPtr, DestroyNotify)

Calls native method g_vfs_register_uri_scheme. Version: 2.50

[Version("2.50")]
public static extern bool RegisterUriScheme(IntPtr vfs, NonNullableUtf8StringHandle scheme, VfsFileLookupFunc uriFunc, IntPtr uriData, DestroyNotify uriDestroy, VfsFileLookupFunc parseNameFunc, IntPtr parseNameData, DestroyNotify parseNameDestroy)

Parameters

vfs IntPtr

Transfer ownership: None Nullable: False

scheme NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

uriFunc VfsFileLookupFunc

Transfer ownership: None Nullable: True

uriData IntPtr

Transfer ownership: None Nullable: True

uriDestroy DestroyNotify

Transfer ownership: None Nullable: True

parseNameFunc VfsFileLookupFunc

Transfer ownership: None Nullable: True

parseNameData IntPtr

Transfer ownership: None Nullable: True

parseNameDestroy DestroyNotify

Transfer ownership: None Nullable: True

Returns

bool

Transfer ownership: None Nullable: False

UnregisterUriScheme(IntPtr, NonNullableUtf8StringHandle)

Calls native method g_vfs_unregister_uri_scheme. Version: 2.50

[Version("2.50")]
public static extern bool UnregisterUriScheme(IntPtr vfs, NonNullableUtf8StringHandle scheme)

Parameters

vfs IntPtr

Transfer ownership: None Nullable: False

scheme NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False