FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
AsyncFunctionCall.h
1 /**********************************************************\
2 Original Author: Richard Bateman (taxilian)
3 
4 Created: Oct 22, 2009
5 License: Dual license model; choose one of two:
6  New BSD License
7  http://www.opensource.org/licenses/bsd-license.php
8  - or -
9  GNU Lesser General Public License, version 2.1
10  http://www.gnu.org/licenses/lgpl-2.1.html
11 
12 Copyright 2009 Richard Bateman, Firebreath development team
13 \**********************************************************/
14 
15 #pragma once
16 #ifndef H_FB_NPAPI_ASYNCFUNCTIONCALL
17 #define H_FB_NPAPI_ASYNCFUNCTIONCALL
18 
19 #ifdef FB_WIN
20 #define WM_ASYNCTHREADINVOKE WM_USER + 1
21 #endif
22 
23 #include <boost/shared_ptr.hpp>
24 
25 namespace FB {
26 
27  struct AsyncFunctionCall
28  {
29  AsyncFunctionCall(void (*f)(void *), void *ud)
30  : func(f), userData(ud) { }
31  void (*func)(void *);
32  void *userData;
33  };
34  typedef boost::shared_ptr<AsyncFunctionCall> AsyncFunctionCallPtr;
35 
36 };
37 
38 #endif
39 
40