summaryrefslogtreecommitdiffstats
path: root/VisualNaCro/nacro.h
diff options
context:
space:
mode:
authordscho <dscho>2006-09-12 15:38:53 +0000
committerdscho <dscho>2006-09-12 15:38:53 +0000
commitff9c0be8447561a90e237910bf0d52bb0e11a008 (patch)
treee21ede531da310076b86701a5181ebf30a932144 /VisualNaCro/nacro.h
parent87a4c9be7dcde4eed81ad3060b784338bef57aba (diff)
downloadlibvncserver-ff9c0be8447561a90e237910bf0d52bb0e11a008.zip
libvncserver-ff9c0be8447561a90e237910bf0d52bb0e11a008.tar.gz
VisualNaCro: support clipboard and symbolic key names with X11::Keysyms
Diffstat (limited to 'VisualNaCro/nacro.h')
-rw-r--r--VisualNaCro/nacro.h22
1 files changed, 13 insertions, 9 deletions
diff --git a/VisualNaCro/nacro.h b/VisualNaCro/nacro.h
index 618cb14..abc4045 100644
--- a/VisualNaCro/nacro.h
+++ b/VisualNaCro/nacro.h
@@ -32,10 +32,11 @@ typedef int result_t;
%constant int RESULT_TIMEOUT=1;
%constant int RESULT_KEY=2;
%constant int RESULT_MOUSE=4;
-%constant int RESULT_TEXT=8
-%constant int RESULT_SCREEN=16;
-%constant int RESULT_FOUNDIMAGE=32;
-%constant int RESULT_SHUTDOWN=64;
+%constant int RESULT_TEXT_CLIENT=8;
+%constant int RESULT_TEXT_CLIENT=16;
+%constant int RESULT_SCREEN=32;
+%constant int RESULT_FOUNDIMAGE=64;
+%constant int RESULT_SHUTDOWN=128;
*/
%}
@@ -52,10 +53,11 @@ typedef int result_t;
#define RESULT_TIMEOUT 1
#define RESULT_KEY 2
#define RESULT_MOUSE 4
-#define RESULT_TEXT 8
-#define RESULT_SCREEN 16
-#define RESULT_FOUNDIMAGE 32
-#define RESULT_SHUTDOWN 64
+#define RESULT_TEXT_CLIENT 8
+#define RESULT_TEXT_SERVER 16
+#define RESULT_SCREEN 32
+#define RESULT_FOUNDIMAGE 64
+#define RESULT_SHUTDOWN 128
/* init/shutdown */
@@ -86,13 +88,15 @@ coordinate_t getx(resource_t res);
coordinate_t gety(resource_t res);
buttons_t getbuttons(resource_t res);
-const char *gettext(resource_t res);
+const char *gettext_client(resource_t res);
+const char *gettext_server(resource_t res);
/* send events to the server */
bool_t sendkey(resource_t res,keysym_t keysym,bool_t keydown);
bool_t sendmouse(resource_t res,coordinate_t x,coordinate_t y,buttons_t buttons);
bool_t sendtext(resource_t res, const char *string);
+bool_t sendtext_to_server(resource_t res, const char *string);
/* for visual grepping */
OpenPOWER on IntegriCloud