My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions | Variables
controller_dfg.c File Reference
#include "dfg.h"
#include "logging.h"
#include "dfg_reader.h"
#include "controller_stats.h"
#include "haproxy.h"
#include <stdlib.h>

Go to the source code of this file.

Macros

#define MAX_ROUTE_ID   9999
 

Functions

int init_controller_dfg (char *filename)
 
int local_listen_port ()
 
int generate_msu_id ()
 
int generate_route_id ()
 
uint32_t generate_endpoint_key (struct dfg_route *route)
 
int init_dfg_lock ()
 
int lock_dfg ()
 
int unlock_dfg ()
 
struct dedos_dfgget_dfg (void)
 

Variables

static struct dedos_dfgDFG = NULL
 
static int max_msu_id = -1
 
pthread_mutex_t dfg_mutex
 

Macro Definition Documentation

#define MAX_ROUTE_ID   9999

Definition at line 64 of file controller_dfg.c.

Function Documentation

uint32_t generate_endpoint_key ( struct dfg_route route)

Definition at line 75 of file controller_dfg.c.

int generate_msu_id ( )

Definition at line 54 of file controller_dfg.c.

int generate_route_id ( )

Definition at line 66 of file controller_dfg.c.

struct dedos_dfg* get_dfg ( )
Returns
the DFG with which this runtime was instantiated

Definition at line 105 of file controller_dfg.c.

int init_controller_dfg ( char *  filename)

Definition at line 30 of file controller_dfg.c.

int init_dfg_lock ( )

Definition at line 84 of file controller_dfg.c.

int local_listen_port ( )

Definition at line 45 of file controller_dfg.c.

int lock_dfg ( )

Definition at line 88 of file controller_dfg.c.

int unlock_dfg ( )

Definition at line 97 of file controller_dfg.c.

Variable Documentation

struct dedos_dfg* DFG = NULL
static

Definition at line 28 of file controller_dfg.c.

pthread_mutex_t dfg_mutex

Definition at line 82 of file controller_dfg.c.

int max_msu_id = -1
static

Definition at line 52 of file controller_dfg.c.