~darkxst/ubuntu/saucy/gdm/lp1212408

« back to all changes in this revision

Viewing changes to daemon/gdm-daemon-config.h

  • Committer: Bazaar Package Importer
  • Author(s): Josselin Mouette
  • Date: 2008-09-02 10:37:20 UTC
  • mfrom: (1.4.27 upstream)
  • mto: This revision was merged to the branch mainline in revision 261.
  • Revision ID: james.westby@ubuntu.com-20080902103720-p810vv530hqj45wg
Tags: 2.20.7-3
* Install the debian-moreblue-orbit theme, thanks Andre Luiz Rodrigues 
  Ferreira. Closes: #497440.
* 35_gdm.conf.patch: make it the default.
* copyright: fix encoding.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
 
2
 *
 
3
 * GDM - The GNOME Display Manager
 
4
 * Copyright (C) 1998, 1999, 2000 Martin K. Petersen <mkp@mkp.net>
 
5
 * Copyright (C) 2005 Sun Microsystems, Inc.
 
6
 *
 
7
 * This program is free software; you can redistribute it and/or modify
 
8
 * it under the terms of the GNU General Public License as published by
 
9
 * the Free Software Foundation; either version 2 of the License, or
 
10
 * (at your option) any later version.
 
11
 *
 
12
 * This program is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 * GNU General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU General Public License
 
18
 * along with this program; if not, write to the Free Software
 
19
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
20
 */
 
21
 
 
22
#ifndef _GDM_DAEMON_CONFIG_H
 
23
#define _GDM_DAEMON_CONFIG_H
 
24
 
 
25
#include "server.h"
 
26
#include "gdm-daemon-config-entries.h"
 
27
 
 
28
G_BEGIN_DECLS
 
29
 
 
30
const char *   gdm_daemon_config_get_string_for_id    (int id);
 
31
gboolean       gdm_daemon_config_get_bool_for_id      (int id);
 
32
int            gdm_daemon_config_get_int_for_id       (int id);
 
33
 
 
34
void           gdm_daemon_config_parse                (const char *config_file,
 
35
                                                       gboolean    no_console);
 
36
GdmXserver *   gdm_daemon_config_find_xserver         (const char *id);
 
37
char *         gdm_daemon_config_get_xservers         (void);
 
38
GSList *       gdm_daemon_config_get_display_list     (void);
 
39
GSList *       gdm_daemon_config_display_list_append  (GdmDisplay *display);
 
40
GSList *       gdm_daemon_config_display_list_insert  (GdmDisplay *display);
 
41
GSList *       gdm_daemon_config_display_list_remove  (GdmDisplay *display);
 
42
uid_t          gdm_daemon_config_get_gdmuid           (void);
 
43
uid_t          gdm_daemon_config_get_gdmgid           (void);
 
44
gint           gdm_daemon_config_get_high_display_num (void);
 
45
void           gdm_daemon_config_set_high_display_num (gint val);
 
46
void           gdm_daemon_config_close                (void);
 
47
 
 
48
/* deprecated */
 
49
char *         gdm_daemon_config_get_display_custom_config_file (const char *display);
 
50
char *         gdm_daemon_config_get_custom_config_file (void);
 
51
 
 
52
 
 
53
const char *   gdm_daemon_config_get_value_string     (const char *key);
 
54
const char **  gdm_daemon_config_get_value_string_array (const char *key);
 
55
gboolean       gdm_daemon_config_get_value_bool       (const char *key);
 
56
gint           gdm_daemon_config_get_value_int        (const char *key);
 
57
char *         gdm_daemon_config_get_value_string_per_display (const char *key,
 
58
                                                               const char *display);
 
59
gboolean       gdm_daemon_config_get_value_bool_per_display   (const char *key,
 
60
                                                               const char *display);
 
61
gint           gdm_daemon_config_get_value_int_per_display    (const char *key,
 
62
                                                               const char *display);
 
63
 
 
64
void           gdm_daemon_config_set_value_string     (const char *key,
 
65
                                                       const char *value);
 
66
void           gdm_daemon_config_set_value_bool       (const char *key,
 
67
                                                       gboolean value);
 
68
void           gdm_daemon_config_set_value_int        (const char *key,
 
69
                                                       gint value);
 
70
 
 
71
 
 
72
gboolean       gdm_daemon_config_key_to_string_per_display (const char *display,
 
73
                                                            const char *key,
 
74
                                                            char **retval);
 
75
gboolean       gdm_daemon_config_key_to_string        (const char *file,
 
76
                                                       const char *key,
 
77
                                                       char **retval);
 
78
gboolean       gdm_daemon_config_to_string            (const char *key,
 
79
                                                       const char *display,
 
80
                                                       char **retval);
 
81
gboolean       gdm_daemon_config_update_key           (const char *key);
 
82
 
 
83
 
 
84
int            gdm_daemon_config_compare_displays     (gconstpointer a,
 
85
                                                       gconstpointer b);
 
86
gboolean       gdm_daemon_config_is_valid_key         (const char *key);
 
87
gboolean       gdm_daemon_config_signal_terminthup_was_notified  (void);
 
88
 
 
89
char *         gdm_daemon_config_get_facefile_from_home (const char *homedir,
 
90
                                                         guint uid);
 
91
char *         gdm_daemon_config_get_facefile_from_global (const char *username,
 
92
                                                           guint uid);
 
93
void           gdm_daemon_config_get_user_session_lang (char **usrsess,
 
94
                                                        char **usrlang,
 
95
                                                        const char *homedir,
 
96
                                                        gboolean *savesess);
 
97
void           gdm_daemon_config_set_user_session_lang (gboolean savesess,
 
98
                                                        gboolean savelang,
 
99
                                                        const char *home_dir,
 
100
                                                        const char *save_session,
 
101
                                                        const char *save_language);
 
102
char *         gdm_daemon_config_get_session_exec     (const char *session_name,
 
103
                                                       gboolean check_try_exec);
 
104
char *         gdm_daemon_config_get_session_xserver_args (const char *session_name);
 
105
 
 
106
 
 
107
G_END_DECLS
 
108
 
 
109
#endif /* _GDM_DAEMON_CONFIG_H */