]> diplodocus.org Git - nmh/commitdiff
client.c: Move interface to own file.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 11 Nov 2017 17:30:37 +0000 (17:30 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 12:25:32 +0000 (12:25 +0000)
Makefile.am
h/prototypes.h
mts/smtp/smtp.c
sbr/client.c
sbr/client.h [new file with mode: 0644]
uip/imaptest.c
uip/popsbr.c

index fc3561b..3d1353b 100644 (file)
@@ -368,6 +368,7 @@ noinst_HEADERS = \
     sbr/base64.h \
     sbr/brkstring.h \
     sbr/check_charset.h \
+    sbr/client.h \
     sbr/closefds.h \
     sbr/context_del.h \
     sbr/context_find.h \
index 07aebef..5f8f8e0 100644 (file)
@@ -15,7 +15,6 @@ char *etcpath(char *) NONNULL(1);
 
 struct msgs_array;
 
-int client(char *, char *, char *, int, int);
 char *concat (const char *, ...) ENDNULL;
 int decode_rfc2047 (char *, char *, size_t);
 
index 0887e1c..15b2f20 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/client.h"
 #include "sbr/error.h"
 #include "smtp.h"
 #include "h/mts.h"
index a90d4e0..572f8ee 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "client.h"
 #include "h/mts.h"
 #include "h/utils.h"
 #include <sys/socket.h>
diff --git a/sbr/client.h b/sbr/client.h
new file mode 100644 (file)
index 0000000..e339cc9
--- /dev/null
@@ -0,0 +1,7 @@
+/* client.h -- connect to a server
+ *
+ * This code is Copyright (c) 2017, by the authors of nmh.  See the
+ * COPYRIGHT file in the root directory of the nmh distribution for
+ * complete copyright information. */
+
+int client(char *, char *, char *, int, int);
index 7a119cd..a135938 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/client.h"
 #include "sbr/getcpy.h"
 #include "sbr/brkstring.h"
 #include "sbr/ambigsw.h"
index b3c85d3..c17d999 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/client.h"
 #include "sbr/error.h"
 #include "h/utils.h"
 #include "h/oauth.h"