/* GDM - The Gnome Display Manager * Copyright (C) 1999, 2000 Martin K. Petersen * * This file Copyright (c) 2003 George Lebl * - Common routines for the greeters. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef GDM_COMMON_H #define GDM_COMMON_H #include #include "misc.h" /* Handle error messages */ void gdm_common_openlog (const char *ident, int logopt, int facility); void gdm_common_fail_exit (const gchar *format, ...) G_GNUC_PRINTF (1, 2); void gdm_common_fail_greeter (const gchar *format, ...) G_GNUC_PRINTF (1, 2); void gdm_common_info (const gchar *format, ...) G_GNUC_PRINTF (1, 2); void gdm_common_error (const gchar *format, ...) G_GNUC_PRINTF (1, 2); void gdm_common_warning (const gchar *format, ...) G_GNUC_PRINTF (1, 2); void gdm_common_debug (const gchar *format, ...) G_GNUC_PRINTF (1, 2); /* Misc. Common Functions */ void gdm_common_setup_cursor (GdkCursorType type); void gdm_common_login_sound (const gchar *GdmSoundProgram, const gchar *GdmSoundOnLoginReadyFile, gboolean GdmSoundOnLoginReady); void gdm_common_setup_blinking (void); void gdm_common_setup_blinking_entry (GtkWidget *entry); GdkPixbuf *gdm_common_get_face (const char *filename, const char *fallback_filename, guint max_width, guint max_height); gchar* gdm_common_get_config_file (void); gchar* gdm_common_get_custom_config_file (void); gboolean gdm_common_select_time_format (void); void gdm_common_setup_background_color (gchar *bg_color); gchar* gdm_common_get_welcomemsg (void); void gdm_common_pre_fetch_launch (void); gchar* gdm_common_expand_text (const gchar *text); gchar* gdm_common_get_clock (struct tm **the_tm); #endif /* GDM_COMMON_H */