From aecf676ba13fe5da67a225bf185724f1b33260ce Mon Sep 17 00:00:00 2001 From: nbysani2 Date: Sat, 7 Mar 2009 19:30:30 +0000 Subject: [PATCH] routing protype started. git-svn-id: https://subversion.cs.uiuc.edu/svn/bang/eoh2009@105 69d76c3e-0761-0410-948c-9895a8bb34fc --- src/base/bang-routing.c | 67 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/src/base/bang-routing.c b/src/base/bang-routing.c index 9c9403c..1bda4e2 100644 --- a/src/base/bang-routing.c +++ b/src/base/bang-routing.c @@ -10,3 +10,70 @@ #include #include #include + +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