/[rdesktop]/sourceforge.net/trunk/rdesktop/xclip.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/xclip.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1048 by astrand, Tue Feb 28 08:09:41 2006 UTC revision 1203 by ossman_, Mon Mar 27 08:39:20 2006 UTC
# Line 320  xclip_send_data_with_convert(uint8 * sou Line 320  xclip_send_data_with_convert(uint8 * sou
320                  char *unicode_buffer_remaining = unicode_buffer;                  char *unicode_buffer_remaining = unicode_buffer;
321                  char *data_remaining = (char *) source;                  char *data_remaining = (char *) source;
322                  size_t data_size_remaining = source_size;                  size_t data_size_remaining = source_size;
323                  iconv(cd, &data_remaining, &data_size_remaining, &unicode_buffer_remaining,                  iconv(cd, (ICONV_CONST char **) &data_remaining, &data_size_remaining,
324                        &unicode_buffer_size_remaining);                        &unicode_buffer_remaining, &unicode_buffer_size_remaining);
325                  iconv_close(cd);                  iconv_close(cd);
326    
327                  /* translate linebreaks */                  /* translate linebreaks */
# Line 332  xclip_send_data_with_convert(uint8 * sou Line 332  xclip_send_data_with_convert(uint8 * sou
332                  {                  {
333                          DEBUG_CLIPBOARD(("Sending Unicode string of %d bytes\n",                          DEBUG_CLIPBOARD(("Sending Unicode string of %d bytes\n",
334                                           translated_data_size));                                           translated_data_size));
335                          cliprdr_send_data(translated_data, translated_data_size);                          helper_cliprdr_send_response(translated_data, translated_data_size);
336                          xfree(translated_data); /* Not the same thing as XFree! */                          xfree(translated_data); /* Not the same thing as XFree! */
337                  }                  }
338    
# Line 353  xclip_send_data_with_convert(uint8 * sou Line 353  xclip_send_data_with_convert(uint8 * sou
353                  translated_data = lf2crlf(source, &length);                  translated_data = lf2crlf(source, &length);
354                  if (translated_data != NULL)                  if (translated_data != NULL)
355                  {                  {
356                          cliprdr_send_data(translated_data, length);                          helper_cliprdr_send_response(translated_data, length);
357                          xfree(translated_data); /* Not the same thing as XFree! */                          xfree(translated_data); /* Not the same thing as XFree! */
358                  }                  }
359    
# Line 773  ui_clip_handle_data(uint8 * data, uint32 Line 773  ui_clip_handle_data(uint8 * data, uint32
773                                  iconv_close(cd);                                  iconv_close(cd);
774                                  return;                                  return;
775                          }                          }
776                          iconv(cd, &data_remaining, &length_remaining, &utf8_data_remaining,                          iconv(cd, (ICONV_CONST char **) &data_remaining, &length_remaining,
777                                &utf8_length_remaining);                                &utf8_data_remaining, &utf8_length_remaining);
778                          iconv_close(cd);                          iconv_close(cd);
779                          free_data = True;                          free_data = True;
780                          data = (uint8 *) utf8_data;                          data = (uint8 *) utf8_data;
# Line 842  ui_clip_request_data(uint32 format) Line 842  ui_clip_request_data(uint32 format)
842          }          }
843    
844          /* No data available */          /* No data available */
845          cliprdr_send_data(NULL, 0);          helper_cliprdr_send_empty_response();
846  }  }
847    
848  void  void

Legend:
Removed from v.1048  
changed lines
  Added in v.1203

  ViewVC Help
Powered by ViewVC 1.1.26