• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2022 Marshall A. Greenblatt. All rights reserved.
2 //
3 // Redistribution and use in source and binary forms, with or without
4 // modification, are permitted provided that the following conditions are
5 // met:
6 //
7 //    * Redistributions of source code must retain the above copyright
8 // notice, this list of conditions and the following disclaimer.
9 //    * Redistributions in binary form must reproduce the above
10 // copyright notice, this list of conditions and the following disclaimer
11 // in the documentation and/or other materials provided with the
12 // distribution.
13 //    * Neither the name of Google Inc. nor the name Chromium Embedded
14 // Framework nor the names of its contributors may be used to endorse
15 // or promote products derived from this software without specific prior
16 // written permission.
17 //
18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 //
30 // ---------------------------------------------------------------------------
31 //
32 // This file was generated by the make_api_hash_header.py tool.
33 //
34 
35 #ifndef CEF_INCLUDE_API_HASH_H_
36 #define CEF_INCLUDE_API_HASH_H_
37 
38 #include "include/internal/cef_export.h"
39 
40 // The API hash is created by analyzing CEF header files for C API type
41 // definitions. The hash value will change when header files are modified in a
42 // way that may cause binary incompatibility with other builds. The universal
43 // hash value will change if any platform is affected whereas the platform hash
44 // values will change only if that particular platform is affected.
45 #define CEF_API_HASH_UNIVERSAL "58a564a53597120d05cedf5bcd355064168af0a7"
46 #if defined(OS_WIN)
47 #define CEF_API_HASH_PLATFORM "5fa37a277dca51dee1d13058e6218dc1e2e68adb"
48 #elif defined(OS_MAC)
49 #define CEF_API_HASH_PLATFORM "77dc909a3d568d3b98fe32fa040801f748656ad2"
50 #elif defined(OS_LINUX)
51 #define CEF_API_HASH_PLATFORM "76077b5939104ed96c1378a24d4acbb1ae4e3cb5"
52 #endif
53 
54 #ifdef __cplusplus
55 extern "C" {
56 #endif
57 
58 ///
59 // Returns CEF API hashes for the libcef library. The returned string is owned
60 // by the library and should not be freed. The |entry| parameter describes which
61 // hash value will be returned:
62 // 0 - CEF_API_HASH_PLATFORM
63 // 1 - CEF_API_HASH_UNIVERSAL
64 // 2 - CEF_COMMIT_HASH (from cef_version.h)
65 ///
66 CEF_EXPORT const char* cef_api_hash(int entry);
67 
68 #ifdef __cplusplus
69 }
70 #endif
71 #endif  // CEF_INCLUDE_API_HASH_H_
72