1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
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.
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.
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.
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
22
#ifndef _GDM_DAEMON_CONFIG_H
23
#define _GDM_DAEMON_CONFIG_H
26
#include "gdm-daemon-config-entries.h"
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);
34
void gdm_daemon_config_parse (const char *config_file,
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);
49
char * gdm_daemon_config_get_display_custom_config_file (const char *display);
50
char * gdm_daemon_config_get_custom_config_file (void);
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,
59
gboolean gdm_daemon_config_get_value_bool_per_display (const char *key,
61
gint gdm_daemon_config_get_value_int_per_display (const char *key,
64
void gdm_daemon_config_set_value_string (const char *key,
66
void gdm_daemon_config_set_value_bool (const char *key,
68
void gdm_daemon_config_set_value_int (const char *key,
72
gboolean gdm_daemon_config_key_to_string_per_display (const char *display,
75
gboolean gdm_daemon_config_key_to_string (const char *file,
78
gboolean gdm_daemon_config_to_string (const char *key,
81
gboolean gdm_daemon_config_update_key (const char *key);
84
int gdm_daemon_config_compare_displays (gconstpointer a,
86
gboolean gdm_daemon_config_is_valid_key (const char *key);
87
gboolean gdm_daemon_config_signal_terminthup_was_notified (void);
89
char * gdm_daemon_config_get_facefile_from_home (const char *homedir,
91
char * gdm_daemon_config_get_facefile_from_global (const char *username,
93
void gdm_daemon_config_get_user_session_lang (char **usrsess,
97
void gdm_daemon_config_set_user_session_lang (gboolean savesess,
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);
109
#endif /* _GDM_DAEMON_CONFIG_H */