udapted vi.po
[rhythmbox.git] / rhythmdb / rhythmdb-tree.h
blobfaf9cf1d43f7f35cf29a5c874be17af9caf18bf1
1 /*
2 * arch-tag: Header for RhythmDB tree-structured database implementation
4 * Copyright (C) 2003 Colin Walters <walters@rhythmbox.org>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef RHYTHMDB_TREE_H
23 #define RHYTHMDB_TREE_H
25 #include "rhythmdb-private.h"
26 #include <glib-object.h>
27 #include <glib/gatomic.h>
29 G_BEGIN_DECLS
31 #define RHYTHMDB_TYPE_TREE (rhythmdb_tree_get_type ())
32 #define RHYTHMDB_TREE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), RHYTHMDB_TYPE_TREE, RhythmDBTree))
33 #define RHYTHMDB_TREE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), RHYTHMDB_TREE_TYPE, RhythmDBTreeClass))
34 #define RHYTHMDB_IS_TREE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), RHYTHMDB_TYPE_TREE))
35 #define RHYTHMDB_IS_TREE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), RHYTHMDB_TYPE_TREE))
36 #define RHYTHMDB_TREE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RHYTHMDB_TYPE_TREE, RhythmDBTreeClass))
38 typedef struct RhythmDBTreePrivate RhythmDBTreePrivate;
40 /* RhythmDBEntry flags */
41 enum {
42 RHYTHMDB_ENTRY_TREE_LOADING = RHYTHMDB_ENTRY_PRIVATE_FLAG_BASE,
45 typedef enum
47 RHYTHMDB_TREE_ERROR_DATABASE_TOO_NEW,
48 } RhythmTreeDBError;
50 #define RHYTHMDB_TREE_ERROR (rhythmdb_tree_error_quark ())
52 GQuark rhythmdb_tree_error_quark (void);
54 typedef struct
56 RhythmDB parent;
58 RhythmDBTreePrivate *priv;
59 } RhythmDBTree;
61 typedef struct
63 RhythmDBClass parent;
65 } RhythmDBTreeClass;
67 GType rhythmdb_tree_get_type (void);
69 RhythmDB * rhythmdb_tree_new (const char *name);
71 G_END_DECLS
73 #endif /* __RHYTHMBDB_TREE_H */