Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I have a test module now. I need to flesh out an actual api for the
modules so we can write the actual program.
- Loading branch information
Nikhil Samith Bysani
committed
Dec 24, 2008
1 parent
160936d
commit 4fb7962
Showing
4 changed files
with
40 additions
and
1 deletion.
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
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
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
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,28 @@ | ||
/** | ||
* \file test-module.c | ||
* \author Nikhil Bysani | ||
*/ | ||
#include<stdlib.h> | ||
#include<stdio.h> | ||
|
||
/** | ||
* \page Test Modules | ||
* | ||
* A bang module should be a C share object file. Currently it must have | ||
* the following symbol names defined: | ||
* -BANG_module_name: the name of the module | ||
* -BANG_module_version: version of the module | ||
* -BANG_module_init: initialize the module | ||
* -BANG_module_run: runs the module | ||
*/ | ||
|
||
char BANG_module_name[5] = "test"; | ||
double BANG_module_version = .1; | ||
|
||
int BANG_module_init() { | ||
return 0; | ||
} | ||
|
||
void BANG_module_run() { | ||
fprintf(stderr,"TEST with a module name %s.\n",BANG_module_name); | ||
} |