summaryrefslogtreecommitdiff
path: root/core/fxcrt/fx_guid.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-09-05 11:19:50 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-09-05 16:13:38 +0000
commit1c9ad7ec7353cccabb6881fd22b116daa3dcbb84 (patch)
treed1f1a13c0e64b249a0f2e0dc5f3856c0d3d9a4fa /core/fxcrt/fx_guid.h
parent13ea3ff1e33313c7775013acaff4ec218bc632ff (diff)
downloadpdfium-1c9ad7ec7353cccabb6881fd22b116daa3dcbb84.tar.xz
Split fx_guid from fx_extension
This CL splits the GUID code out of fx_extension into an fx_guid.h file. Change-Id: I915538ff98601efb07595264eff6435729193177 Reviewed-on: https://pdfium-review.googlesource.com/13090 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxcrt/fx_guid.h')
-rw-r--r--core/fxcrt/fx_guid.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/core/fxcrt/fx_guid.h b/core/fxcrt/fx_guid.h
new file mode 100644
index 0000000000..e80efc4ca1
--- /dev/null
+++ b/core/fxcrt/fx_guid.h
@@ -0,0 +1,22 @@
+// Copyright 2017 PDFium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
+
+#ifndef CORE_FXCRT_FX_GUID_H_
+#define CORE_FXCRT_FX_GUID_H_
+
+#include "core/fxcrt/fx_string.h"
+
+struct FX_GUID {
+ uint32_t data1;
+ uint16_t data2;
+ uint16_t data3;
+ uint8_t data4[8];
+};
+
+void FX_GUID_CreateV4(FX_GUID* pGUID);
+CFX_ByteString FX_GUID_ToString(const FX_GUID* pGUID, bool bSeparator = true);
+
+#endif // CORE_FXCRT_FX_GUID_H_