diff options
author | dscho <dscho> | 2009-03-08 18:33:08 +0000 |
---|---|---|
committer | dscho <dscho> | 2009-03-08 18:33:08 +0000 |
commit | ebe79c28c30ad328dcff88b95e7863e885af36f9 (patch) | |
tree | 2766085f80235a27b070a8e5eba9cc4dcdbed393 /client_examples/scrap.h | |
parent | e7152a7f68063a86887a9059728ca26b5404ce51 (diff) | |
download | libtdevnc-ebe79c28c30ad328dcff88b95e7863e885af36f9.tar.gz libtdevnc-ebe79c28c30ad328dcff88b95e7863e885af36f9.zip |
Clipboard support for SDLvncviewer
The clipboard support has only been tested on Linux so far.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 'client_examples/scrap.h')
-rw-r--r-- | client_examples/scrap.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/client_examples/scrap.h b/client_examples/scrap.h new file mode 100644 index 0000000..647bd74 --- /dev/null +++ b/client_examples/scrap.h @@ -0,0 +1,18 @@ +/* Handle clipboard text and data in arbitrary formats */ + +/* Miscellaneous defines */ +#define T(A, B, C, D) (int)((A<<24)|(B<<16)|(C<<8)|(D<<0)) + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +extern int init_scrap(void); +extern int lost_scrap(void); +extern void put_scrap(int type, int srclen, const char *src); +extern void get_scrap(int type, int *dstlen, char **dst); +extern int clipboard_filter(const SDL_Event *event); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ |