/[svn]/ircd-hybrid/trunk/include/conf_db.h
ViewVC logotype

Diff of /ircd-hybrid/trunk/include/conf_db.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1621 by michael, Wed Oct 31 23:11:40 2012 UTC revision 1622 by michael, Thu Nov 1 13:16:37 2012 UTC
# Line 64  extern int write_ptr(const void *, struc Line 64  extern int write_ptr(const void *, struc
64  extern int read_string(char **, struct dbFILE *);  extern int read_string(char **, struct dbFILE *);
65  extern int write_string(const char *, struct dbFILE *);  extern int write_string(const char *, struct dbFILE *);
66    
67    extern void load_kline_database(void);
68    extern void save_kline_database(void);
69    extern void load_dline_database(void);
70    extern void save_dline_database(void);
71    extern void load_gline_database(void);
72    extern void save_gline_database(void);
73    extern void load_xline_database(void);
74    extern void save_xline_database(void);
75    extern void load_resv_database(void);
76    extern void save_resv_database(void);
77    
78    
79  #define read_buffer(buf,f)      (read_db((f),(buf),sizeof(buf)) == sizeof(buf))  #define read_buffer(buf,f)      (read_db((f),(buf),sizeof(buf)) == sizeof(buf))
80  #define write_buffer(buf,f)     (write_db((f),(buf),sizeof(buf)) == sizeof(buf))  #define write_buffer(buf,f)     (write_db((f),(buf),sizeof(buf)) == sizeof(buf))
# Line 71  extern int write_string(const char *, st Line 82  extern int write_string(const char *, st
82  #define write_buflen(buf,len,f) (write_db((f),(buf),(len)) == (len))  #define write_buflen(buf,len,f) (write_db((f),(buf),(len)) == (len))
83  #define read_variable(var,f)    (read_db((f),&(var),sizeof(var)) == sizeof(var))  #define read_variable(var,f)    (read_db((f),&(var),sizeof(var)) == sizeof(var))
84  #define write_variable(var,f)   (write_db((f),&(var),sizeof(var)) == sizeof(var))  #define write_variable(var,f)   (write_db((f),&(var),sizeof(var)) == sizeof(var))
85    
86    #define KLINE_DB_VERSION 1
87    
88    
89  #endif  #endif

Legend:
Removed from v.1621  
changed lines
  Added in v.1622

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28