]> 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 439de599e933dbdd65e9f33e2c76b20908c0f387..a351a3a96689978d8a53a68e8c5672076ad48eb7 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 ef7cc234df3087162a5c21b0ea9b0794a37da4d6..a91b620e7fa0c9cdbb956190699cf4700dd80187 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 106114f829b02ada5e341fb5a13aee91d2ea2a4b..ede098f09fd4dbb288a6d46811a3c49c74abf6e0 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 f78df87c96cb79836d3342a032e6fd86da727d76..8666f6ae1c2b85507127d4a97a8aeab73866befa 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 a33adf603eda621465c3ab490b6cb8a89b52e816..96111a63d622171f70dec3a37ccadc8c95f3b92d 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 f2a40a601eb81586f6b61096d5198b25533d1f1a..0b48dbe9e908e8428f475db66bd2f71f02b99c47 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 cfb3aba39247037d3f8b7923bc172019f7705f6b..cee84490bfad8b0cdf7d20a1263aac2050519d41 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 ea1b43120dd0867013ac62d7a2dcc4a8fe408549..107e87393566c5ba5b88ec1cdf29f1a7fdd538e1 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 95328881421fd3aba988a9361d1a0602db358c33..1d2930b0208c3163cbb7024053ac0afa14405c03 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 438a81ba341f3162b39bda7ff13d4f058ff0bbea..5505b82ff33c1c1e667585bb4567e234a90a5215 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"