OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef BUILD_LINUX_GSETTINGS_H_ |
| 6 #define BUILD_LINUX_GSETTINGS_H_ |
| 7 |
| 8 #include <gio/gio.h> |
| 9 |
| 10 // The GSettings API was not part of GIO until GIO version 2.26, |
| 11 // while Ubuntu 10.04 Lucid ships with version 2.24. |
| 12 // |
| 13 // To allow compiling on Lucid those forward declarations are provided. |
| 14 // |
| 15 // If compiling with GIO version 2.26, these won't conflict, |
| 16 // because they're identical to the types defined. |
| 17 // |
| 18 // TODO(phajdan.jr): This will no longer be needed after switch to Precise, |
| 19 // see http://crbug.com/158577 . |
| 20 struct _GSettings; |
| 21 typedef struct _GSettings GSettings; |
| 22 GSettings* g_settings_new(const gchar* schema); |
| 23 GSettings* g_settings_get_child(GSettings* settings, const gchar* name); |
| 24 gboolean g_settings_get_boolean(GSettings* settings, const gchar* key); |
| 25 gchar* g_settings_get_string(GSettings* settings, const gchar* key); |
| 26 gint g_settings_get_int(GSettings* settings, const gchar* key); |
| 27 gchar** g_settings_get_strv(GSettings* settings, const gchar* key); |
| 28 const gchar* const* g_settings_list_schemas(); |
| 29 |
| 30 #endif // BUILD_LINUX_GSETTINGS_H_ |
OLD | NEW |