xref: /OK3568_Linux_fs/buildroot/package/directfb/0005-add-missing-idivine-header.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Add idivine.h, which is missing from DirectFB tarballs
2
3The idivine.h file was taken from the DirectFB Git repository.
4
5Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
6
7Index: b/lib/divine/idivine.h
8===================================================================
9--- /dev/null
10+++ b/lib/divine/idivine.h
11@@ -0,0 +1,54 @@
12+/*
13+   (c) Copyright 2012-2013  DirectFB integrated media GmbH
14+   (c) Copyright 2001-2013  The world wide DirectFB Open Source Community (directfb.org)
15+   (c) Copyright 2000-2004  Convergence (integrated media) GmbH
16+
17+   All rights reserved.
18+
19+   Written by Denis Oliver Kropp <dok@directfb.org>,
20+              Andreas Shimokawa <andi@directfb.org>,
21+              Marek Pikarski <mass@directfb.org>,
22+              Sven Neumann <neo@directfb.org>,
23+              Ville Syrjälä <syrjala@sci.fi> and
24+              Claudio Ciccani <klan@users.sf.net>.
25+
26+   This library is free software; you can redistribute it and/or
27+   modify it under the terms of the GNU Lesser General Public
28+   License as published by the Free Software Foundation; either
29+   version 2 of the License, or (at your option) any later version.
30+
31+   This library is distributed in the hope that it will be useful,
32+   but WITHOUT ANY WARRANTY; without even the implied warranty of
33+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
34+   Lesser General Public License for more details.
35+
36+   You should have received a copy of the GNU Lesser General Public
37+   License along with this library; if not, write to the
38+   Free Software Foundation, Inc., 59 Temple Place - Suite 330,
39+   Boston, MA 02111-1307, USA.
40+*/
41+
42+
43+
44+#ifndef __IDIVINE_H__
45+#define __IDIVINE_H__
46+
47+#include <divine.h>
48+
49+/*
50+ * private data struct of IDiVine
51+ */
52+typedef struct {
53+     int                         ref;      /* reference counter */
54+
55+     DiVine                     *divine;
56+} IDiVine_data;
57+
58+/*
59+ * IDiVine constructor/destructor
60+ */
61+DFBResult IDiVine_Construct( IDiVine *thiz );
62+
63+void      IDiVine_Destruct ( IDiVine *thiz );
64+
65+#endif
66