https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e624be1eb23b85f25e934…
commit e624be1eb23b85f25e93489ac8ccaf5706e6e691
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Sat Feb 29 19:57:50 2020 +0100
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Mon Mar 2 01:08:39 2020 +0100
[CONSRV] Tidy up lineinput.c by moving the History* helper prototypes to a suitable
header file.
---
win32ss/user/winsrv/consrv/history.h | 26 ++++++++++++++++++++++++++
win32ss/user/winsrv/consrv/lineinput.c | 24 +-----------------------
2 files changed, 27 insertions(+), 23 deletions(-)
diff --git a/win32ss/user/winsrv/consrv/history.h b/win32ss/user/winsrv/consrv/history.h
index c3ee78a4a7e..b9615bb92d9 100644
--- a/win32ss/user/winsrv/consrv/history.h
+++ b/win32ss/user/winsrv/consrv/history.h
@@ -8,6 +8,32 @@
#pragma once
+VOID
+HistoryAddEntry(PCONSRV_CONSOLE Console,
+ PUNICODE_STRING ExeName,
+ PUNICODE_STRING Entry);
+
+BOOL
+HistoryFindEntryByPrefix(PCONSRV_CONSOLE Console,
+ PUNICODE_STRING ExeName,
+ PUNICODE_STRING Prefix,
+ PUNICODE_STRING Entry);
+
+VOID
+HistoryGetCurrentEntry(PCONSRV_CONSOLE Console,
+ PUNICODE_STRING ExeName,
+ PUNICODE_STRING Entry);
+
+BOOL
+HistoryRecallHistory(PCONSRV_CONSOLE Console,
+ PUNICODE_STRING ExeName,
+ INT Offset,
+ PUNICODE_STRING Entry);
+
+VOID
+HistoryDeleteCurrentBuffer(PCONSRV_CONSOLE Console,
+ PUNICODE_STRING ExeName);
+
VOID HistoryDeleteBuffers(PCONSRV_CONSOLE Console);
VOID
diff --git a/win32ss/user/winsrv/consrv/lineinput.c
b/win32ss/user/winsrv/consrv/lineinput.c
index 32d799531f6..5d92d59ac49 100644
--- a/win32ss/user/winsrv/consrv/lineinput.c
+++ b/win32ss/user/winsrv/consrv/lineinput.c
@@ -9,6 +9,7 @@
/* INCLUDES *******************************************************************/
#include "consrv.h"
+#include "history.h"
#include "popup.h"
#define NDEBUG
@@ -31,29 +32,6 @@ ConvertInputUnicodeToAnsi(PCONSRV_CONSOLE Console,
/*P*/USHORT TargetLength);
-VOID
-HistoryAddEntry(PCONSRV_CONSOLE Console,
- PUNICODE_STRING ExeName,
- PUNICODE_STRING Entry);
-BOOL
-HistoryRecallHistory(PCONSRV_CONSOLE Console,
- PUNICODE_STRING ExeName,
- INT Offset,
- PUNICODE_STRING Entry);
-VOID
-HistoryGetCurrentEntry(PCONSRV_CONSOLE Console,
- PUNICODE_STRING ExeName,
- PUNICODE_STRING Entry);
-VOID
-HistoryDeleteCurrentBuffer(PCONSRV_CONSOLE Console,
- PUNICODE_STRING ExeName);
-BOOL
-HistoryFindEntryByPrefix(PCONSRV_CONSOLE Console,
- PUNICODE_STRING ExeName,
- PUNICODE_STRING Prefix,
- PUNICODE_STRING Entry);
-
-
/* PRIVATE FUNCTIONS **********************************************************/
static VOID