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:
@@ -44,6 +44,8 @@ extern "C" {
|
||||
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
struct _cef_dictionary_value_t;
|
||||
struct _cef_list_value_t;
|
||||
|
||||
///
|
||||
// Structure representing a binary value. Can be used on any process and thread.
|
||||
@@ -159,7 +161,7 @@ typedef struct _cef_dictionary_value_t {
|
||||
///
|
||||
// Returns the value type for the specified key.
|
||||
///
|
||||
enum cef_value_type_t (CEF_CALLBACK *get_type)(
|
||||
cef_value_type_t (CEF_CALLBACK *get_type)(
|
||||
struct _cef_dictionary_value_t* self, const cef_string_t* key);
|
||||
|
||||
///
|
||||
@@ -336,7 +338,7 @@ typedef struct _cef_list_value_t {
|
||||
///
|
||||
// Returns the value type at the specified index.
|
||||
///
|
||||
enum cef_value_type_t (CEF_CALLBACK *get_type)(struct _cef_list_value_t* self,
|
||||
cef_value_type_t (CEF_CALLBACK *get_type)(struct _cef_list_value_t* self,
|
||||
int index);
|
||||
|
||||
///
|
||||
|
Reference in New Issue
Block a user