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

Unified Diff: ppapi/c/ppb_core.h

Issue 6711047: Fix up some types in the API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 months 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
Index: ppapi/c/ppb_core.h
diff --git a/ppapi/c/ppb_core.h b/ppapi/c/ppb_core.h
index 6571db008050769ccfe19a826563dd9515d77bde..31a441c7e70ddff94c14bdf83e6acc7489f099fc 100644
--- a/ppapi/c/ppb_core.h
+++ b/ppapi/c/ppb_core.h
@@ -13,7 +13,7 @@
struct PP_CompletionCallback;
-#define PPB_CORE_INTERFACE "PPB_Core;0.3"
+#define PPB_CORE_INTERFACE "PPB_Core;0.4"
dmichael(do not use this one) 2011/03/21 21:53:24 Are you going to put in any backwards compatibilit
neb 2011/03/21 22:16:15 Nope. Breakage will ensue.
David Springer 2011/03/21 22:31:29 This will, in particular, break all the NaCl galle
/**
* @file
@@ -54,11 +54,11 @@ struct PPB_Core {
/**
* MemAlloc is a pointer to a function that allocate memory.
*
- * @param[in] num_bytes A size_t number of bytes to allocate.
+ * @param[in] num_bytes A number of bytes to allocate.
* @return A pointer to the memory if successful, NULL If the
* allocation fails.
*/
- void* (*MemAlloc)(size_t num_bytes);
+ void* (*MemAlloc)(uint32_t num_bytes);
/**
* MemFree is a pointer to a function that deallocates memory.
@@ -66,7 +66,7 @@ struct PPB_Core {
* @param[in] ptr A pointer to the memory to deallocate. It is safe to
* pass NULL to this function.
*/
- void (*MemFree)(void* ptr);
+ void (*MemFree)(const void* ptr);
dmichael(do not use this one) 2011/03/21 21:53:24 This isn't really that obvious to me. I understan
neb 2011/03/21 22:16:15 Const-ness of pointer has to do with what the func
/**
* GetTime is a pointer to a function that returns the "wall clock
« no previous file with comments | « ppapi/c/ppb_audio.h ('k') | ppapi/c/ppb_url_loader.h » ('j') | ppapi/cpp/core.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698