My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
api.h
Go to the documentation of this file.
1 /*
2 START OF LICENSE STUB
3  DeDOS: Declarative Dispersion-Oriented Software
4  Copyright (C) 2017 University of Pennsylvania, Georgetown University
5 
6  This program is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program. If not, see <http://www.gnu.org/licenses/>.
18 END OF LICENSE STUB
19 */
20 #ifndef API_H_
21 #define APIP_H_
22 
23 #include "dfg.h"
24 
25 int add_msu(unsigned int msu_id, unsigned int type_id,
26  char *init_data_c, char *msu_mode, char *vertex_type,
27  unsigned int thread_id, unsigned int runtime_id);
28 
29 int remove_msu(unsigned int id);
30 
31 int create_route(unsigned int route_id, unsigned int type_id, unsigned int runtime_id);
32 int delete_route(unsigned int route_id);
33 int add_route_to_msu(unsigned int msu_id, unsigned int route_id);
34 int del_route_from_msu(unsigned int msu_id, unsigned int route_id);
35 int add_endpoint(unsigned int msu_id, uint32_t key, unsigned int route_id);
36 int del_endpoint(unsigned int msu_id, unsigned int route_id);
37 int mod_endpoint(unsigned int msu_id, uint32_t key, unsigned int route_id);
38 int create_worker_thread(unsigned int thread_id, unsigned int runtime_id, char *mode);
39 
40 #endif
int remove_msu(unsigned int id)
Definition: api.c:79
enum thread_mode mode
Pinned/unpinned mode for the thread.
Definition: dfg.h:106
int add_endpoint(unsigned int msu_id, uint32_t key, unsigned int route_id)
Definition: api.c:177
int mod_endpoint(unsigned int msu_id, uint32_t key, unsigned int route_id)
Definition: api.c:234
int del_route_from_msu(unsigned int msu_id, unsigned int route_id)
int create_route(unsigned int route_id, unsigned int type_id, unsigned int runtime_id)
Definition: api.c:104
Interfaces for the creation and modification of the data-flow-graph and and general description of th...
int add_msu(unsigned int msu_id, unsigned int type_id, char *init_data_c, char *msu_mode, char *vertex_type, unsigned int thread_id, unsigned int runtime_id)
Definition: api.c:35
static int runtime_id(int runtime_fd)
unsigned int uint32_t
Definition: uthash.h:96
int del_endpoint(unsigned int msu_id, unsigned int route_id)
Definition: api.c:206
int add_route_to_msu(unsigned int msu_id, unsigned int route_id)
Definition: api.c:147
int create_worker_thread(unsigned int thread_id, unsigned int runtime_id, char *mode)
Definition: api.c:261
int delete_route(unsigned int route_id)
Definition: api.c:126