Pepper_56_C_interfaces
Pepper_56_C_interfaces
|
#include <pp_completion_callback.h>
Public Attributes | |
PP_CompletionCallback_Func | func |
void * | user_data |
int32_t | flags |
PP_CompletionCallback
is a common mechanism for supporting potentially asynchronous calls in browser interfaces. Any method that takes a PP_CompletionCallback
can be used in one of three different ways:
PP_BlockUntilComplete()
provides a convenient way to specify blocking behavior. Refer to PP_BlockUntilComplete
for more information.When the callback is run asynchronously, the result parameter passed to func
is an int32_t that, if negative indicates an error code whose meaning is specific to the calling method (refer to pp_error.h
for further information). A positive or 0 value is a return result indicating success whose meaning depends on the calling method (e.g. number of bytes read).
int32_t PP_CompletionCallback::flags |
Flags used to control how non-NULL callbacks are scheduled by asynchronous methods.
PP_CompletionCallback_Func PP_CompletionCallback::func |
This value is a callback function that will be called, or NULL if this is a blocking completion callback.
void* PP_CompletionCallback::user_data |
This value is a pointer to user data passed to a callback function.