My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
api.c File Reference
#include <stdlib.h>
#include <string.h>
#include <arpa/inet.h>
#include "controller_stats.h"
#include "controller_mysql.h"
#include "logging.h"
#include "api.h"
#include "dfg.h"
#include "communication.h"
#include "msu_ids.h"
#include "controller_dfg.h"
#include "runtime_messages.h"

Go to the source code of this file.

Functions

int add_msu (unsigned int msu_id, unsigned int type_id, char *init_data_c, char *msu_mode, char *vertex_type_c, unsigned int thread_id, unsigned int runtime_id)
 
int remove_msu (unsigned int id)
 
int create_route (unsigned int route_id, unsigned int type_id, unsigned int runtime_id)
 
int delete_route (unsigned int route_id)
 
int add_route_to_msu (unsigned int msu_id, unsigned int route_id)
 
int add_endpoint (unsigned int msu_id, uint32_t key, unsigned int route_id)
 
int del_endpoint (unsigned int msu_id, unsigned int route_id)
 
int mod_endpoint (unsigned int msu_id, uint32_t key, unsigned int route_id)
 
int create_worker_thread (unsigned int thread_id, unsigned int runtime_id, char *mode)
 

Function Documentation

int add_endpoint ( unsigned int  msu_id,
uint32_t  key,
unsigned int  route_id 
)

Definition at line 177 of file api.c.

int add_msu ( unsigned int  msu_id,
unsigned int  type_id,
char *  init_data_c,
char *  msu_mode,
char *  vertex_type_c,
unsigned int  thread_id,
unsigned int  runtime_id 
)

Definition at line 35 of file api.c.

int add_route_to_msu ( unsigned int  msu_id,
unsigned int  route_id 
)

Definition at line 147 of file api.c.

int create_route ( unsigned int  route_id,
unsigned int  type_id,
unsigned int  runtime_id 
)

Definition at line 104 of file api.c.

int create_worker_thread ( unsigned int  thread_id,
unsigned int  runtime_id,
char *  mode 
)

Definition at line 261 of file api.c.

int del_endpoint ( unsigned int  msu_id,
unsigned int  route_id 
)

Definition at line 206 of file api.c.

int delete_route ( unsigned int  route_id)

Definition at line 126 of file api.c.

int mod_endpoint ( unsigned int  msu_id,
uint32_t  key,
unsigned int  route_id 
)

Definition at line 234 of file api.c.

int remove_msu ( unsigned int  id)

Definition at line 79 of file api.c.