]> diplodocus.org Git - nmh/commitdiff
ext_hook.c: Move interface to own file.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 11 Nov 2017 14:25:37 +0000 (14:25 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 12:25:29 +0000 (12:25 +0000)
Makefile.am
h/prototypes.h
sbr/ext_hook.c
sbr/ext_hook.h [new file with mode: 0644]
sbr/folder_addmsg.c
sbr/folder_delmsgs.c
sbr/folder_pack.c
uip/burst.c
uip/inc.c
uip/rmf.c
uip/sortm.c

index 439de59..a351a3a 100644 (file)
@@ -375,6 +375,7 @@ noinst_HEADERS = \
     sbr/context_save.h \
     sbr/ctype-checked.h \
     sbr/error.h \
+    sbr/ext_hook.h \
     sbr/fdcompare.h \
     sbr/folder_addmsg.h \
     sbr/folder_delmsgs.h \
index ef7cc23..a91b620 100644 (file)
@@ -72,7 +72,6 @@ int encode_rfc2047(const char *name, char **value, int encoding,
 
 void escape_display_name (char *, size_t);
 void escape_local_part (char *, size_t);
-int ext_hook(char *, char *, char *);
 
 /*
  * Print null-terminated PROMPT to and flush standard output.  Read answers from
index 106114f..ede098f 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include "h/mh.h"
+#include "ext_hook.h"
 #include "context_find.h"
 #include "pidstatus.h"
 #include "arglist.h"
diff --git a/sbr/ext_hook.h b/sbr/ext_hook.h
new file mode 100644 (file)
index 0000000..ecd6b20
--- /dev/null
@@ -0,0 +1,3 @@
+/* Run a program that hooks into some other system. */
+
+int ext_hook(char *, char *, char *);
index f78df87..8666f6a 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "ext_hook.h"
 #include "folder_realloc.h"
 #include "folder_addmsg.h"
 #include "error.h"
index a33adf6..96111a6 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "ext_hook.h"
 #include "folder_delmsgs.h"
 #include "context_save.h"
 #include "arglist.h"
index f2a40a6..0b48dbe 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include "h/mh.h"
+#include "ext_hook.h"
 #include "folder_realloc.h"
 #include "folder_pack.h"
 #include "error.h"
index cfb3aba..cee8449 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/ext_hook.h"
 #include "sbr/folder_read.h"
 #include "sbr/folder_realloc.h"
 #include "sbr/folder_free.h"
index ea1b431..107e873 100644 (file)
--- a/uip/inc.c
+++ b/uip/inc.c
@@ -31,6 +31,7 @@
 #endif
 
 #include "h/mh.h"
+#include "sbr/ext_hook.h"
 #include "sbr/folder_read.h"
 #include "sbr/folder_realloc.h"
 #include "sbr/folder_free.h"
index 9532888..1d2930b 100644 (file)
--- a/uip/rmf.c
+++ b/uip/rmf.c
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/ext_hook.h"
 #include "sbr/context_save.h"
 #include "sbr/context_replace.h"
 #include "sbr/context_del.h"
index 438a81b..5505b82 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/ext_hook.h"
 #include "sbr/folder_read.h"
 #include "sbr/folder_free.h"
 #include "sbr/context_save.h"