From: Ralph Corderoy Date: Sat, 11 Nov 2017 14:25:37 +0000 (+0000) Subject: ext_hook.c: Move interface to own file. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/dc5e5d68dc67a7313d1821605e5a0c13aed1b192?hp=0b7286788a95dd854d1826b8493eda431d8e8aac ext_hook.c: Move interface to own file. --- diff --git a/Makefile.am b/Makefile.am index 439de599..a351a3a9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ diff --git a/h/prototypes.h b/h/prototypes.h index ef7cc234..a91b620e 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -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 diff --git a/sbr/ext_hook.c b/sbr/ext_hook.c index 106114f8..ede098f0 100644 --- a/sbr/ext_hook.c +++ b/sbr/ext_hook.c @@ -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 index 00000000..ecd6b206 --- /dev/null +++ b/sbr/ext_hook.h @@ -0,0 +1,3 @@ +/* Run a program that hooks into some other system. */ + +int ext_hook(char *, char *, char *); diff --git a/sbr/folder_addmsg.c b/sbr/folder_addmsg.c index f78df87c..8666f6ae 100644 --- a/sbr/folder_addmsg.c +++ b/sbr/folder_addmsg.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "ext_hook.h" #include "folder_realloc.h" #include "folder_addmsg.h" #include "error.h" diff --git a/sbr/folder_delmsgs.c b/sbr/folder_delmsgs.c index a33adf60..96111a63 100644 --- a/sbr/folder_delmsgs.c +++ b/sbr/folder_delmsgs.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "ext_hook.h" #include "folder_delmsgs.h" #include "context_save.h" #include "arglist.h" diff --git a/sbr/folder_pack.c b/sbr/folder_pack.c index f2a40a60..0b48dbe9 100644 --- a/sbr/folder_pack.c +++ b/sbr/folder_pack.c @@ -7,6 +7,7 @@ */ #include "h/mh.h" +#include "ext_hook.h" #include "folder_realloc.h" #include "folder_pack.h" #include "error.h" diff --git a/uip/burst.c b/uip/burst.c index cfb3aba3..cee84490 100644 --- a/uip/burst.c +++ b/uip/burst.c @@ -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" diff --git a/uip/inc.c b/uip/inc.c index ea1b4312..107e8739 100644 --- 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" diff --git a/uip/rmf.c b/uip/rmf.c index 95328881..1d2930b0 100644 --- 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" diff --git a/uip/sortm.c b/uip/sortm.c index 438a81ba..5505b82f 100644 --- a/uip/sortm.c +++ b/uip/sortm.c @@ -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"