const char *fileList);
size_t DnD_CPStringToLocalString(const char *bufIn,
utf16_t **bufOut);
-size_t DnD_LocalStringToCPString(utf16_t *bufIn,
+size_t DnD_LocalStringToCPString(const utf16_t *bufIn,
char **bufOut);
Bool DnD_SetCPClipboardFromLocalText(CPClipboard *clip,
- utf16_t *bufIn);
+ const utf16_t *bufIn);
Bool DnD_SetCPClipboardAndTruncateLocalText(CPClipboard *clip,
utf16_t *bufIn);
Bool DnD_SetCPClipboardFromLocalRtf(CPClipboard *clip,
/*********************************************************
- * Copyright (C) 2007-2021 VMware, Inc. All rights reserved.
+ * Copyright (c) 2007-2024 Broadcom. All Rights Reserved.
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
*
* Side effects:
* The clip passed in should be empty, otherwise will cause memory leakage.
- * On success, arguments found in buf are unserialized into clip.
+ * On success, arguments found in buf are unserialized into clip, which
+ * must be destroyed by calling CPClipboard_Destroy.
*
*----------------------------------------------------------------------------
*/
/*********************************************************
- * Copyright (c) 2007-2019, 2023 VMware, Inc. All rights reserved.
+ * Copyright (c) 2007-2024 Broadcom. All Rights Reserved.
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
*/
DnDMsgErr
-DnDMsg_UnserializeHeader(DnDMsg *msg, // IN/OUT: the message
- void *buf, // IN: the input buffer
- size_t len) // IN: the buffer length
+DnDMsg_UnserializeHeader(DnDMsg *msg, // IN/OUT: the message
+ const void *buf, // IN: the input buffer
+ size_t len) // IN: the buffer length
{
BufRead r;
DnDMsgErr
DnDMsg_UnserializeArgs(DnDMsg *msg, // IN/OUT: the message
- void *buf, // IN: input buffer
+ const void *buf, // IN: input buffer
size_t len) // IN: buffer length
{
uint32 i;
/*********************************************************
- * Copyright (c) 2007-2017, 2023 VMware, Inc. All rights reserved.
+ * Copyright (c) 2007-2024 Broadcom. All Rights Reserved.
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
Bool DnDMsg_AppendArg(DnDMsg *msg, void *buf, size_t len);
Bool DnDMsg_Serialize(DnDMsg *msg, DynBuf *buf);
-DnDMsgErr DnDMsg_UnserializeHeader(DnDMsg *msg, void *buf, size_t len);
-DnDMsgErr DnDMsg_UnserializeArgs(DnDMsg *msg, void *buf, size_t len);
+DnDMsgErr DnDMsg_UnserializeHeader(DnDMsg *msg, const void *buf, size_t len);
+DnDMsgErr DnDMsg_UnserializeArgs(DnDMsg *msg, const void *buf, size_t len);
#if defined(__cplusplus)
} // extern "C"