Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(360)

Side by Side Diff: build/linux/gsettings.h

Issue 11348279: Linux: use generated library loader for gsettings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Lucid Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | build/linux/system.gyp » ('j') | build/linux/system.gyp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 // We replicate the prototypes for the g_settings APIs we need. We may not
11 // even be compiling on a system that has them.
12 // TODO(phajdan.jr): This will no longer be needed after switch to Precise,
13 // see http://crbug.com/158577 .
Ryan Sleevi 2012/11/29 21:51:04 nit: Can you rewrite this comment to provide clear
Paweł Hajdan Jr. 2012/11/29 22:29:00 Done.
14 struct _GSettings;
15 typedef struct _GSettings GSettings;
Ryan Sleevi 2012/11/29 21:51:04 I don't think this will work. In the original cod
Paweł Hajdan Jr. 2012/11/29 22:29:00 Green trybot compiles contradict your comment. It
Ryan Sleevi 2012/11/29 23:02:58 C forbids this. C++ allows this. You're getting lu
16 GSettings* g_settings_new(const gchar* schema);
17 GSettings* g_settings_get_child(GSettings* settings, const gchar* name);
18 gboolean g_settings_get_boolean(GSettings* settings, const gchar* key);
19 gchar* g_settings_get_string(GSettings* settings, const gchar* key);
20 gint g_settings_get_int(GSettings* settings, const gchar* key);
21 gchar** g_settings_get_strv(GSettings* settings, const gchar* key);
22 const gchar* const* g_settings_list_schemas();
Ryan Sleevi 2012/11/29 21:51:04 In the existing code, these forward declarations w
Paweł Hajdan Jr. 2012/11/29 22:29:00 Nope, when linking directly system header will be
23
24 #endif // BUILD_LINUX_GSETTINGS_H_
OLDNEW
« no previous file with comments | « no previous file | build/linux/system.gyp » ('j') | build/linux/system.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698