mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Fix C compiler errors when using the C API (issue #1165).
- Replace 'bool' with 'int' in cef_types[_*].h. - Typedef enums in cef_types.h - Add includes and struct forward declarations in C API header files. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1558 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -43,6 +43,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
#include "include/capi/cef_browser_capi.h"
|
||||
|
||||
|
||||
///
|
||||
@ -91,7 +92,7 @@ typedef struct _cef_dialog_handler_t {
|
||||
// return false (0).
|
||||
///
|
||||
int (CEF_CALLBACK *on_file_dialog)(struct _cef_dialog_handler_t* self,
|
||||
struct _cef_browser_t* browser, enum cef_file_dialog_mode_t mode,
|
||||
struct _cef_browser_t* browser, cef_file_dialog_mode_t mode,
|
||||
const cef_string_t* title, const cef_string_t* default_file_name,
|
||||
cef_string_list_t accept_types,
|
||||
struct _cef_file_dialog_callback_t* callback);
|
||||
|
Reference in New Issue
Block a user