From 364b60217e9f79fb634e987302df94035c61558f Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 26 Oct 2011 16:54:05 +1100 Subject: Implement ILoader interface so that clients can load documents from background threads. --- include/ILexer.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/ILexer.h') diff --git a/include/ILexer.h b/include/ILexer.h index b119ff649..e08b8701c 100644 --- a/include/ILexer.h +++ b/include/ILexer.h @@ -62,6 +62,14 @@ public: virtual void * SCI_METHOD PrivateCall(int operation, void *pointer) = 0; }; +class ILoader { +public: + virtual int SCI_METHOD Release() = 0; + // Returns a status code from SC_STATUS_* + virtual int SCI_METHOD AddData(char *data, int length) = 0; + virtual void * SCI_METHOD ConvertToDocument() = 0; +}; + #ifdef SCI_NAMESPACE } #endif -- cgit v1.2.3