]> git.street.me.uk Git - andy/viking.git/blame - src/vikmaptype.h
Improve function comments as these don't return anything
[andy/viking.git] / src / vikmaptype.h
CommitLineData
357695f1
GB
1/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2/*
3 * viking
a482007a 4 * Copyright (C) 2009, Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
357695f1
GB
5 *
6 * viking is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
55c11161 8 * Free Software Foundation, either version 2 of the License, or
357695f1
GB
9 * (at your option) any later version.
10 *
11 * viking is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 * See the GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef _VIK_MAP_TYPE_H_
21#define _VIK_MAP_TYPE_H_
22
23#include <glib-object.h>
24
25#include "vikmapsource.h"
26#include "vikmapslayer_compat.h"
27
28G_BEGIN_DECLS
29
30#define VIK_TYPE_MAP_TYPE (vik_map_type_get_type ())
31#define VIK_MAP_TYPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIK_TYPE_MAP_TYPE, VikMapType))
32#define VIK_MAP_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIK_TYPE_MAP_TYPE, VikMapTypeClass))
33#define VIK_IS_MAP_TYPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIK_TYPE_MAP_TYPE))
34#define VIK_IS_MAP_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIK_TYPE_MAP_TYPE))
35#define VIK_MAP_TYPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIK_TYPE_MAP_TYPE, VikMapTypeClass))
36
37typedef struct _VikMapTypeClass VikMapTypeClass;
38typedef struct _VikMapType VikMapType;
39
40struct _VikMapTypeClass
41{
42 VikMapSourceClass parent_class;
43};
44
45struct _VikMapType
46{
47 VikMapSource parent_instance;
48};
49
50GType vik_map_type_get_type (void) G_GNUC_CONST;
db03733a 51VikMapType *vik_map_type_new_with_id (VikMapsLayer_MapType map_type, const char *label);
357695f1
GB
52
53G_END_DECLS
54
55#endif /* _VIK_MAP_TYPE_H_ */