{{+bindTo:partials.standard_nacl_article}}

PP_CompletionCallback Struct Reference

Data Fields

PP_CompletionCallback_Func func
void * user_data
int32_t flags

Detailed Description

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:

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).


Field Documentation

Flags used to control how non-NULL callbacks are scheduled by asynchronous methods.

This value is a callback function that will be called, or NULL if this is a blocking completion callback.

This value is a pointer to user data passed to a callback function.


The documentation for this struct was generated from the following file:
{{/partials.standard_nacl_article}}