Skip to content

Commit

Permalink
Added bang-module-registry.c.
Browse files Browse the repository at this point in the history
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.
31 changes: 31 additions & 0 deletions src/base/bang-module-registry.c
@@ -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);
}

0 comments on commit 9974957

Please sign in to comment.