packaging: update the changelog
[profile/ivi/intel-emgd-kmod.git] / emgd / state / appcontext / cmn / appcontext_dispatch.h
1 /*
2  *-----------------------------------------------------------------------------
3  * Filename: appcontext_dispatch.h
4  * $Revision: 1.7 $
5  *-----------------------------------------------------------------------------
6  * Copyright (c) 2002-2010, Intel Corporation.
7  *
8  * Permission is hereby granted, free of charge, to any person obtaining a copy
9  * of this software and associated documentation files (the "Software"), to deal
10  * in the Software without restriction, including without limitation the rights
11  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12  * copies of the Software, and to permit persons to whom the Software is
13  * furnished to do so, subject to the following conditions:
14  *
15  * The above copyright notice and this permission notice shall be included in
16  * all copies or substantial portions of the Software.
17  *
18  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24  * THE SOFTWARE.
25  *
26  *-----------------------------------------------------------------------------
27  * Description:
28  *
29  *-----------------------------------------------------------------------------
30  */
31
32
33 #ifndef _APPCONTEXT_DISPATCH_H
34 #define _APPCONTEXT_DISPATCH_H
35
36 typedef struct _appcontext_table_t {
37         unsigned long appcontext_id;
38         unsigned long logical_context_offset;
39 } appcontext_table_t;
40
41 typedef struct _appcontext_dispatch_t {
42         int (*appcontext_init)(igd_context_t *context);
43         void (*appcontext_shutdown)(igd_context_t *context);
44         igd_appcontext_h (*appcontext_alloc)(igd_display_h display_handle,
45                 int priority, unsigned int flags);
46         void (*appcontext_free)(igd_display_h display_handle,
47                 int priority, igd_appcontext_h context_handle);
48         appcontext_table_t *table;
49 } appcontext_dispatch_t;
50
51
52 extern appcontext_dispatch_t appcontext_dispatch_plb;
53
54 extern appcontext_dispatch_t *appcontext_dispatch;
55
56 #endif