summaryrefslogtreecommitdiffstats
path: root/background.h
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2020-01-28 15:51:57 -0800
committerKevin McCarthy <kevin@8t8.us>2020-02-29 19:15:09 -0800
commit4af5c934cdcff0366580f96e7bc7ac1f41721a97 (patch)
treebfc25b0a99da8d6161f319effece7298f067d8ed /background.h
parent9defa202e35a2445405170255c95d3682ae5b065 (diff)
Enable backgrounding a single <mail> function.
Backgrounding exits to the index menu. Re-invoking <mail> will resume the backgrounded session, if one exists, otherwise start a new session. This is just to get basic support going. Multiple background edits, a landing page, a background compose menu list will be added next.
Diffstat (limited to 'background.h')
-rw-r--r--background.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/background.h b/background.h
new file mode 100644
index 00000000..afdde808
--- /dev/null
+++ b/background.h
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 2020 Kevin J. McCarthy <kevin@8t8.us>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+#ifndef _BACKGROUND_H
+#define _BACKGROUND_H 1
+
+WHERE SEND_CONTEXT *BackgroundProcess;
+
+int mutt_background_edit_file (SEND_CONTEXT *sctx, const char *editor,
+ const char *filename);
+
+#endif