From 748ce719f7594754695dfbd17b35618a58a5ffd1 Mon Sep 17 00:00:00 2001 From: "neb@chromium.org" Date: Mon, 28 Mar 2011 22:15:13 +0000 Subject: Fix up some types in the API. size_t -> int32_t, char* -> void* for buffers, void* -> const void* where needed. We already use int32_t when we serialize size_t (and unlike pointers, size_ts do get serialized a lot). char* for representing unstructured blocks of memory is weird, see "man 2 read" and friends. I'm removing it because it complicates our type system in IDL for no reason. const void* should be obvious. BUG=76271 TEST=none Review URL: http://codereview.chromium.org/6711047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79623 0039d316-1c4b-4281-b951-d872f2087c98 --- ppapi/c/ppb_url_loader.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ppapi/c/ppb_url_loader.h') diff --git a/ppapi/c/ppb_url_loader.h b/ppapi/c/ppb_url_loader.h index 8dfc409..34a16da 100644 --- a/ppapi/c/ppb_url_loader.h +++ b/ppapi/c/ppb_url_loader.h @@ -96,7 +96,7 @@ struct PPB_URLLoader { // perform a partial read. Returns the number of bytes read or an error // code. int32_t (*ReadResponseBody)(PP_Resource loader, - char* buffer, + void* buffer, int32_t bytes_to_read, struct PP_CompletionCallback callback); -- cgit v1.1