/
bang-routing.c
79 lines (58 loc) · 1.43 KB
/
bang-routing.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#include"bang-com.h"
#include"bang-routing.h"
#include"bang-module.h"
#include"bang-module-api.h"
#include"bang-signals.h"
#include"bang-types.h"
#include"bang-utils.h"
#include<assert.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<uuid/uuid.h>
enum remote_route {
REMOTE,
LOCAL
};
typedef struct {
int peer_id;
} peer_route;
typedef struct {
enum remote_route remote;
peer_route *remote;
} peer_or_module;
static BANG_hashmap *routes = NULL;
void BANG_route_job(uuid_t authority, uuid_t peer, BANG_job *job) {
assert(routes != NULL);
assert(job != NULL);
}
void BANG_route_job_to_uuids(uuid_t authority, uuid_t *peers, BANG_job *job) {
}
void BANG_route_finished_job(uuid_t auth, uuid_t peer, BANG_job *job) {
}
void BANG_route_request_job(uuid_t peer, uuid_t authority) {
}
void BANG_route_assertion_of_authority(uuid_t authority, uuid_t peer) {
}
void BANG_route_send_message(uuid_t uuid, char *message) {
}
int BANG_route_get_peer_id(uuid_t uuid) {
}
int** BANG_not_route_get_peer_id(uuid_t *uuids) {
return NULL:
}
void BANG_route_new_peer(uuid_t peer, uuid_t new_peer) {
}
void BANG_route_remove_peer(uuid_t peer, uuid_t old_peer) {
}
void BANG_register_module_route(BANG_module *module) {
}
void BANG_register_peer_route(uuid_t uuid, int peer, char *module_name, unsigned char* module_version) {
}
void BANG_deregister_route(uuid_t uid) {
}
void BANG_route_init() {
}
void BANG_route_close() {
}
#endif