Added module loading capabilities
Added basic module loading capabilities. Created very basic modules Signed-off-by: Gergely Polonkai (W00d5t0ck) <polesz@w00d5t0ck.info>
This commit is contained in:
9
modules/Makefile.am
Normal file
9
modules/Makefile.am
Normal file
@@ -0,0 +1,9 @@
|
||||
lib_LTLIBRARIES = libmod-layer-gnutls.la libmod-auth-gsasl.la libmod-users-sqlite3.la libmod-roster-sqlite3.la
|
||||
libmod_layer_gnutls_la_SOURCES = layer-gnutls.c
|
||||
libmod_layer_gnutls_la_CPPFLAGS = -I ../src
|
||||
libmod_auth_gsasl_la_SOURCES = auth-gsasl.c
|
||||
libmod_auth_gsasl_la_CPPFLAGS = -I ../src
|
||||
libmod_users_sqlite3_la_SOURCES = users-sqlite3.c
|
||||
libmod_users_sqlite3_la_CPPFLAGS = -I ../src
|
||||
libmod_roster_sqlite3_la_SOURCES = roster-sqlite3.c
|
||||
libmod_roster_sqlite3_la_CPPFLAGS = -I ../src
|
16
modules/auth-gsasl.c
Normal file
16
modules/auth-gsasl.c
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "module.h"
|
||||
|
||||
int wxmppd_mod_auth_gsasl_load(funcptr *);
|
||||
|
||||
const wxmppd_module_data_t module_data = {
|
||||
"auth-gsasl",
|
||||
"GNU SASL authentication extension",
|
||||
(funcptr)wxmppd_mod_auth_gsasl_load,
|
||||
};
|
||||
|
||||
int
|
||||
wxmppd_mod_auth_gsasl_load(funcptr *global_functions)
|
||||
{
|
||||
/* Register authentication extension "auth-gsasl" */
|
||||
}
|
||||
|
16
modules/layer-gnutls.c
Normal file
16
modules/layer-gnutls.c
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "module.h"
|
||||
|
||||
int wxmppd_mod_layer_gnutls_load(funcptr *);
|
||||
|
||||
const wxmppd_module_data_t module_data = {
|
||||
"layer-gnutls",
|
||||
"GnuTLS interface extension",
|
||||
(funcptr)wxmppd_mod_layer_gnutls_load,
|
||||
};
|
||||
|
||||
int
|
||||
wxmppd_mod_layer_gnutls_load(funcptr *global_functions)
|
||||
{
|
||||
/* Register interface extension "layer-tls" */
|
||||
}
|
||||
|
16
modules/roster-sqlite3.c
Normal file
16
modules/roster-sqlite3.c
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "module.h"
|
||||
|
||||
int wxmppd_mod_roster_sqlite3_load(funcptr *);
|
||||
|
||||
const wxmppd_module_data_t module_data = {
|
||||
"roster-sqlite3",
|
||||
"SQLite3 storage module for roster data storage",
|
||||
(funcptr)wxmppd_mod_roster_sqlite3_load,
|
||||
};
|
||||
|
||||
int
|
||||
wxmppd_mod_roster_sqlite3_load(funcptr *global_functions)
|
||||
{
|
||||
/* Register roster storage extension "sqlite3" */
|
||||
}
|
||||
|
16
modules/users-sqlite3.c
Normal file
16
modules/users-sqlite3.c
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "module.h"
|
||||
|
||||
int wxmppd_mod_users_sqlite3_load(funcptr *);
|
||||
|
||||
const wxmppd_module_data_t module_data = {
|
||||
"users-sqlite3",
|
||||
"SQLite3 storage module for user data storage",
|
||||
(funcptr)wxmppd_mod_users_sqlite3_load,
|
||||
};
|
||||
|
||||
int
|
||||
wxmppd_mod_users_sqlite3_load(funcptr *global_functions)
|
||||
{
|
||||
/* Register user storage extension "sqlite3" */
|
||||
}
|
||||
|
Reference in New Issue
Block a user