Forráskód Böngészése

Reduce auth.h header pollution

Bryan Drewery 7 éve
szülő
commit
1ac3feff75
5 módosított fájl, 5 hozzáadás és 3 törlés
  1. 1 0
      src/chanprog.cc
  2. 1 1
      src/core_binds.h
  3. 0 1
      src/dccutil.h
  4. 2 1
      src/mod/irc.mod/irc.h
  5. 1 0
      src/userrec.cc

+ 1 - 0
src/chanprog.cc

@@ -32,6 +32,7 @@
 #include "common.h"
 #include "chanprog.h"
 #include "settings.h"
+#include "auth.h"
 #include "src/mod/irc.mod/irc.h"
 #include "src/mod/channels.mod/channels.h"
 #include "src/mod/server.mod/server.h"

+ 1 - 1
src/core_binds.h

@@ -1,7 +1,7 @@
 #ifndef _CORE_BINDS_H_
 #define _CORE_BINDS_H_
 
-#include "auth.h"
+class Auth;
 
 void core_binds_init();
 void check_bind_time(struct tm *tm);

+ 0 - 1
src/dccutil.h

@@ -3,7 +3,6 @@
 
 #include "common.h"
 #include "dcc.h"
-#include "auth.h"
 
 /* Public structure for the listening port map */
 struct portmap {

+ 2 - 1
src/mod/irc.mod/irc.h

@@ -6,7 +6,6 @@
 #ifndef _EGG_MOD_IRC_IRC_H
 #define _EGG_MOD_IRC_IRC_H
 
-#include "src/auth.h"
 #include "src/chanprog.h"
 
 enum { BC_NOCOOKIE = 1, BC_SLACK, BC_HASH, BC_COUNTER };
@@ -18,6 +17,8 @@ enum { BC_NOCOOKIE = 1, BC_SLACK, BC_HASH, BC_COUNTER };
 #define NORMAL          0
 #define QUICK           1
 
+class Auth;
+
 #ifdef MAKING_IRC
 
 namespace bd {

+ 1 - 0
src/userrec.cc

@@ -29,6 +29,7 @@
 
 #include <sys/stat.h>
 #include "common.h"
+#include "auth.h"
 #include "userrec.h"
 #include "misc.h"
 #include "misc_file.h"