Atrinik Server  4.0
Data Structures | Typedefs | Functions | Variables
beacon.c File Reference
#include <global.h>
#include <toolkit/string.h>
#include <object.h>
#include <object_methods.h>
#include <beacon.h>
#include <toolkit/path.h>

Go to the source code of this file.

Data Structures

struct  beacon
 

Typedefs

typedef struct beacon beacon_t
 

Functions

static void init_func (object *op)
 
static void deinit_func (object *op)
 
 OBJECT_TYPE_INIT_DEFINE (beacon)
 
objectbeacon_locate (shstr *name)
 

Variables

static beacon_tbeacons = NULL
 

Detailed Description

Beacon related code.

Author
Alex Tokar

Definition in file beacon.c.

Typedef Documentation

typedef struct beacon beacon_t

One beacon.

Function Documentation

object* beacon_locate ( shstr *  name)

Locate a beacon object.

Parameters
nameName of the beacon to locate. Must be a shared string.
Returns
The beacon object if found, NULL otherwise.

Definition at line 114 of file beacon.c.

static void deinit_func ( object op)
static

De-initializes an object.

Parameters
opThe object to de-initialize.

Definition at line 83 of file beacon.c.

static void init_func ( object op)
static

Initializes an object.

Parameters
opThe object to initialize.

Definition at line 55 of file beacon.c.

OBJECT_TYPE_INIT_DEFINE ( beacon  )

Initialize the beacon type object methods.

Definition at line 99 of file beacon.c.

Variable Documentation

beacon_t* beacons = NULL
static

Beacons hashtable.

Definition at line 51 of file beacon.c.