diff options
Diffstat (limited to 'xorg-server/hw/xwin/winclipboard/internal.h')
-rwxr-xr-x[-rw-r--r--] | xorg-server/hw/xwin/winclipboard/internal.h | 66 |
1 files changed, 36 insertions, 30 deletions
diff --git a/xorg-server/hw/xwin/winclipboard/internal.h b/xorg-server/hw/xwin/winclipboard/internal.h index 94956f80d..55c7771af 100644..100755 --- a/xorg-server/hw/xwin/winclipboard/internal.h +++ b/xorg-server/hw/xwin/winclipboard/internal.h @@ -1,4 +1,3 @@ - /* *Copyright (C) 2003-2004 Harold L Hunt II All Rights Reserved. * @@ -32,24 +31,54 @@ #ifndef WINCLIPBOARD_INTERNAL_H #define WINCLIPBOARD_INTERNAL_H +/* Standard library headers */ +#include <assert.h> +#include <stdio.h> +#include <stdlib.h> +#ifndef _MSC_VER +#include <unistd.h> +#endif +#ifdef __CYGWIN__ +#include <sys/select.h> +#else +#include <X11/Xwinsock.h> +#endif +#include <fcntl.h> +#include <setjmp.h> +#ifdef _MSC_VER +typedef int pid_t; +#endif +#include <pthread.h> + /* X headers */ -#include <X11/Xlib.h> +#include <X11/X.h> +#include <X11/Xatom.h> +#include <X11/Xproto.h> +#include <X11/Xutil.h> /* Windows headers */ #include <X11/Xwindows.h> +#include "winmsg.h" + #define WIN_XEVENTS_SUCCESS 0 #define WIN_XEVENTS_CONVERT 2 #define WIN_XEVENTS_NOTIFY 3 +#define WIN_LOCAL_PROPERTY "CYGX_CUT_BUFFER" -#define WM_WM_REINIT (WM_USER + 1) +#define WM_WM_REINIT (WM_USER + 200) /* * References to external symbols */ -extern void winDebug(const char *format, ...); -extern void ErrorF(const char *format, ...); +extern char *display; +/* + * winclipboardinit.c + */ + +Bool + winInitClipboard(void); /* * winclipboardtextconv.c @@ -66,15 +95,6 @@ void */ -typedef struct -{ - Atom atomClipboard; - Atom atomLocalProperty; - Atom atomUTF8String; - Atom atomCompoundText; - Atom atomTargets; -} ClipboardAtoms; - /* * winclipboardwndproc.c */ @@ -84,26 +104,12 @@ Bool winClipboardFlushWindowsMessageQueue(HWND hwnd); LRESULT CALLBACK winClipboardWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam); -typedef struct -{ - Display *pClipboardDisplay; - Window iClipboardWindow; - ClipboardAtoms *atoms; -} ClipboardWindowCreationParams; - /* * winclipboardxevents.c */ int -winClipboardFlushXEvents(HWND hwnd, - Window iWindow, Display * pDisplay, Bool fUnicodeSupport, ClipboardAtoms *atom); - - -Atom -winClipboardGetLastOwnedSelectionAtom(ClipboardAtoms *atoms); - -void -winClipboardInitMonitoredSelections(void); +winClipboardFlushXEvents(HWND hwnd, + int iWindow, Display * pDisplay, Bool fUnicodeSupport, Bool ClipboardOpened); #endif |