1
/*
2
 * Copyright (C) 2010-2012 Jiri Techet <techet@gmail.com>
3
 *
4
 * This library is free software; you can redistribute it and/or
5
 * modify it under the terms of the GNU Lesser General Public
6
 * License as published by the Free Software Foundation; either
7
 * version 2.1 of the License, or (at your option) any later version.
8
 *
9
 * This library is distributed in the hope that it will be useful,
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12
 * Lesser General Public License for more details.
13
 *
14
 * You should have received a copy of the GNU Lesser General Public
15
 * License along with this library; if not, write to the Free Software
16
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17
 */
18
19
#if !defined (__CHAMPLAIN_CHAMPLAIN_H_INSIDE__) && !defined (CHAMPLAIN_COMPILATION)
20
#error "Only <champlain/champlain.h> can be included directly."
21
#endif
22
23
#ifndef _CHAMPLAIN_MAP_SOURCE_CHAIN_H_
24
#define _CHAMPLAIN_MAP_SOURCE_CHAIN_H_
25
26
#include <glib-object.h>
27
28
#include "champlain-map-source.h"
29
30
G_BEGIN_DECLS
31
32
#define CHAMPLAIN_TYPE_MAP_SOURCE_CHAIN champlain_map_source_chain_get_type ()
33
34
#define CHAMPLAIN_MAP_SOURCE_CHAIN(obj) \
35
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), CHAMPLAIN_TYPE_MAP_SOURCE_CHAIN, ChamplainMapSourceChain))
36
37
#define CHAMPLAIN_MAP_SOURCE_CHAIN_CLASS(klass) \
38
  (G_TYPE_CHECK_CLASS_CAST ((klass), CHAMPLAIN_TYPE_MAP_SOURCE_CHAIN, ChamplainMapSourceChainClass))
39
40
#define CHAMPLAIN_IS_MAP_SOURCE_CHAIN(obj) \
41
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CHAMPLAIN_TYPE_MAP_SOURCE_CHAIN))
42
43
#define CHAMPLAIN_IS_MAP_SOURCE_CHAIN_CLASS(klass) \
44
  (G_TYPE_CHECK_CLASS_TYPE ((klass), CHAMPLAIN_TYPE_MAP_SOURCE_CHAIN))
45
46
#define CHAMPLAIN_MAP_SOURCE_CHAIN_GET_CLASS(obj) \
47
  (G_TYPE_INSTANCE_GET_CLASS ((obj), CHAMPLAIN_TYPE_MAP_SOURCE_CHAIN, ChamplainMapSourceChainClass))
48
49
typedef struct _ChamplainMapSourceChainPrivate ChamplainMapSourceChainPrivate;
50
51
typedef struct _ChamplainMapSourceChain ChamplainMapSourceChain;
52
typedef struct _ChamplainMapSourceChainClass ChamplainMapSourceChainClass;
53
54
/**
55
 * ChamplainMapSourceChain:
56
 *
57
 * The #ChamplainMapSourceChain structure contains only private data
58
 * and should be accessed using the provided API
59
 *
60
 * Since: 0.6
61
 */
62
struct _ChamplainMapSourceChain
63
{
64
  ChamplainMapSource parent_instance;
65
66
  ChamplainMapSourceChainPrivate *priv;
67
};
68
69
struct _ChamplainMapSourceChainClass
70
{
71
  ChamplainMapSourceClass parent_class;
72
};
73
74
GType champlain_map_source_chain_get_type (void);
75
76
ChamplainMapSourceChain *champlain_map_source_chain_new (void);
77
78
void champlain_map_source_chain_push (ChamplainMapSourceChain *source_chain,
79
    ChamplainMapSource *map_source);
80
void champlain_map_source_chain_pop (ChamplainMapSourceChain *source_chain);
81
82
G_END_DECLS
83
84
#endif /* _CHAMPLAIN_MAP_SOURCE_CHAIN_H_ */