#include <openssl/BIO.h>
#include <engine_xmpp.h>
#include <engine_gps.h>
Go to the source code of this file.
Data Structures | |
struct | engine_t |
Enumerations | |
enum | cmd_state_t { CMD_STATE_UNKNOWN, CMD_STATE_OFF, CMD_STATE_ON, CMD_STATE_ONE } |
enum | engine_error_t { ENGINE_ERROR_NONE, ENGINE_ERROR_AGAIN, ENGINE_ERROR_RECONNECT, ENGINE_ERROR_INVAL, ENGINE_ERROR_UNKNOWN } |
enum | engine_subsystem_t { ENGINE_GPS, ENGINE_XMPP } |
Subsystems in the engine. More... | |
Functions | |
engine_t * | engine_new () |
Allocates a new engine and initializes default values. | |
void | engine_set_logger (engine_t *engine, engine_subsystem_t subsystem, BIO *logger) |
Sets a logger for a given subsystem. | |
void | engine_set_xmpp_server (engine_t *engine, char *server) |
Set the XMPP server the engine will use to receive and send data. | |
void | engine_set_xmpp_account (engine_t *engine, char *account, char *password) |
Set the XMPP account the engine will use to receive and send data. | |
void | engine_set_gps_device (engine_t *engine, char *device) |
Set the GPS device used to retrieve GPS-data. | |
engine_error_t | engine_run (engine_t *engine) |
Run the engine The engine runs until some error occur. | |
void | engine_stop (engine_t *engine) |
Stop all subsystems and deallocate all memory used by the engine. |
|
|
|
|
|
Subsystems in the engine.
|
|
Allocates a new engine and initializes default values.
|
|
Run the engine The engine runs until some error occur.
|
|
Set the GPS device used to retrieve GPS-data.
|
|
Sets a logger for a given subsystem.
|
|
Set the XMPP account the engine will use to receive and send data.
|
|
Set the XMPP server the engine will use to receive and send data.
|
|
Stop all subsystems and deallocate all memory used by the engine.
|