]> 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 fc3561b1ba78fc1d136e085118309247a897c54d..3d1353b4e0ad024758d0bae9b63f8bf76721e927 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 07aebef193d4c2bfa80eece0762cddf5279b730f..5f8f8e0dfdf0b50b74c21b9024fddabf1f9c65d6 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 0887e1cd99891f1cc0e24acea2dcf4701788eedc..15b2f20c7fcc8cb9f862b75dd69e3def4cfe13d6 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 a90d4e01b9d64859f134f83eff73eb22aa9110fb..572f8ee0adecf046c00ce3b52f64038c1fc98c5e 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 7a119cd47169ac7f3f1d5a927efd8e8c0fcc8f83..a13593862d96b3fd01a09dcdff3b05e178e060bc 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 b3c85d392b639c3bdb83e812e0530e611edca26c..c17d9993345b7488c1e715ea3bb1d21c98172e9d 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"