2021-10-25 17:25:40 +08:00
|
|
|
/* sys/clipboard.h
|
|
|
|
|
|
|
|
This file is part of Cygwin.
|
|
|
|
|
|
|
|
This software is a copyrighted work licensed under the terms of the
|
|
|
|
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
|
|
|
details. */
|
|
|
|
|
|
|
|
#ifndef _SYS_CLIPBOARD_H_
|
|
|
|
#define _SYS_CLIPBOARD_H_
|
|
|
|
|
|
|
|
/*
|
|
|
|
* These definitions are used in fhandler_clipboard.cc
|
|
|
|
* as well as in the Cygwin cygutils package, specifically
|
|
|
|
* getclip.c and putclip.c.
|
|
|
|
*/
|
|
|
|
|
|
|
|
static const WCHAR *CYGWIN_NATIVE = L"CYGWIN_NATIVE_CLIPBOARD";
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
union
|
|
|
|
{
|
2022-05-24 22:25:06 +08:00
|
|
|
struct timespec ts;
|
2021-10-25 17:25:40 +08:00
|
|
|
struct
|
|
|
|
{
|
2022-05-24 22:25:06 +08:00
|
|
|
uint64_t cb_sec; // == ts.tv_sec
|
|
|
|
uint64_t cb_nsec; // == ts.tv_nsec
|
2021-10-25 17:25:40 +08:00
|
|
|
};
|
|
|
|
};
|
2022-05-24 22:25:06 +08:00
|
|
|
uint64_t cb_size;
|
2021-12-08 19:59:05 +08:00
|
|
|
char cb_data[];
|
2021-10-25 17:25:40 +08:00
|
|
|
} cygcb_t;
|
|
|
|
|
|
|
|
#endif
|