From 758022006a50808965900b1da780ebae52c85b1a Mon Sep 17 00:00:00 2001 From: Sergey Markelov Date: Thu, 17 Feb 2022 12:53:36 -0500 Subject: [PATCH] Update include/ files for strict C function prototypes --- include/cef_api_hash.h | 8 ++++---- include/cef_sandbox_win.h | 2 +- include/internal/cef_logging_internal.h | 2 +- include/internal/cef_string_list.h | 2 +- include/internal/cef_string_map.h | 2 +- include/internal/cef_string_multimap.h | 2 +- include/internal/cef_string_types.h | 6 +++--- include/internal/cef_thread_internal.h | 4 ++-- include/internal/cef_types_linux.h | 2 +- include/wrapper/cef_library_loader.h | 2 +- 10 files changed, 16 insertions(+), 16 deletions(-) diff --git a/include/cef_api_hash.h b/include/cef_api_hash.h index 5a56ba044..2e163b95b 100644 --- a/include/cef_api_hash.h +++ b/include/cef_api_hash.h @@ -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 diff --git a/include/cef_sandbox_win.h b/include/cef_sandbox_win.h index 3b7c4e0b6..ca839446b 100644 --- a/include/cef_sandbox_win.h +++ b/include/cef_sandbox_win.h @@ -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. diff --git a/include/internal/cef_logging_internal.h b/include/internal/cef_logging_internal.h index 598263d16..57b283162 100644 --- a/include/internal/cef_logging_internal.h +++ b/include/internal/cef_logging_internal.h @@ -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 diff --git a/include/internal/cef_string_list.h b/include/internal/cef_string_list.h index b44bac719..b1c2e7e53 100644 --- a/include/internal/cef_string_list.h +++ b/include/internal/cef_string_list.h @@ -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. diff --git a/include/internal/cef_string_map.h b/include/internal/cef_string_map.h index 0f3342575..a1791cd0d 100644 --- a/include/internal/cef_string_map.h +++ b/include/internal/cef_string_map.h @@ -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. diff --git a/include/internal/cef_string_multimap.h b/include/internal/cef_string_multimap.h index cd077460b..73cdc2f6a 100644 --- a/include/internal/cef_string_multimap.h +++ b/include/internal/cef_string_multimap.h @@ -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. diff --git a/include/internal/cef_string_types.h b/include/internal/cef_string_types.h index ea9196082..3350e49d9 100644 --- a/include/internal/cef_string_types.h +++ b/include/internal/cef_string_types.h @@ -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 diff --git a/include/internal/cef_thread_internal.h b/include/internal/cef_thread_internal.h index f326bcd14..9711ffae1 100644 --- a/include/internal/cef_thread_internal.h +++ b/include/internal/cef_thread_internal.h @@ -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 } diff --git a/include/internal/cef_types_linux.h b/include/internal/cef_types_linux.h index e12853be0..b2fb1a931 100644 --- a/include/internal/cef_types_linux.h +++ b/include/internal/cef_types_linux.h @@ -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 /// diff --git a/include/wrapper/cef_library_loader.h b/include/wrapper/cef_library_loader.h index 23e6c35e4..52d0e1dd0 100644 --- a/include/wrapper/cef_library_loader.h +++ b/include/wrapper/cef_library_loader.h @@ -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 }