load_file


Description:

public Source? load_file (File file, SourcePermissionFlags flags) throws Error

Creates an Source for a native key file and adds it to this.

If an error occurs, the function returns null and sets throws.

The returned Source is referenced for thread-safety. Unreference the Source with unref when finished with it.

Parameters:

this

an SourceRegistryServer

file

the data source key file to load

flags

initial permission flags for the data source

Returns:

the newly-added Source, or null on error