Camel.Provider¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
authtypes |
[ |
r/w |
|
auto_detect |
r/w |
||
description |
r/w |
||
domain |
r/w |
||
extra_conf |
r/w |
||
flags |
r/w |
||
name |
r/w |
||
object_types |
r/w |
||
port_entries |
r/w |
||
priv |
r/w |
||
protocol |
r/w |
||
translation_domain |
r/w |
||
url_equal |
r/w |
||
url_flags |
r/w |
||
url_hash |
r/w |
Methods¶
class |
|
class |
|
class |
|
class |
|
|
Details¶
- class Camel.Provider¶
- classmethod get(protocol)¶
- Parameters:
protocol (
str
) – aCamel.Provider
protocol name- Raises:
- Returns:
a
Camel.Provider
for protocol, orNone
on error- Return type:
Returns the registered
Camel.Provider
for protocol, loading it from disk if necessary. If noCamel.Provider
can be found for protocol, or the provider module fails to load, the function sets error and returnsNone
.The returned
Camel.Provider
is owned by Camel and should not be modified or freed.
- classmethod init()¶
Initialize the Camel provider system by reading in the .urls files in the provider directory and creating a hash table mapping URLs to module names.
A .urls file has the same initial prefix as the shared library it correspond to, and consists of a series of lines containing the URL protocols that that library handles.
TODO: This should be pathed? TODO: This should be plugin-d?
- classmethod list(load)¶
- Parameters:
load (
bool
) – whether or not to load in providers that are not already loaded- Returns:
a
GLib.List
ofCamel.Provider
structs- Return type:
This returns a list of available providers. If load is
True
, it will first load in all available providers that haven’t yet been loaded.Free the returned list with g_list_free(). The
Camel.Provider
structs in the list are owned by Camel and should not be modified or freed.
- classmethod load(path)¶
- Parameters:
path (
str
) – the path to a shared library- Raises:
- Returns:
- Return type:
Loads the provider at path, and calls its initialization function, passing session as an argument. The provider should then register itself with session.
- register()¶
Registers a provider.