1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

broke CHAT_PROTOCOL_REC into struct + typedef.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2770 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-05-10 22:41:22 +00:00 committed by cras
parent d11483db4d
commit 1acc2be4e3
2 changed files with 3 additions and 2 deletions

View File

@ -101,6 +101,7 @@ typedef struct _LINEBUF_REC LINEBUF_REC;
typedef struct _NET_SENDBUF_REC NET_SENDBUF_REC; typedef struct _NET_SENDBUF_REC NET_SENDBUF_REC;
typedef struct _RAWLOG_REC RAWLOG_REC; typedef struct _RAWLOG_REC RAWLOG_REC;
typedef struct _CHAT_PROTOCOL_REC CHAT_PROTOCOL_REC;
typedef struct _CHATNET_REC CHATNET_REC; typedef struct _CHATNET_REC CHATNET_REC;
typedef struct _SERVER_REC SERVER_REC; typedef struct _SERVER_REC SERVER_REC;
typedef struct _WI_ITEM_REC WI_ITEM_REC; typedef struct _WI_ITEM_REC WI_ITEM_REC;

View File

@ -1,7 +1,7 @@
#ifndef __CHAT_PROTOCOLS_H #ifndef __CHAT_PROTOCOLS_H
#define __CHAT_PROTOCOLS_H #define __CHAT_PROTOCOLS_H
typedef struct { struct _CHAT_PROTOCOL_REC {
int id; int id;
unsigned int not_initialized:1; unsigned int not_initialized:1;
@ -20,7 +20,7 @@ typedef struct {
SERVER_REC *(*server_connect) (SERVER_CONNECT_REC *); SERVER_REC *(*server_connect) (SERVER_CONNECT_REC *);
CHANNEL_REC *(*channel_create) (SERVER_REC *, const char *, int); CHANNEL_REC *(*channel_create) (SERVER_REC *, const char *, int);
QUERY_REC *(*query_create) (const char *, const char *, int); QUERY_REC *(*query_create) (const char *, const char *, int);
} CHAT_PROTOCOL_REC; };
extern GSList *chat_protocols; extern GSList *chat_protocols;