Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1516)

Unified Diff: ppapi/c/dev/ppb_file_io_dev.h

Issue 4310002: Make PPAPI headers compile with C compilers (gcc on Linux & Mac and MSVS on W... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/c/dev/ppb_file_chooser_dev.h ('k') | ppapi/c/dev/ppb_file_ref_dev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/dev/ppb_file_io_dev.h
===================================================================
--- ppapi/c/dev/ppb_file_io_dev.h (revision 65116)
+++ ppapi/c/dev/ppb_file_io_dev.h (working copy)
@@ -5,6 +5,7 @@
#ifndef PPAPI_C_DEV_PPB_FILE_IO_DEV_H_
#define PPAPI_C_DEV_PPB_FILE_IO_DEV_H_
+#include "ppapi/c/pp_bool.h"
#include "ppapi/c/pp_module.h"
#include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_stdint.h"
@@ -36,16 +37,16 @@
PP_FILEOPENFLAG_EXCLUSIVE = 1 << 4
} PP_FileOpenFlags_Dev;
-#define PPB_FILEIO_DEV_INTERFACE "PPB_FileIO(Dev);0.1"
+#define PPB_FILEIO_DEV_INTERFACE "PPB_FileIO(Dev);0.2"
// Use this interface to operate on a regular file (PP_FileType_Regular).
struct PPB_FileIO_Dev {
// Creates a new FileIO object. Returns 0 if the module is invalid.
PP_Resource (*Create)(PP_Module module);
- // Returns true if the given resource is a FileIO. Returns false if the
+ // Returns PP_TRUE if the given resource is a FileIO. Returns PP_FALSE if the
// resource is invalid or some type other than a FileIO.
- bool (*IsFileIO)(PP_Resource resource);
+ PP_Bool (*IsFileIO)(PP_Resource resource);
// Open the specified regular file for I/O according to the given open flags,
// which is a bit-mask of the PP_FileOpenFlags values. Upon success, the
@@ -59,7 +60,7 @@
// Queries info about the file opened by this FileIO object. Fails if the
// FileIO object has not been opened.
int32_t (*Query)(PP_Resource file_io,
- PP_FileInfo_Dev* info,
+ struct PP_FileInfo_Dev* info,
struct PP_CompletionCallback callback);
// Updates timestamps for the file opened by this FileIO object. Fails if
« no previous file with comments | « ppapi/c/dev/ppb_file_chooser_dev.h ('k') | ppapi/c/dev/ppb_file_ref_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698