diff options
author | Ryan Lortie <desrt@desrt.ca> | 2012-10-23 10:11:08 +0200 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2012-10-23 10:19:32 +0200 |
commit | 324df561617b777848b149416f0f6c0c3801b2d8 (patch) | |
tree | cf03127a19de5ace0f6d0976975bbe055455a36f /service/main.c | |
parent | 004f135e50164dc409bd6de74bc9ee3fe61da3e9 (diff) | |
download | dconf-324df561617b777848b149416f0f6c0c3801b2d8.tar.gz |
service: rewrite
Rewrite the dconf-service using gdbus-codegen and generally cleaning
things up a lot. The DConfWriter class can now be reasonably subclassed
to create more complex types of dconf databases (such as ones that
are stored in the local runtime dir and synced up with an NFS home
directory).
Keep a cache of the keys in the database (instead of re-reading it every
time we try to make a change).
Drop support for the old D-Bus interface (now that we are two stable
releases since it was used).
Modify the commandline tool for 'dconf blame' to call the new interface.
Diffstat (limited to 'service/main.c')
-rw-r--r-- | service/main.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/service/main.c b/service/main.c new file mode 100644 index 0000000..023abe3 --- /dev/null +++ b/service/main.c @@ -0,0 +1,35 @@ +/* + * Copyright © 2010 Codethink Limited + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the licence, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Ryan Lortie <desrt@desrt.ca> + */ + +#include "dconf-service.h" + +int +main (int argc, char **argv) +{ + GApplication *app; + gint status; + + app = dconf_service_new (); + status = g_application_run (app, argc, argv); + g_object_unref (app); + + return status; +} |