2 * Copyright © 2010 Codethink Limited
3 * Copyright © 2012 Canonical Limited
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 licence, 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 Public
16 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
18 * Author: Ryan Lortie <desrt@desrt.ca>
21 #ifndef __dconf_engine_source_h__
22 #define __dconf_engine_source_h__
24 #include "../gvdb/gvdb-reader.h"
27 typedef struct _DConfEngineSourceVTable DConfEngineSourceVTable
;
28 typedef struct _DConfEngineSource DConfEngineSource
;
30 struct _DConfEngineSourceVTable
34 void (* init
) (DConfEngineSource
*source
);
35 void (* finalize
) (DConfEngineSource
*source
);
36 gboolean (* needs_reopen
) (DConfEngineSource
*source
);
37 GvdbTable
* (* reopen
) (DConfEngineSource
*source
);
40 struct _DConfEngineSource
42 const DConfEngineSourceVTable
*vtable
;
55 void dconf_engine_source_free (DConfEngineSource
*source
);
58 gboolean
dconf_engine_source_refresh (DConfEngineSource
*source
);
61 DConfEngineSource
* dconf_engine_source_new (const gchar
*name
);
64 DConfEngineSource
* dconf_engine_source_new_default (void);
66 #endif /* __dconf_engine_source_h__ */