Pepper_47_C_interfaces
Public Attributes | List of all members
PP_CompletionCallback Struct Reference

#include <pp_completion_callback.h>

Collaboration diagram for PP_CompletionCallback:
Collaboration graph

Public Attributes

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

Definition at line 139 of file pp_completion_callback.h.

Member Data Documentation

int32_t PP_CompletionCallback::flags

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

Definition at line 153 of file pp_completion_callback.h.

Referenced by PP_MakeCompletionCallback(), and PP_MakeOptionalCompletionCallback().

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.

Definition at line 144 of file pp_completion_callback.h.

Referenced by PP_MakeCompletionCallback(), PP_MakeOptionalCompletionCallback(), and PP_RunCompletionCallback().

void* PP_CompletionCallback::user_data

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

Definition at line 148 of file pp_completion_callback.h.

Referenced by PP_MakeCompletionCallback(), PP_MakeOptionalCompletionCallback(), and PP_RunCompletionCallback().


The documentation for this struct was generated from the following file: