From 2187a6b0efd8211f4bec5e482942d876e65d7643 Mon Sep 17 00:00:00 2001 From: nishi Date: Wed, 21 Feb 2024 13:59:46 +0000 Subject: [PATCH] irc git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@244 d27a3e52-49c5-7645-884c-6793ebffc270 --- Library/IRC.c | 17 +++++++++++++++++ Library/Makefile | 4 ++++ Library/W3IRC.h | 19 +++++++++++++++++++ Library/protocol.mk | 1 + Makefile | 4 ++++ 5 files changed, 45 insertions(+) create mode 100644 Library/IRC.c create mode 100644 Library/W3IRC.h diff --git a/Library/IRC.c b/Library/IRC.c new file mode 100644 index 0000000..1f2f484 --- /dev/null +++ b/Library/IRC.c @@ -0,0 +1,17 @@ +/* $Id$ */ +#include "W3IRC.h" + +#include "W3Core.h" +#include "W3DNS.h" +#include "W3Util.h" + +#include +#include + +#ifndef __MINGW32__ +extern int strcasecmp(const char* s1, const char* s2); +#endif + +void __W3_IRC_Request(struct W3* w3) { + __W3_Debug("LibW3-IRC", "Sending the request"); +} diff --git a/Library/Makefile b/Library/Makefile index 1f00f13..dda6b21 100644 --- a/Library/Makefile +++ b/Library/Makefile @@ -46,6 +46,10 @@ ifneq ($(NNTP),NO) OBJS += ./NNTP.o endif +ifneq ($(IRC),NO) +OBJS += ./IRC.o +endif + ifeq ($(WINDOWS),YES) ./w3.dll: $(OBJS) $(CC) $(LDFLAGS) -fstack-protector -L../openssl/lib/mingw/$(WINARCH) -L . -shared -Wl,--out-implib,./w3.lib -o $@ $^ $(LIBS) diff --git a/Library/W3IRC.h b/Library/W3IRC.h new file mode 100644 index 0000000..2269b9d --- /dev/null +++ b/Library/W3IRC.h @@ -0,0 +1,19 @@ +/* $Id$ */ +#ifndef __W3IRC_H__ +#define __W3IRC_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +#include "W3Core.h" + +void __W3_IRC_Request(struct W3* w3); +void W3_IRC_Send_Request(struct W3* w3); +void W3_IRC_Disconnect(struct W3* w3); + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/Library/protocol.mk b/Library/protocol.mk index 508e2a1..d7ce213 100644 --- a/Library/protocol.mk +++ b/Library/protocol.mk @@ -8,3 +8,4 @@ #NEX=NO #FILE=NO #NNTP=NO +#IRC=NO diff --git a/Makefile b/Makefile index 0c5b104..e2d4562 100644 --- a/Makefile +++ b/Makefile @@ -85,6 +85,10 @@ ifneq ($(FTP),NO) FLAGS += -DFTP_SUPPORT endif +ifneq ($(IRC),NO) +FLAGS += -DIRC_SUPPORT +endif + CFLAGS += $(FLAGS) ifeq ($(WIN32),YES) -- 2.43.0