Clipboard.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /** @file
  2. Defines DiskImage - the view of the file that is visible at any point,
  3. as well as the event handlers for editing the file
  4. Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved. <BR>
  5. SPDX-License-Identifier: BSD-2-Clause-Patent
  6. **/
  7. #ifndef _LIB_CLIP_BOARD_H_
  8. #define _LIB_CLIP_BOARD_H_
  9. #include "HexEditor.h"
  10. /**
  11. Initialization function for HDiskImage
  12. @param[in] EFI_SUCCESS The operation was successful.
  13. @param[in] EFI_LOAD_ERROR A load error occurred.
  14. **/
  15. EFI_STATUS
  16. HClipBoardInit (
  17. VOID
  18. );
  19. /**
  20. Initialization function for HDiskImage.
  21. @param[in] EFI_SUCCESS The operation was successful.
  22. @param[in] EFI_LOAD_ERROR A load error occurred.
  23. **/
  24. EFI_STATUS
  25. HClipBoardCleanup (
  26. VOID
  27. );
  28. /**
  29. Set a buffer into the clipboard.
  30. @param[in] Buffer The buffer to add to the clipboard.
  31. @param[in] Size The size of Buffer in bytes.
  32. @retval EFI_SUCCESS The operation was successful.
  33. **/
  34. EFI_STATUS
  35. HClipBoardSet (
  36. IN UINT8 *Buffer,
  37. IN UINTN Size
  38. );
  39. /**
  40. Get a buffer from the clipboard.
  41. @param[out] Buffer The pointer to the buffer to add to the clipboard.
  42. @return the size of the buffer.
  43. **/
  44. UINTN
  45. HClipBoardGet (
  46. OUT UINT8 **Buffer
  47. );
  48. #endif