1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-07 07:23:13 +02:00

Get rid of proto.h and integrate the 20 lines into h.h.

This commit is contained in:
Bram Matthys
2021-09-11 10:26:18 +02:00
parent 5dc6411419
commit 39edbd643d
10 changed files with 27 additions and 76 deletions
+20
View File
@@ -1122,3 +1122,23 @@ extern void download_file_async(const char *url, time_t cachetime, vFP callback,
extern void url_init(void);
extern EVENT(url_socket_timeout);
/* end of url stuff */
extern char *collapse(char *pattern);
extern void clear_scache_hash_table(void);
extern void sendto_one(Client *, MessageTag *mtags, FORMAT_STRING(const char *), ...) __attribute__((format(printf,3,4)));
extern void sendto_realops(FORMAT_STRING(const char *pattern), ...) __attribute__((format(printf,1,2)));
extern EVENT(garbage_collect);
extern EVENT(loop_event);
extern EVENT(check_pings);
extern EVENT(handshake_timeout);
extern EVENT(check_deadsockets);
extern EVENT(try_connections);
extern const char *my_itoa(int i);
extern void load_tunefile(void);
extern EVENT(save_tunefile);
extern void read_motd(const char *filename, MOTDFile *motd);
extern int target_limit_exceeded(Client *client, void *target, const char *name);
extern void make_umodestr(void);
extern const char *get_usermode_string(Client *acptr);
extern void initwhowas(void);
extern void uid_init(void);
extern const char *uid_get(void);
-68
View File
@@ -1,68 +0,0 @@
/************************************************************************
* Unreal Internet Relay Chat Daemon, include/proto.h
* (C) Dominick Meglio <codemastr@unrealircd.com> 2000
*
* See file AUTHORS in IRC package for additional names of
* the programmers.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 1, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef proto_h
#define proto_h
/* lusers.c */
extern void init_irccounts(void);
/* match.c */
extern char *collapse(char *pattern);
/* scache.c */
extern void clear_scache_hash_table(void);
/* send.c */
extern void sendto_one(Client *, MessageTag *mtags, FORMAT_STRING(const char *), ...) __attribute__((format(printf,3,4)));
extern void sendto_realops(FORMAT_STRING(const char *pattern), ...) __attribute__((format(printf,1,2)));
/* ircd.c */
extern EVENT(garbage_collect);
extern EVENT(loop_event);
extern EVENT(check_pings);
extern EVENT(handshake_timeout);
extern EVENT(check_deadsockets);
extern EVENT(try_connections);
/* support.c */
extern const char *my_itoa(int i);
/* s_serv.c */
extern void load_tunefile(void);
extern EVENT(save_tunefile);
extern void read_motd(const char *filename, MOTDFile *motd);
/* s_user.c */
extern int target_limit_exceeded(Client *client, void *target, const char *name);
extern void make_umodestr(void);
extern const char *get_usermode_string(Client *acptr);
/* s_misc.c */
extern char *convert_time(time_t ltime);
/* whowas.c */
extern void initwhowas(void);
/* uid.c */
extern void uid_init(void);
extern const char *uid_get(void);
#endif /* proto_h */
-1
View File
@@ -10,7 +10,6 @@
#include "numeric.h"
#include "msg.h"
#include "mempool.h"
#include "proto.h"
#include "channel.h"
#include <time.h>
#include <sys/stat.h>
+1 -1
View File
@@ -48,7 +48,7 @@ INCLUDES = ../include/channel.h \
../include/ircsprintf.h \
../include/license.h \
../include/modules.h ../include/modversion.h ../include/msg.h \
../include/numeric.h ../include/proto.h \
../include/numeric.h \
../include/resource.h ../include/setup.h \
../include/struct.h ../include/sys.h \
../include/types.h \
+1 -1
View File
@@ -28,7 +28,7 @@ INCLUDES = ../include/channel.h \
../include/ircsprintf.h \
../include/license.h \
../include/modules.h ../include/modversion.h ../include/msg.h \
../include/numeric.h ../include/proto.h ../include/dns.h \
../include/numeric.h ../include/dns.h \
../include/resource.h ../include/setup.h \
../include/struct.h ../include/sys.h \
../include/types.h \
+1 -1
View File
@@ -25,7 +25,7 @@ INCLUDES = ../../include/channel.h \
../../include/ircsprintf.h \
../../include/license.h \
../../include/modules.h ../../include/modversion.h ../../include/msg.h \
../../include/numeric.h ../../include/proto.h ../../include/dns.h \
../../include/numeric.h ../../include/dns.h \
../../include/resource.h ../../include/setup.h \
../../include/struct.h ../../include/sys.h \
../../include/types.h \
+1 -1
View File
@@ -25,7 +25,7 @@ INCLUDES = ../../include/channel.h \
../../include/ircsprintf.h \
../../include/license.h \
../../include/modules.h ../../include/modversion.h ../../include/msg.h \
../../include/numeric.h ../../include/proto.h ../../include/dns.h \
../../include/numeric.h ../../include/dns.h \
../../include/resource.h ../../include/setup.h \
../../include/struct.h ../../include/sys.h \
../../include/types.h \
+1 -1
View File
@@ -25,7 +25,7 @@ INCLUDES = ../../include/channel.h \
../../include/ircsprintf.h \
../../include/license.h \
../../include/modules.h ../../include/modversion.h ../../include/msg.h \
../../include/numeric.h ../../include/proto.h ../../include/dns.h \
../../include/numeric.h ../../include/dns.h \
../../include/resource.h ../../include/setup.h \
../../include/struct.h ../../include/sys.h \
../../include/types.h \
+1 -1
View File
@@ -25,7 +25,7 @@ INCLUDES = ../../include/channel.h \
../../include/ircsprintf.h \
../../include/license.h \
../../include/modules.h ../../include/modversion.h ../../include/msg.h \
../../include/numeric.h ../../include/proto.h ../../include/dns.h \
../../include/numeric.h ../../include/dns.h \
../../include/resource.h ../../include/setup.h \
../../include/struct.h ../../include/sys.h \
../../include/types.h \
+1 -1
View File
@@ -25,7 +25,7 @@ INCLUDES = ../../include/channel.h \
../../include/ircsprintf.h \
../../include/license.h \
../../include/modules.h ../../include/modversion.h ../../include/msg.h \
../../include/numeric.h ../../include/proto.h ../../include/dns.h \
../../include/numeric.h ../../include/dns.h \
../../include/resource.h ../../include/setup.h \
../../include/struct.h ../../include/sys.h \
../../include/types.h \