summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-15 17:56:39 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-15 17:56:39 +0000
commit8784fa995e7e9aaf2f1ecf9f40daef1172580ccd (patch)
treea0fe795b748b4204c8f3c503810f6ff9428d5604 /include
parentb2b0e1d235686ff8389d2930a53366abefd1bb9d (diff)
Remove moduleAddData|GetData|DelData and all associated mess. Extensible base replaces all this in a much cleaner and more transparent fashion.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1706 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include')
-rw-r--r--include/extern.h1
-rw-r--r--include/modules.h5
-rw-r--r--include/services.h16
-rw-r--r--include/users.h2
4 files changed, 0 insertions, 24 deletions
diff --git a/include/extern.h b/include/extern.h
index 407e9454f..6e3495ece 100644
--- a/include/extern.h
+++ b/include/extern.h
@@ -715,7 +715,6 @@ E int str_is_cidr(char *str, uint32 * ip, uint32 * mask, char **host);
/**** modules.c ****/
E void modules_unload_all(bool fini, bool unload_proto); /* Read warnings near function source */
-E void moduleCleanStruct(ModuleData **moduleData);
E void ModuleDatabaseBackup(const char *dbname);
E void ModuleRemoveBackups(const char *dbname);
diff --git a/include/modules.h b/include/modules.h
index 6953ec476..c09b234c2 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -458,11 +458,6 @@ MDE void moduleDeleteLanguage(int langNumber);
/*************************************************************************/
-MDE char *moduleGetData(ModuleData **md, const char *key); /* Get the value for this key from this struct */
-MDE int moduleAddData(ModuleData **md, const char *key, char *value); /* Set the value for this key for this struct */
-MDE void moduleDelData(ModuleData **md, const char *key); /* Delete this key/value pair */
-MDE void moduleDelAllData(ModuleData **md); /* Delete all key/value pairs for this module for this struct */
-void moduleDelAllDataMod(Module *m); /* remove all module data from all structs for this module */
MDE bool moduleMinVersion(int major,int minor,int patch,int build); /* Checks if the current version of anope is before or after a given verison */
/*************************************************************************/
diff --git a/include/services.h b/include/services.h
index d6cdc015b..70aaf0066 100644
--- a/include/services.h
+++ b/include/services.h
@@ -391,7 +391,6 @@ typedef struct server_ Server;
typedef struct channel_ Channel;
typedef struct c_elist EList;
typedef struct c_elist_entry Entry;
-typedef struct ModuleData_ ModuleData; /* ModuleData struct */
typedef struct memo_ Memo;
typedef struct badword_ BadWord;
typedef struct bandata_ BanData;
@@ -581,20 +580,6 @@ typedef struct {
/*************************************************************************/
-
-/**
- * ModuleData strucs used to allow modules to add / delete module Data from existing structs
- */
-
-struct ModuleData_ {
- char *moduleName; /* Which module we belong to */
- char *key; /* The key */
- char *value; /* The Value */
- ModuleData *next; /* The next ModuleData record */
-};
-
- /*************************************************************************/
-
/* Memo info structures. Since both nicknames and channels can have memos,
* we encapsulate memo data in a MemoList to make it easier to handle. */
@@ -604,7 +589,6 @@ struct memo_ {
time_t time; /* When it was sent */
char sender[NICKMAX];
char *text;
- ModuleData *moduleData; /* Module saved data attached to the Memo */
#ifdef USE_MYSQL
uint32 id; /* Database ID; see mysql.c */
#endif
diff --git a/include/users.h b/include/users.h
index db0d42818..c8fc7e343 100644
--- a/include/users.h
+++ b/include/users.h
@@ -44,8 +44,6 @@ class User : public Extensible
NickAlias *na;
- ModuleData *moduleData; /* defined for it, it should allow the module Add/Get */
-
int isSuperAdmin; /* is SuperAdmin on or off? */
struct u_chanlist *chans; /* Channels user has joined */