|
| 1 | +// Copyright (c) 2019 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 CEF translator tool. If making changes by |
| 33 | +// hand only do so within the body of existing method and function |
| 34 | +// implementations. See the translator.README.txt file in the tools directory |
| 35 | +// for more information. |
| 36 | +// |
| 37 | +// $hash=e35c4017e9fd0e6371e7abbcaf1b9498a33693f9$ |
| 38 | +// |
| 39 | + |
| 40 | +#ifndef CEF_INCLUDE_API_HASH_H_ |
| 41 | +#define CEF_INCLUDE_API_HASH_H_ |
| 42 | + |
| 43 | +#include "include/internal/cef_export.h" |
| 44 | + |
| 45 | +// The API hash is created by analyzing CEF header files for C API type |
| 46 | +// definitions. The hash value will change when header files are modified in a |
| 47 | +// way that may cause binary incompatibility with other builds. The universal |
| 48 | +// hash value will change if any platform is affected whereas the platform hash |
| 49 | +// values will change only if that particular platform is affected. |
| 50 | +#define CEF_API_HASH_UNIVERSAL "21bd75ba6765d8eac60d72b761dca4deeab6c2b8" |
| 51 | +#if defined(OS_WIN) |
| 52 | +#define CEF_API_HASH_PLATFORM "b312ae5d3d4346ffaa12ab66d55fe0b31dd719fe" |
| 53 | +#elif defined(OS_MACOSX) |
| 54 | +#define CEF_API_HASH_PLATFORM "0ea51921923a950b004c34289e3deaa454eadc58" |
| 55 | +#elif defined(OS_LINUX) |
| 56 | +#define CEF_API_HASH_PLATFORM "964b1ff8bc6acdf35d275112d03faa78b1f3556b" |
| 57 | +#endif |
| 58 | + |
| 59 | +#ifdef __cplusplus |
| 60 | +extern "C" { |
| 61 | +#endif |
| 62 | + |
| 63 | +/// |
| 64 | +// Returns CEF API hashes for the libcef library. The returned string is owned |
| 65 | +// by the library and should not be freed. The |entry| parameter describes which |
| 66 | +// hash value will be returned: |
| 67 | +// 0 - CEF_API_HASH_PLATFORM |
| 68 | +// 1 - CEF_API_HASH_UNIVERSAL |
| 69 | +// 2 - CEF_COMMIT_HASH (from cef_version.h) |
| 70 | +/// |
| 71 | +CEF_EXPORT const char* cef_api_hash(int entry); |
| 72 | + |
| 73 | +#ifdef __cplusplus |
| 74 | +} |
| 75 | +#endif |
| 76 | +#endif // CEF_INCLUDE_API_HASH_H_ |
0 commit comments