diff options
Diffstat (limited to 'kxsldbg/kxsldbgpart/libxsldbg/xsldbgthread.h')
-rw-r--r-- | kxsldbg/kxsldbgpart/libxsldbg/xsldbgthread.h | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/kxsldbg/kxsldbgpart/libxsldbg/xsldbgthread.h b/kxsldbg/kxsldbgpart/libxsldbg/xsldbgthread.h new file mode 100644 index 00000000..d83e71f3 --- /dev/null +++ b/kxsldbg/kxsldbgpart/libxsldbg/xsldbgthread.h @@ -0,0 +1,90 @@ + +/*************************************************************************** + xsldbgthread.h - description + ------------------- + begin : Thu Dec 20 2001 + copyright : (C) 2001 by Keith Isdale + email : k_isdale@tpg.com.au + ***************************************************************************/ + +/*************************************************************************** + * * + * 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. * + * * + ***************************************************************************/ + +#ifndef XSLDBGTHREAD_H +#define XSLDBGTHREAD_H + +#if defined WIN32 +#include <libxsldbg/xsldbgwin32config.h> +#endif + + +#ifndef BUILD_DOCS +#include <libxml/xmlmemory.h> +#include <libxml/tree.h> + +#include "xsldbgmsg.h" +#endif + +#ifdef __cplusplus +extern "C" { +#endif + + + int getAppReady(void); + + void setAppReady(int ready); + + int getInputStatus(void); + + void setInputStatus(XsldbgMessageEnum type); + + int getThreadStatus(void); + + void setThreadStatus(XsldbgMessageEnum type); + + void *xsldbgThreadMain(void *data); + + int xsldbgMain(int argc, char **argv); + + int xsldbgThreadInit(void); + + void xsldbgThreadFree(void); + + /* thread has died so cleanup after it */ + void xsldbgThreadCleanup(void); + void xsldbgSetThreadCleanupFunc(void (*cleanupFunc)(void)); + + const char *getFakeInput(void); + + int fakeInput(const char *text); + + /* Is input ready yet */ + int getInputReady(void); + + /* set/clear flag that indicates if input is ready */ + void setInputReady(int value); + + xmlChar *xslDbgShellReadline(xmlChar * prompt); + + + + /* This is implemented by xsldbg.c */ + +/** + * xsldbgFree: + * + * Free memory used by xsldbg + */ + void xsldbgFree(void); + + +#ifdef __cplusplus +} +#endif +#endif |