From 86f5602d1f92579ea38047029ab471f58d396203 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Sat, 11 Nov 2017 00:05:31 +0000 Subject: [PATCH] folder_delmsgs.c: Move interface to own file. --- Makefile.am | 1 + h/prototypes.h | 1 - sbr/folder_delmsgs.c | 1 + sbr/folder_delmsgs.h | 7 +++++++ uip/refile.c | 1 + uip/rmm.c | 1 + 6 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 sbr/folder_delmsgs.h diff --git a/Makefile.am b/Makefile.am index 11dd74a9..5af20bfe 100644 --- a/Makefile.am +++ b/Makefile.am @@ -376,6 +376,7 @@ noinst_HEADERS = \ sbr/ctype-checked.h \ sbr/error.h \ sbr/folder_addmsg.h \ + sbr/folder_delmsgs.h \ sbr/lock_file.h \ sbr/m_maildir.h \ sbr/m_mktemp.h \ diff --git a/h/prototypes.h b/h/prototypes.h index f4260b53..7a6441ab 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -74,7 +74,6 @@ void escape_display_name (char *, size_t); void escape_local_part (char *, size_t); int ext_hook(char *, char *, char *); int fdcompare (int, int); -int folder_delmsgs (struct msgs *, int, int); void folder_free (struct msgs *); int folder_pack (struct msgs **, int); diff --git a/sbr/folder_delmsgs.c b/sbr/folder_delmsgs.c index 53c6b518..a33adf60 100644 --- a/sbr/folder_delmsgs.c +++ b/sbr/folder_delmsgs.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "folder_delmsgs.h" #include "context_save.h" #include "arglist.h" #include "error.h" diff --git a/sbr/folder_delmsgs.h b/sbr/folder_delmsgs.h new file mode 100644 index 00000000..9c0418a8 --- /dev/null +++ b/sbr/folder_delmsgs.h @@ -0,0 +1,7 @@ +/* folder_delmsgs.h -- "remove" SELECTED messages from a folder + * + * 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 folder_delmsgs(struct msgs *, int, int); diff --git a/uip/refile.c b/uip/refile.c index 28d7ab1f..488db7fe 100644 --- a/uip/refile.c +++ b/uip/refile.c @@ -7,6 +7,7 @@ */ #include "h/mh.h" +#include "sbr/folder_delmsgs.h" #include "sbr/folder_addmsg.h" #include "sbr/context_save.h" #include "sbr/context_replace.h" diff --git a/uip/rmm.c b/uip/rmm.c index 334939c1..f238daee 100644 --- a/uip/rmm.c +++ b/uip/rmm.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/folder_delmsgs.h" #include "sbr/context_replace.h" #include "sbr/context_find.h" #include "sbr/ambigsw.h" -- 2.56.0