summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-10-22 22:15:55 -0400
committerJune McEnroe <june@causal.agency>2019-10-22 22:15:55 -0400
commit31d09e34fa1507833b98122b54bb929b956dcdd7 (patch)
treece90e7ce561c57ae0a9c34aa3fa2f3cc7e90afc0
parentRemove pollfd from listen interface (diff)
downloadpounce-31d09e34fa1507833b98122b54bb929b956dcdd7.tar.gz
pounce-31d09e34fa1507833b98122b54bb929b956dcdd7.zip
Rename bouncer to bounce
-rw-r--r--Makefile4
-rw-r--r--bounce.c (renamed from bouncer.c)2
-rw-r--r--bounce.h (renamed from bouncer.h)2
-rw-r--r--listen.c2
4 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index c974242..80b5261 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ LDLIBS = -ltls
 
 -include config.mk
 
-OBJS += bouncer.o
+OBJS += bounce.o
 OBJS += listen.o
 
 all: tags linger
@@ -15,7 +15,7 @@ all: tags linger
 linger: ${OBJS}
 	${CC} ${LDFLAGS} ${OBJS} ${LDLIBS} -o $@
 
-${OBJS}: bouncer.h
+${OBJS}: bounce.h
 
 tags: *.c *.h
 	ctags -w *.c *.h
diff --git a/bouncer.c b/bounce.c
index 0d1d551..b3d8b33 100644
--- a/bouncer.c
+++ b/bounce.c
@@ -24,7 +24,7 @@
 #include <tls.h>
 #include <unistd.h>
 
-#include "bouncer.h"
+#include "bounce.h"
 
 static char *censor(char *arg) {
 	char *dup = strdup(arg);
diff --git a/bouncer.h b/bounce.h
index 13656ad..e731ac0 100644
--- a/bouncer.h
+++ b/bounce.h
@@ -28,3 +28,5 @@
 void listenConfig(const char *cert, const char *priv);
 size_t listenBind(int fds[], size_t cap, const char *host, const char *port);
 int listenAccept(struct tls **client, int fd);
+
+int serverConnect(const char *host, const char *port);
diff --git a/listen.c b/listen.c
index cb6b164..d758b9d 100644
--- a/listen.c
+++ b/listen.c
@@ -23,7 +23,7 @@
 #include <tls.h>
 #include <unistd.h>
 
-#include "bouncer.h"
+#include "bounce.h"
 
 static struct tls *server;
 
catgirl/commit/ui.c?h=1.9a&id=d71d0409951203d333a354c991073d18f98b8fd1&follow=1'>Rewrite line editing again, add formattingJune McEnroe 2018-08-06Fix allocation size in vaswprintfJune McEnroe 2018-08-06Implement word wrappingJune McEnroe 2018-08-06Use wchar_t strings for all of UIJune McEnroe 2018-08-06Rename line editing functionsJune McEnroe 2018-08-05Initialize all possible color pairsJune McEnroe 2018-08-05Refactor color initializationJune McEnroe 2018-08-05Add ^L redrawJune McEnroe 2018-08-05Use 16 colors if availableJune McEnroe 2018-08-05Limit parsed colors to number of mIRC colorsJune McEnroe 2018-08-04Show source link on exitJune McEnroe 2018-08-04Implement line editing, scrollingJune McEnroe 2018-08-04Handle /topicJune McEnroe