server: support readline history / persistence

When using readline, remember the last 50 commands; persist.
This commit is contained in:
Dirk-Jan C. Binnema
2020-02-21 01:13:29 +02:00
parent 20ce7b7066
commit 8d6d151090
3 changed files with 72 additions and 22 deletions

View File

@ -47,6 +47,7 @@ void mu_runtime_uninit (void);
typedef enum {
MU_RUNTIME_PATH_XAPIANDB, /* mu xapian db path */
MU_RUNTIME_PATH_BOOKMARKS, /* mu bookmarks file path */
MU_RUNTIME_PATH_CACHE, /* mu cache path for attachments etc. */
MU_RUNTIME_PATH_MIMECACHE, /* mu cache path for attachments etc. */
MU_RUNTIME_PATH_LOGDIR, /* mu path for log files */
@ -59,7 +60,7 @@ typedef enum {
* @return ma string which should be not be modified/freed, or NULL in
* case of error.
*/
const char* mu_runtime_path (MuRuntimePath path);
const char* mu_runtime_path (MuRuntimePath path);
G_END_DECLS