gboolean g_irepository_is_registered (GIRepository *self,
gchar* namespace_,
gchar* version);
Check whether a particular namespace (and optionally, a specific version thereof) is currently loaded. This function is likely to only be useful in unusual circumstances; in order to act upon metadata in the namespace, you should call g_irepository_require() instead which will ensure the namespace is loaded, and return as quickly as this function will if it has already been loaded.
namespace_ : |
Namespace of interest |
version : |
Required version, may be %NULL for latest |
Returns : |
%TRUE if namespace-version is loaded, %FALSE otherwise |