Don't crash when doing stuff to empty windows
[yelp.git] / libyelp / yelp-sqlite-storage.h
blob56ebddd226796a7dbd563a9ea02cb6c9709de53f
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * Copyright (C) 2011 Shaun McCance <shaunm@gnome.org>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General
16 * Public License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
18 * Boston, MA 02111-1307, USA.
20 * Author: Shaun McCance <shaunm@gnome.org>
23 #ifndef __YELP_SQLITE_STORAGE_H__
24 #define __YELP_SQLITE_STORAGE_H__
26 #include <glib-object.h>
28 #include "yelp-storage.h"
30 G_BEGIN_DECLS
32 #define YELP_TYPE_SQLITE_STORAGE (yelp_sqlite_storage_get_type ())
33 #define YELP_SQLITE_STORAGE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), YELP_TYPE_SQLITE_STORAGE, YelpSqliteStorage))
34 #define YELP_SQLITE_STORAGE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), YELP_TYPE_SQLITE_STORAGE, YelpSqliteStorageClass))
35 #define YELP_IS_SQLITE_STORAGE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), YELP_TYPE_SQLITE_STORAGE))
36 #define YELP_IS_SQLITE_STORAGE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), YELP_TYPE_SQLITE_STORAGE))
37 #define YELP_SQLITE_STORAGE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), YELP_TYPE_SQLITE_STORAGE, YelpSqliteStorageClass))
39 typedef struct _YelpSqliteStorage YelpSqliteStorage;
40 typedef struct _YelpSqliteStorageClass YelpSqliteStorageClass;
42 struct _YelpSqliteStorage {
43 GObject parent_instance;
46 struct _YelpSqliteStorageClass {
47 GObjectClass parent_class;
50 GType yelp_sqlite_storage_get_type (void);
52 YelpStorage * yelp_sqlite_storage_new (const gchar *filename);
54 G_END_DECLS
56 #endif /* __YELP_SQLITE_STORAGE_H__ */