Repository
Object Hierarchy:
GI.Repository
GI.Repository
GI.Repository
GLib.Object
GLib.Object
GLib.Object->GI.Repository
Description:
[ CCode ( lower_case_csuffix = "irepository" , type_id = "g_irepository_get_type ()" ) ]public class Repository : Object
Repository is used to manage repositories of namespaces.
Namespaces are represented on disk by type libraries (.typelib files).
typeof (unichar2 )
typeof
(unichar2 )
typeof (unichar2
)
Discovery of type libraries
Repository will typically look for a `girepository-1.0` directory under the library directory used when
compiling gobject-introspection.
It is possible to control the search paths programmatically, using
prepend_search_path . It is also possible to modify the search
paths by using the `GI_TYPELIB_PATH` environment variable. The environment variable takes precedence over the default search path and the
prepend_search_path calls.
Content:
Static methods:
public static bool dump (string arg) throws RepositoryError
public static unowned Repository get_default ()
Returns the singleton process-global default
Repository .
public static OptionGroup get_option_group ()
Obtain the option group for girepository, it's used by the dumper and
for programs that wants to provide introspection information
public static unowned SList <string > get_search_path ()
Returns the current search path Repository
will use when loading typelib files.
public static void prepend_library_path (string directory)
public static void prepend_search_path (string directory)
Prepends directory
to the typelib search path.
Creation methods:
Methods:
public List <string > enumerate_versions (string namespace_)
Obtain an unordered list of versions (either currently loaded or
available) for namespace_
in this this .
public EnumInfo find_by_error_domain (Quark domain)
Searches for the enum type corresponding to the given
Error domain.
public BaseInfo find_by_gtype (Type gtype)
Searches all loaded namespaces for a particular
Type .
public BaseInfo find_by_name (string namespace_, string name)
Searches for a particular entry in a namespace.
public unowned string get_c_prefix (string namespace_)
This function returns the "C prefix", or the C level namespace
associated with the given introspection namespace.
public string [] get_dependencies (string namespace_)
Retrieves all (transitive) versioned dependencies for namespace_
.
public string [] get_immediate_dependencies (string namespace_)
Return an array of the immediate versioned dependencies for
namespace_
.
public BaseInfo get_info (string namespace_, int index)
This function returns a particular metadata entry in the given
namespace namespace_
.
public string [] get_loaded_namespaces ()
Return the list of currently loaded namespaces.
public int get_n_infos (string namespace_)
This function returns the number of metadata entries in given
namespace namespace_
.
public void get_object_gtype_interfaces (Type gtype, out unowned InterfaceInfo [] interfaces_out)
Look up the implemented interfaces for gtype
.
public unowned string ? get_shared_library (string namespace_)
This function returns a comma-separated list of paths to the shared C
libraries associated with the given namespace namespace_
.
public unowned string get_typelib_path (string namespace_)
If namespace namespace_
is loaded, return the full path
to the .
public unowned string get_version (string namespace_)
This function returns the loaded version associated with the given
namespace namespace_
.
public bool is_registered (string namespace_, string ? version)
Check whether a particular namespace (and optionally, a specific
version thereof) is currently loaded.
public unowned string load_typelib (Typelib typelib, RepositoryLoadFlags flags) throws RepositoryError
TODO
public unowned Typelib require (string namespace_, string ? version, RepositoryLoadFlags flags) throws RepositoryError
Force the namespace namespace_
to be loaded if it isn't
already.
public unowned Typelib require_private (string typelib_dir, string namespace_, string ? version, RepositoryLoadFlags flags) throws Error
Force the namespace namespace_
to be loaded if it isn't
already.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref