Farstream.Plugin

g Farstream.Plugin Farstream.Plugin GObject.GInterface GObject.GInterface GObject.TypePlugin GObject.TypePlugin GObject.GInterface->GObject.TypePlugin GObject.Object GObject.Object GObject.TypeModule GObject.TypeModule GObject.Object->GObject.TypeModule GObject.TypeModule->Farstream.Plugin GObject.TypePlugin->GObject.TypeModule

Subclasses:

None

Methods

Inherited:

GObject.TypeModule (7), GObject.Object (37), GObject.TypePlugin (4)

Structs:

GObject.ObjectClass (5)

class

list_available (type_suffix)

class

register_static (name, type_suffix, type)

Virtual Methods

Inherited:

GObject.TypeModule (2), GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

name

str

r

parent

GObject.TypeModule

r

the parent object

type

GObject.GType

r

unused

[object]

r

Class Details

class Farstream.Plugin(**kwargs)
Bases:

GObject.TypeModule

Abstract:

No

Structure:

Farstream.PluginClass

This structure represents a plugin, it is opaque.

classmethod list_available(type_suffix)
Parameters:

type_suffix (str) – Get list of plugins with this type suffix

Returns:

a newly allocated None terminated array of strings or None if no strings were found. It should be freed with GLib.strfreev().

Return type:

[str]

Gets the list of all available plugins of a certain type

classmethod register_static(name, type_suffix, type)
Parameters:
  • name (str) – The name of the plugin to register

  • type_suffix (str) – The type of plugin to register (normally “transmitter”)

  • type (GObject.GType) –

Register a staticly linked transmitter. This function should strictly be used by plugins own register function. To register a static plugin: extern fs_plugin_<name>_<type>_register_pluing (void); fs_plugin_<name>_<type>_register_pluing ();