"Initial commit to Gerrit"
[profile/ivi/cogl.git] / cogl / cogl-kms-renderer.h
1 /*
2  * Cogl
3  *
4  * An object oriented GL/GLES Abstraction/Utility Layer
5  *
6  * Copyright (C) 2011 Intel Corporation.
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the
20  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  */
23
24 #if !defined(__COGL_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
25 #error "Only <cogl/cogl.h> can be included directly."
26 #endif
27
28 #ifndef __COGL_KMS_RENDERER_H__
29 #define __COGL_KMS_RENDERER_H__
30
31 #include <cogl/cogl-types.h>
32 #include <cogl/cogl-renderer.h>
33
34 G_BEGIN_DECLS
35
36 /**
37  * cogl_kms_renderer_get_kms_fd:
38  * @renderer: A #CoglRenderer
39  *
40  * Queries the file descriptor Cogl is using internally for
41  * communicating with the kms driver.
42  *
43  * Return value: The kms file descriptor or -1 if no kms file
44  *               desriptor has been opened by Cogl.
45  * Stability: unstable
46  */
47 int
48 cogl_kms_renderer_get_kms_fd (CoglRenderer *renderer);
49
50 G_END_DECLS
51 #endif /* __COGL_KMS_RENDERER_H__ */