Move the definition of the NotifyItem and NotifyList types from struct.h to notify.h

This change means that struct.h no longer needs to include alist.h, so it will be indirectly included in a lot
fewer other files.

As a consequence, server.h needs to include notify.h to get the definitions of those data types.
This commit is contained in:
Kevin Easton
2017-05-04 23:50:47 +10:00
parent 65646f6b71
commit 52b57d1576
3 changed files with 35 additions and 37 deletions

View File

@@ -9,15 +9,15 @@
*
* @(#)$Id$
*/
#ifndef __server_h_
#define __server_h_
#ifndef SERVER_H_
#define SERVER_H_
/* for ChannelList */
#include "who.h"
#include "names.h"
#include "struct.h"
#include "ssl.h"
#include "notify.h"
/*
* type definition to distinguish different
@@ -373,7 +373,6 @@ void password_sendline (char *data, char *line);
int get_server_local_port (int);
struct sockaddr_foobar get_server_local_addr (int);
struct sockaddr_foobar get_server_uh_addr (int);
NotifyItem *get_server_notify_list (int);
void BX_send_msg_to_nicks (ChannelList *, int, char *);
void BX_send_msg_to_channels (int, const char *);
int BX_is_server_queue (void);
@@ -428,4 +427,4 @@ extern const char *umodes;
#define LLOOK_SPLIT 0
#define CHAN_SPLIT 1
#endif /* __server_h_ */
#endif /* SERVER_H_ */