NimfService

NimfService

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── NimfService

Description

Functions

nimf_service_start ()

gboolean
nimf_service_start (NimfService *service);

Starts service .

Parameters

service

a NimfService

 

Returns

TRUE if a service is started.


nimf_service_stop ()

void
nimf_service_stop (NimfService *service);

Stops a service .

Parameters

service

a NimfService

 

nimf_service_is_active ()

gboolean
nimf_service_is_active (NimfService *service);

Parameters

service

a NimfService

 

Returns

TRUE if a service is active


nimf_service_get_id ()

const gchar *
nimf_service_get_id (NimfService *service);

Gets the ID of a service .

Parameters

service

a NimfService

 

Returns

the ID of a service


nimf_service_change_engine_by_id ()

void
nimf_service_change_engine_by_id (NimfService *service,
                                  const gchar *engine_id);

Parameters

service

a NimfService

 

engine_id

engine id

 

nimf_service_change_engine ()

void
nimf_service_change_engine (NimfService *service,
                            const gchar *engine_id,
                            const gchar *method_id);

Parameters

service

a NimfService

 

engine_id

engine id

 

method_id

method id

 

Types and Values

struct NimfServiceClass

struct NimfServiceClass {
  /* Virtual functions */
  const gchar * (* get_id)              (NimfService *service);
  gboolean      (* start)               (NimfService *service);
  void          (* stop)                (NimfService *service);
  gboolean      (* is_active)           (NimfService *service);
  void          (* change_engine_by_id) (NimfService *service,
                                         const gchar *engine_id);
  void          (* change_engine)       (NimfService *service,
                                         const gchar *engine_id,
                                         const gchar *method_id);
};

Members

get_id ()

Returns a service id.

 

start ()

Starts a service.

 

stop ()

Stops a service.

 

is_active ()

Whether a service is active or not

 

change_engine_by_id ()

Changes an engine by engine id.

 

change_engine ()

Changes an engine with engine id and method id.