]> Nishi Git Mirror - libw3.git/commitdiff
irc
authornishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Wed, 21 Feb 2024 13:59:46 +0000 (13:59 +0000)
committernishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Wed, 21 Feb 2024 13:59:46 +0000 (13:59 +0000)
git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@244 d27a3e52-49c5-7645-884c-6793ebffc270

Library/IRC.c [new file with mode: 0644]
Library/Makefile
Library/W3IRC.h [new file with mode: 0644]
Library/protocol.mk
Makefile

diff --git a/Library/IRC.c b/Library/IRC.c
new file mode 100644 (file)
index 0000000..1f2f484
--- /dev/null
@@ -0,0 +1,17 @@
+/* $Id$ */
+#include "W3IRC.h"
+
+#include "W3Core.h"
+#include "W3DNS.h"
+#include "W3Util.h"
+
+#include <stdlib.h>
+#include <string.h>
+
+#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");
+}
index 1f00f1371b40270b3ed8ad804093a1889403cce3..dda6b217e0594b62092833870b8debcd549f65f4 100644 (file)
@@ -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 (file)
index 0000000..2269b9d
--- /dev/null
@@ -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
index 508e2a10fcfb0f954d4e89236fb9019f8481a456..d7ce21368d001f3c32595d9145926517804ad176 100644 (file)
@@ -8,3 +8,4 @@
 #NEX=NO
 #FILE=NO
 #NNTP=NO
+#IRC=NO
index 0c5b10468a9e303813bfe17352f2a053a9930544..e2d4562fd4a4f080360f119b983ae2a4286baa7f 100644 (file)
--- 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)