Main Page | Data Structures | File List | Data Fields | Globals

engine.c File Reference

#include "engine.h"
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <time.h>

Functions

engine_tengine_new ()
 Allocates a new engine and initializes default values.

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 *jid, 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.

void engine_set_logger (engine_t *engine, engine_subsystem_t subsystem, BIO *logger)
 Sets a logger for a given subsystem.


Function Documentation

engine_t* engine_new  ) 
 

Allocates a new engine and initializes default values.

Returns:
Newly allocated and initialized engine

engine_error_t engine_run engine_t engine  ) 
 

Run the engine The engine runs until some error occur.

void engine_set_gps_device engine_t engine,
char *  device
 

Set the GPS device used to retrieve GPS-data.

Parameters:
engine 
device Path to device

void engine_set_logger engine_t engine,
engine_subsystem_t  subsystem,
BIO *  logger
 

Sets a logger for a given subsystem.

Parameters:
engine 
subsystem 
logger Recipient of logging messages

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.

Parameters:
engine 
account The account in jabber ID format (x.x)
password Password associated with the account

void engine_set_xmpp_server engine_t engine,
char *  server
 

Set the XMPP server the engine will use to receive and send data.

Parameters:
engine 
server Server name. IP-adress in "x.x.x.x" notation or DNS name.

void engine_stop engine_t engine  ) 
 

Stop all subsystems and deallocate all memory used by the engine.


Generated on Wed Mar 14 20:32:17 2007 for GloPosCom by doxygen 1.3.4