aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/ILexer.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-10-26 16:54:05 +1100
committernyamatongwe <devnull@localhost>2011-10-26 16:54:05 +1100
commitb0c6298f1a5b7a1b16a20ccd577f6e2318ae95ad (patch)
treeccffc12c65a182ec59140f049c1d0e9faace2152 /include/ILexer.h
parent576adef9a5df55d74e2730dc3ffb5db9f0a0a3f2 (diff)
downloadscintilla-mirror-b0c6298f1a5b7a1b16a20ccd577f6e2318ae95ad.tar.gz
Implement ILoader interface so that clients can load documents from
background threads.
Diffstat (limited to 'include/ILexer.h')
-rw-r--r--include/ILexer.h8
1 files changed, 8 insertions, 0 deletions
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