Eager Gesture Recognition on Aura
[chromium-blink-merge.git] / native_client_sdk / src / libraries / ppapi_simple / ps_main.h
blobc269d3abaaeba71f256ba8e339eb8a71707fff35
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. */
5 #ifndef PPAPI_SIMPLE_PS_MAIN_H_
6 #define PPAPI_SIMPLE_PS_MAIN_H_
8 #include "ppapi_simple/ps.h"
9 #include "ppapi_simple/ps_event.h"
11 EXTERN_C_BEGIN
13 typedef int (*PSMainFunc_t)(int argc, char *argv[]);
15 /**
16 * PSMainCreate
18 * Constructs an instance SimpleInstance and configures it to call into
19 * the provided "main" function.
21 void* PSMainCreate(PP_Instance inst, PSMainFunc_t func);
24 /**
25 * PPAPI_SIMPLE_REGISTER_MAIN
27 * Constructs a PSInstance object and configures it to use call the provided
28 * 'main' function on its own thread once initialization is complete.
30 #define PPAPI_SIMPLE_REGISTER_MAIN(main) \
31 PPAPI_SIMPLE_USE_MAIN(PSMainCreate, main)
33 EXTERN_C_END
35 #endif /* PPAPI_SIMPLE_PS_MAIN_H_ */