Build fix for IBM support.
[monky] / lua / libcairo-helper.h
1 /* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*-
2  *
3  * Conky, a system monitor, based on torsmo
4  *
5  * Please see COPYING for details
6  *
7  * Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al.
8  *      (see AUTHORS)
9  * All rights reserved.
10  *
11  * This program is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation, either version 3 of the License, or
14  * (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  * You should have received a copy of the GNU General Public License
21  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
22  *
23  */
24
25 #ifndef _LIBCAIRO_HELPER_H_
26 #define _LIBCAIRO_HELPER_H_
27
28 #include <cairo.h>
29
30 cairo_text_extents_t *create_cairo_text_extents_t(void) {
31         return calloc(1, sizeof(cairo_text_extents_t));
32 }
33
34 cairo_font_extents_t *create_cairo_font_extents_t(void) {
35         return calloc(1, sizeof(cairo_font_extents_t));
36 }
37
38 cairo_matrix_t *create_cairo_matrix_t(void) {
39         return calloc(1, sizeof(cairo_matrix_t));
40 }
41
42 #endif /* _LIBCAIRO_HELPER_H_ */