source: proiecte/PPPP/gdm/common/gdm-settings-client.h @ 134

Last change on this file since 134 was 134, checked in by (none), 14 years ago

gdm sources with the modifications for webcam

File size: 3.6 KB
Line 
1/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
2 *
3 * Copyright (C) 2007 William Jon McCann <mccann@jhu.edu>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program 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
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 *
19 */
20
21
22#ifndef __GDM_SETTINGS_CLIENT_H
23#define __GDM_SETTINGS_CLIENT_H
24
25#include <glib-object.h>
26#include "gdm-settings-utils.h"
27
28G_BEGIN_DECLS
29
30typedef void        (*GdmSettingsClientNotifyFunc)        (guint             id,
31                                                           GdmSettingsEntry *entry,
32                                                           gpointer          user_data);
33
34gboolean              gdm_settings_client_init                       (const char                 *schemas_file,
35                                                                      const char                 *root);
36void                  gdm_settings_client_shutdown                   (void);
37
38gboolean              gdm_settings_client_get_int                    (const char                 *key,
39                                                                      int                        *value);
40gboolean              gdm_settings_client_get_boolean                (const char                 *key,
41                                                                      gboolean                   *value);
42gboolean              gdm_settings_client_get_string                 (const char                 *key,
43                                                                      char                      **value);
44gboolean              gdm_settings_client_get_locale_string          (const char                 *key,
45                                                                      const char                 *locale,
46                                                                      char                      **value);
47
48gboolean              gdm_settings_client_set_int                    (const char                 *key,
49                                                                      int                         value);
50gboolean              gdm_settings_client_set_boolean                (const char                 *key,
51                                                                      gboolean                    value);
52gboolean              gdm_settings_client_set_string                 (const char                 *key,
53                                                                      const char                 *value);
54
55guint                 gdm_settings_client_notify_add                 (const char                 *namespace_section,
56                                                                      GdmSettingsClientNotifyFunc func,
57                                                                      gpointer                    user_data,
58                                                                      GFreeFunc                   destroy_notify);
59void                  gdm_settings_client_notify_remove              (guint                       id);
60
61G_END_DECLS
62
63#endif /* __GDM_SETTINGS_CLIENT_H */
Note: See TracBrowser for help on using the repository browser.