diff -r ee45895bc62a -r dc7bcc0fa5e1 env.c --- a/env.c Mon Feb 15 17:53:36 2010 +0200 +++ b/env.c Thu Mar 04 19:51:17 2010 +0200 @@ -20,7 +20,6 @@ */ #include -#include #include #include #include @@ -29,6 +28,17 @@ #include #include #include +#include + +static void env_load (void); +static void env_unload (void); + +module_info_t info_env = { + .mcabber_version = "0.10.0", + .requires = NULL, + .init = env_load, + .uninit = env_unload, +}; extern char **environ; @@ -130,16 +140,14 @@ scr_LogPrint (LPRINT_NORMAL, "Cannot change current working directory: %s.", strerror (errno)); } -const gchar *g_module_check_init(GModule *module) +static void env_load (void) { // command cmd_add ("env", "", 0, 0, do_env, NULL); cmd_add ("cd", "", COMPL_FILENAME, 0, do_cd, NULL); - - return NULL; } -void g_module_unload(GModule *module) +static void env_unload (void) { // command cmd_del ("cd");