2 |
rdesktop: A Remote Desktop Protocol client. |
rdesktop: A Remote Desktop Protocol client. |
3 |
Protocol services - Clipboard functions |
Protocol services - Clipboard functions |
4 |
Copyright (C) Erik Forsberg <forsberg@cendio.se> 2003 |
Copyright (C) Erik Forsberg <forsberg@cendio.se> 2003 |
5 |
Copyright (C) Matthew Chapman 2003 |
Copyright (C) Matthew Chapman 2003-2007 |
6 |
|
|
7 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
8 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
126 |
|
|
127 |
if (status == CLIPRDR_ERROR) |
if (status == CLIPRDR_ERROR) |
128 |
{ |
{ |
129 |
if (type == CLIPRDR_FORMAT_ACK) |
switch (type) |
130 |
{ |
{ |
131 |
/* FIXME: We seem to get this when we send an announce while the server is |
case CLIPRDR_FORMAT_ACK: |
132 |
still processing a paste. Try sending another announce. */ |
/* FIXME: We seem to get this when we send an announce while the server is |
133 |
cliprdr_send_native_format_announce(last_formats, last_formats_length); |
still processing a paste. Try sending another announce. */ |
134 |
return; |
cliprdr_send_native_format_announce(last_formats, |
135 |
|
last_formats_length); |
136 |
|
break; |
137 |
|
case CLIPRDR_DATA_RESPONSE: |
138 |
|
ui_clip_request_failed(); |
139 |
|
break; |
140 |
|
default: |
141 |
|
DEBUG_CLIPBOARD(("CLIPRDR error (type=%d)\n", type)); |
142 |
} |
} |
143 |
|
|
|
DEBUG_CLIPBOARD(("CLIPRDR error (type=%d)\n", type)); |
|
144 |
return; |
return; |
145 |
} |
} |
146 |
|
|
169 |
} |
} |
170 |
} |
} |
171 |
|
|
172 |
|
void |
173 |
|
cliprdr_set_mode(const char *optarg) |
174 |
|
{ |
175 |
|
ui_clip_set_mode(optarg); |
176 |
|
} |
177 |
|
|
178 |
BOOL |
BOOL |
179 |
cliprdr_init(void) |
cliprdr_init(void) |
180 |
{ |
{ |