Update include/ files for strict C function prototypes

This commit is contained in:
Sergey Markelov 2022-02-17 12:53:36 -05:00 committed by Marshall Greenblatt
parent 8bfcbeaf48
commit 758022006a
10 changed files with 16 additions and 16 deletions

View File

@ -42,13 +42,13 @@
// way that may cause binary incompatibility with other builds. The universal
// hash value will change if any platform is affected whereas the platform hash
// values will change only if that particular platform is affected.
#define CEF_API_HASH_UNIVERSAL "68b798ae845f8c5351f009a45a084a6c360e1f93"
#define CEF_API_HASH_UNIVERSAL "a215713779f760e45d2dea503245d71c0d9d735b"
#if defined(OS_WIN)
#define CEF_API_HASH_PLATFORM "067e4a40d7d90b0b94b90d8ed3f64ee68bbb908b"
#define CEF_API_HASH_PLATFORM "1cf09d99b2740035c8d6d4e19295ec3a8e6743d9"
#elif defined(OS_MAC)
#define CEF_API_HASH_PLATFORM "a0e4ff7016241e82d1822102bcf7a47d72ab7383"
#define CEF_API_HASH_PLATFORM "a8e86f2c291f4703ba97cdcef97d31ba0f37ea9d"
#elif defined(OS_LINUX)
#define CEF_API_HASH_PLATFORM "276e98ca5bf15c3f8edc3cdc91588d422a92ea12"
#define CEF_API_HASH_PLATFORM "a00e1b122686da8eeca79967ea3bc5809e8707b1"
#endif
#ifdef __cplusplus

View File

@ -58,7 +58,7 @@ extern "C" {
// multiple of this object and to destroy the object immediately after passing
// into the CefExecutProcess() and/or CefInitialize() functions.
///
void* cef_sandbox_info_create();
void* cef_sandbox_info_create(void);
///
// Destroy the specified sandbox information object.

View File

@ -44,7 +44,7 @@ extern "C" {
///
// Gets the current log level.
///
CEF_EXPORT int cef_get_min_log_level();
CEF_EXPORT int cef_get_min_log_level(void);
///
// Gets the current vlog level for the given file (usually taken from

View File

@ -46,7 +46,7 @@ typedef void* cef_string_list_t;
///
// Allocate a new string map.
///
CEF_EXPORT cef_string_list_t cef_string_list_alloc();
CEF_EXPORT cef_string_list_t cef_string_list_alloc(void);
///
// Return the number of elements in the string list.

View File

@ -46,7 +46,7 @@ typedef void* cef_string_map_t;
///
// Allocate a new string map.
///
CEF_EXPORT cef_string_map_t cef_string_map_alloc();
CEF_EXPORT cef_string_map_t cef_string_map_alloc(void);
///
// Return the number of elements in the string map.

View File

@ -47,7 +47,7 @@ typedef void* cef_string_multimap_t;
///
// Allocate a new string multimap.
///
CEF_EXPORT cef_string_multimap_t cef_string_multimap_alloc();
CEF_EXPORT cef_string_multimap_t cef_string_multimap_alloc(void);
///
// Return the number of elements in the string multimap.

View File

@ -175,9 +175,9 @@ typedef cef_string_utf16_t* cef_string_userfree_utf16_t;
// calling the associated free function.
///
CEF_EXPORT cef_string_userfree_wide_t cef_string_userfree_wide_alloc();
CEF_EXPORT cef_string_userfree_utf8_t cef_string_userfree_utf8_alloc();
CEF_EXPORT cef_string_userfree_utf16_t cef_string_userfree_utf16_alloc();
CEF_EXPORT cef_string_userfree_wide_t cef_string_userfree_wide_alloc(void);
CEF_EXPORT cef_string_userfree_utf8_t cef_string_userfree_utf8_alloc(void);
CEF_EXPORT cef_string_userfree_utf16_t cef_string_userfree_utf16_alloc(void);
///
// These functions free the string structure allocated by the associated

View File

@ -55,7 +55,7 @@ typedef pid_t cef_platform_thread_id_t;
///
// Returns the current platform thread ID.
///
CEF_EXPORT cef_platform_thread_id_t cef_get_current_platform_thread_id();
CEF_EXPORT cef_platform_thread_id_t cef_get_current_platform_thread_id(void);
#if defined(OS_WIN)
typedef DWORD cef_platform_thread_handle_t;
@ -69,7 +69,7 @@ typedef pthread_t cef_platform_thread_handle_t;
// Returns the current platform thread handle.
///
CEF_EXPORT cef_platform_thread_handle_t
cef_get_current_platform_thread_handle();
cef_get_current_platform_thread_handle(void);
#ifdef __cplusplus
}

View File

@ -69,7 +69,7 @@ extern "C" {
// thread-safe and must only be accessed on the browser process UI thread.
///
#if defined(CEF_X11)
CEF_EXPORT XDisplay* cef_get_xdisplay();
CEF_EXPORT XDisplay* cef_get_xdisplay(void);
#endif
///

View File

@ -49,7 +49,7 @@ int cef_load_library(const char* path);
// Unload the CEF library that was previously loaded. Returns true (1)
// on success and false (0) on failure.
///
int cef_unload_library();
int cef_unload_library(void);
#ifdef __cplusplus
}