Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: https://subversion.cs.uiuc.edu/svn/bang/eoh2009@157 69d76c3e-0761-0410-948c-9895a8bb34fc
- Loading branch information
asjacob2
committed
Mar 12, 2009
1 parent
61b8d3a
commit 9974957
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#include"bang-module.h" | ||
|
||
void BANG_new_module(char *path, char **module_name, unsigned char **module_version) { | ||
|
||
BANG_module* new_mod = BANG_load_module(path); | ||
|
||
*module_name = new_mod->info->module_name; | ||
*module_version = new_mod->info->module_version; | ||
|
||
} | ||
|
||
BANG_module* BANG_get_module(char *module_name, unsigned char *module_version) { | ||
// TODO: this. | ||
module_name = NULL; | ||
module_version = NULL; | ||
return NULL; | ||
} | ||
|
||
int BANG_start_module(char *module_name, unsigned char *module_version) { | ||
// TODO: this as well. | ||
module_name = NULL; | ||
module_version = NULL; | ||
return 1; | ||
} | ||
|
||
void BANG_module_inform_new_peer(char *module_name, unsigned char *module_version, uuid_t new_peer) { | ||
module_name = NULL; | ||
module_version = NULL; | ||
new_peer = 0; | ||
// TODO: gotta call this, but need the params - BANG_module_new_peer(const BANG_module *module, uuid_t peer, uuid_t new_peer); | ||
} |