File: maps-file-data-source.h

package info (click to toggle)
gnome-maps 49.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,528 kB
  • sloc: javascript: 24,148; ansic: 3,301; xml: 299; makefile: 10; sh: 4
file content (73 lines) | stat: -rw-r--r-- 2,266 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
 * Copyright (c) 2015 Jonas Danielsson
 *
 * GNOME Maps is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by the
 * Free Software Foundation; either version 2 of the License, or (at your
 * option) any later version.
 *
 * GNOME Maps is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with GNOME Maps; if not, see <http://www.gnu.org/licenses/>.
 *
 * Author: Jonas Danielsson <jonas@threetimestwo.org>
 */

#ifndef _MAPS_FILE_DATA_SOURCE_H_
#define _MAPS_FILE_DATA_SOURCE_H_

#include <shumate/shumate.h>

G_BEGIN_DECLS

#define MAPS_TYPE_FILE_DATA_SOURCE maps_file_data_source_get_type ()

#define MAPS_FILE_DATA_SOURCE(obj) \
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), MAPS_TYPE_FILE_DATA_SOURCE, MapsFileDataSource))

#define MAPS_FILE_DATA_SOURCE_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_CAST ((klass), MAPS_TYPE_FILE_DATA_SOURCE, MapsFileDataSourceClass))

#define MAPS_IS_FILE_DATA_SOURCE(obj) \
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MAPS_TYPE_FILE_DATA_SOURCE))

#define MAPS_IS_FILE_DATA_SOURCE_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_TYPE ((klass), MAPS_TYPE_FILE_DATA_SOURCE))

#define MAPS_FILE_DATA_SOURCE_GET_CLASS(obj) \
  (G_TYPE_INSTANCE_GET_CLASS ((obj), MAPS_TYPE_FILE_TILE_SOURCE, MapsFileDataSourceClass))

typedef struct _MapsFileDataSourcePrivate MapsFileDataSourcePrivate;

typedef struct _MapsFileDataSource MapsFileDataSource;
typedef struct _MapsFileDataSourceClass MapsFileDataSourceClass;

/**
 * MapsFileDataSource:
 *
 * The #MapsFileDataSource structure contains only private data
 * and should be accessed using the provided API
 *
 */
struct _MapsFileDataSource
{
  ShumateDataSource parent_instance;

  MapsFileDataSourcePrivate *priv;
};

struct _MapsFileDataSourceClass
{
  ShumateDataSourceClass parent_class;
};

GType maps_file_data_source_get_type (void);

gboolean maps_file_data_source_prepare (MapsFileDataSource *data_source, GError **error);
G_END_DECLS

#endif /* _MAPS_FILE_DATA_SOURCE_H_ */