16 #include "sysdep_decls.h"
17 #include "citserver.h"
20 #include "dynloader.h"
22 extern struct CitContext *ContextList;
24 #define MODULE_NAME "Dummy test module"
25 #define MODULE_AUTHOR "Art Cancro"
26 #define MODULE_EMAIL "ajc@uncnsrd.mt-kisco.ny.us"
27 #define MAJOR_VERSION 0
28 #define MINOR_VERSION 1
30 static struct DLModule_Info info = {
38 void CleanupTest(void) {
39 lprintf(9, "--- test of adding an unload hook --- \n");
42 void NewRoomTest(char *RoomName) {
43 lprintf(9, "--- test module was told we're now in %s ---\n", RoomName);
46 void SessionStartTest(int WhichSession) {
47 lprintf(9, "--- starting up session %d ---\n", WhichSession);
50 void SessionStopTest(int WhichSession) {
51 lprintf(9, "--- ending session %d ---\n", WhichSession);
54 void LoginTest(void) {
55 lprintf(9, "--- Hello, %s ---\n", CC->curr_user);
58 struct DLModule_Info *Dynamic_Module_Init(void)
60 CtdlRegisterCleanupHook(CleanupTest);
61 CtdlRegisterNewRoomHook(NewRoomTest);
62 CtdlRegisterSessionHook(SessionStartTest, 1);
63 CtdlRegisterSessionHook(SessionStopTest, 0);
64 CtdlRegisterLoginHook(LoginTest);