[dconf] header cleanup
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf] header cleanup
- Date: Mon, 19 Jul 2010 03:40:13 +0000 (UTC)
commit 0444465d738b2632cc23614501202dac7e68abfd
Author: Ryan Lortie <desrt desrt ca>
Date: Sun Jul 18 23:39:52 2010 -0400
header cleanup
bin/dconf-update.vala | 21 +++++++++++++++++++++
bin/dconf.vala | 21 ++++++++++++++++++++-
client/dconf-client.h | 6 +++---
client/dconf.h | 6 +++---
common/dconf-paths.h | 6 +++---
common/dconf-shmdir.c | 21 +++++++++++++++++++++
common/dconf-shmdir.h | 26 ++++++++++++++++++++++++++
engine/dconf-engine.c | 20 ++++++++++++++++++++
engine/dconf-engine.h | 27 ++++++++++++++++++++++++---
engine/dconf-readtype.h | 6 +++---
engine/dconf-resetlist.h | 6 +++---
service/dconf-interfaces.c | 21 +++++++++++++++++++++
service/dconf-interfaces.h | 26 ++++++++++++++++++++++++++
service/dconf-rebuilder.h | 5 +++++
service/dconf-writer.c | 21 +++++++++++++++++++++
service/dconf-writer.h | 26 ++++++++++++++++++++++++++
16 files changed, 246 insertions(+), 19 deletions(-)
---
diff --git a/bin/dconf-update.vala b/bin/dconf-update.vala
index 4bfcd18..5171192 100644
--- a/bin/dconf-update.vala
+++ b/bin/dconf-update.vala
@@ -1,3 +1,24 @@
+/*
+ * 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>
+ */
+
unowned Gvdb.Item get_parent (Gvdb.HashTable table, string name) {
unowned Gvdb.Item parent;
diff --git a/bin/dconf.vala b/bin/dconf.vala
index 16c3e6f..2bc2ab1 100644
--- a/bin/dconf.vala
+++ b/bin/dconf.vala
@@ -1,4 +1,23 @@
-
+/*
+ * 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>
+ */
void do_read (DConf.Client client, string key) throws Error {
DConf.verify_key (key);
diff --git a/client/dconf-client.h b/client/dconf-client.h
index d4d3eab..13dc558 100644
--- a/client/dconf-client.h
+++ b/client/dconf-client.h
@@ -19,8 +19,8 @@
* Author: Ryan Lortie <desrt desrt ca>
*/
-#ifndef _dconf_client_h_
-#define _dconf_client_h_
+#ifndef __dconf_client_h__
+#define __dconf_client_h__
#include <gio/gio.h>
@@ -136,4 +136,4 @@ gboolean dconf_client_unwatch_finish (DConfCl
gpointer user_data);
G_END_DECLS
-#endif
+#endif /* __dconf_client_h__ */
diff --git a/client/dconf.h b/client/dconf.h
index dfec387..77f1154 100644
--- a/client/dconf.h
+++ b/client/dconf.h
@@ -19,10 +19,10 @@
* Author: Ryan Lortie <desrt desrt ca>
*/
-#ifndef _dconf_h_
-#define _dconf_h_
+#ifndef __dconf_h__
+#define __dconf_h__
#include <dconf-paths.h>
#include <dconf-client.h>
-#endif /* _dconf_h_ */
+#endif /* __dconf_h__ */
diff --git a/common/dconf-paths.h b/common/dconf-paths.h
index 6697a86..fa4d1e9 100644
--- a/common/dconf-paths.h
+++ b/common/dconf-paths.h
@@ -20,8 +20,8 @@
* Author: Ryan Lortie <desrt desrt ca>
*/
-#ifndef _dconf_common_h_
-#define _dconf_common_h_
+#ifndef __dconf_common_h__
+#define __dconf_common_h__
#include <glib.h>
@@ -39,4 +39,4 @@ gboolean dconf_is_rel_key (const g
gboolean dconf_is_rel_dir (const gchar *string,
GError **error);
-#endif /* _dconf_common_h_ */
+#endif /* __dconf_common_h__ */
diff --git a/common/dconf-shmdir.c b/common/dconf-shmdir.c
index 4eaa376..e1e8fdf 100644
--- a/common/dconf-shmdir.c
+++ b/common/dconf-shmdir.c
@@ -1,3 +1,24 @@
+/*
+ * 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-shmdir.h"
#include <sys/statfs.h>
diff --git a/common/dconf-shmdir.h b/common/dconf-shmdir.h
index 953d856..38fda74 100644
--- a/common/dconf-shmdir.h
+++ b/common/dconf-shmdir.h
@@ -1,3 +1,29 @@
+/*
+ * 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>
+ */
+
+#ifndef __dconf_shmdir_h__
+#define __dconf_shmdir_h__
+
#include <glib.h>
gchar *dconf_shmdir_from_environment (void);
+
+#endif /* __dconf_shmdir_h__ */
diff --git a/engine/dconf-engine.c b/engine/dconf-engine.c
index 02e5bf3..cd05c79 100644
--- a/engine/dconf-engine.c
+++ b/engine/dconf-engine.c
@@ -1,3 +1,23 @@
+/*
+ * 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>
+ */
#define _XOPEN_SOURCE 600
#include "dconf-shmdir.h"
diff --git a/engine/dconf-engine.h b/engine/dconf-engine.h
index 2beda07..83c80ef 100644
--- a/engine/dconf-engine.h
+++ b/engine/dconf-engine.h
@@ -1,5 +1,26 @@
-#ifndef _dconf_engine_h_
-#define _dconf_engine_h_
+/*
+ * 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>
+ */
+
+#ifndef __dconf_engine_h__
+#define __dconf_engine_h__
#include <dconf-readtype.h>
#include <dconf-resetlist.h>
@@ -84,4 +105,4 @@ gboolean dconf_engine_interpret_reply (DConfEn
gchar **tag,
GError **error);
-#endif /* _dconf_engine_h_ */
+#endif /* __dconf_engine_h__ */
diff --git a/engine/dconf-readtype.h b/engine/dconf-readtype.h
index fd4ee46..68c4f13 100644
--- a/engine/dconf-readtype.h
+++ b/engine/dconf-readtype.h
@@ -1,5 +1,5 @@
-#ifndef _dconf_readtype_h_
-#define _dconf_readtype_h_
+#ifndef __dconf_readtype_h__
+#define __dconf_readtype_h__
typedef enum
{
@@ -8,4 +8,4 @@ typedef enum
DCONF_READ_RESET
} DConfReadType;
-#endif
+#endif /* __dconf_readtype_h__ */
diff --git a/engine/dconf-resetlist.h b/engine/dconf-resetlist.h
index afaf545..ee9d13b 100644
--- a/engine/dconf-resetlist.h
+++ b/engine/dconf-resetlist.h
@@ -1,5 +1,5 @@
-#ifndef _dconf_resetlist_h_
-#define _dconf_resetlist_h_
+#ifndef __dconf_resetlist_h__
+#define __dconf_resetlist_h__
#include <glib.h>
@@ -17,4 +17,4 @@ void dconf_reset_list_add (DConfRe
void dconf_reset_list_clear (DConfResetList *list);
-#endif
+#endif /* __dconf_resetlist_h__ */
diff --git a/service/dconf-interfaces.c b/service/dconf-interfaces.c
index 34989a7..c50232d 100644
--- a/service/dconf-interfaces.c
+++ b/service/dconf-interfaces.c
@@ -1,3 +1,24 @@
+/*
+ * 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-interfaces.h"
static const GDBusArgInfo name_arg = { -1, (gchar *) "name", (gchar *) "s" };
diff --git a/service/dconf-interfaces.h b/service/dconf-interfaces.h
index d8af50d..9f159b1 100644
--- a/service/dconf-interfaces.h
+++ b/service/dconf-interfaces.h
@@ -1,4 +1,30 @@
+/*
+ * 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>
+ */
+
+#ifndef __dconf_interfaces_h__
+#define __dconf_interfaces_h__
+
#include <gio/gio.h>
extern const GDBusInterfaceInfo ca_desrt_dconf_Writer;
extern const GDBusInterfaceInfo ca_desrt_dconf_WriterInfo;
+
+#endif /* __dconf_interfaces_h__ */
diff --git a/service/dconf-rebuilder.h b/service/dconf-rebuilder.h
index 57f6974..1aa06de 100644
--- a/service/dconf-rebuilder.h
+++ b/service/dconf-rebuilder.h
@@ -19,6 +19,9 @@
* Author: Ryan Lortie <desrt desrt ca>
*/
+#ifndef __dconf_rebuilder_h__
+#define __dconf_rebuilder_h__
+
#include <glib.h>
gboolean dconf_rebuilder_rebuild (const gchar *filename,
@@ -27,3 +30,5 @@ gboolean dconf_rebuilder_rebuild (const gchar *filename,
GVariant *const*values,
gint n_items,
GError **error);
+
+#endif /* __dconf_rebuilder_h__ */
diff --git a/service/dconf-writer.c b/service/dconf-writer.c
index b120c73..00dac13 100644
--- a/service/dconf-writer.c
+++ b/service/dconf-writer.c
@@ -1,3 +1,24 @@
+/*
+ * 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-writer.h"
#include "dconf-shmdir.h"
diff --git a/service/dconf-writer.h b/service/dconf-writer.h
index 19b0945..8dc1d9d 100644
--- a/service/dconf-writer.h
+++ b/service/dconf-writer.h
@@ -1,3 +1,27 @@
+/*
+ * 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>
+ */
+
+#ifndef __dconf_writer_h__
+#define __dconf_writer_h__
+
#include <glib.h>
typedef struct OPAQUE_TYPE__DConfWriter DConfWriter;
@@ -20,3 +44,5 @@ gboolean dconf_writer_set_lock (DConfWr
const gchar *name,
gboolean locked,
GError **error);
+
+#endif /* __dconf_writer_h__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]