diff options
author | William Jon McCann <mccann@jhu.edu> | 2007-10-29 21:06:50 +0000 |
---|---|---|
committer | William Jon McCann <mccann@src.gnome.org> | 2007-10-29 21:06:50 +0000 |
commit | 613d29b63282b97e0a7a35514e1989a854e8566f (patch) | |
tree | 5e3adf337ec2922336d56bbd74cff41af26261ce /daemon/gdm-session.h | |
parent | 327b2e24e6711e1717676900458a9885c4d4c686 (diff) | |
download | gdm-613d29b63282b97e0a7a35514e1989a854e8566f.tar.gz |
Rename GdmSession to GdmSessionDirect in preparation for adding a
2007-10-29 William Jon McCann <mccann@jhu.edu>
* daemon/Makefile.am:
* daemon/gdm-product-slave.c: (on_session_opened),
(on_session_started), (on_session_exited), (on_session_died),
(slave_open_ck_session), (setup_session_environment),
(setup_session), (on_session_user_verified),
(on_session_user_verification_error), (on_session_info),
(on_session_problem), (on_session_info_query),
(on_session_secret_info_query), (on_relay_begin_verification),
(on_relay_begin_verification_for_user), (on_relay_answer),
(reset_session), (on_relay_open), (create_new_session),
(on_relay_cancelled), (gdm_product_slave_stop):
* daemon/gdm-session-direct.c: (gdm_session_direct_error_quark),
(send_dbus_string_signal),
(gdm_session_direct_user_verification_error_handler),
(gdm_session_direct_started_handler),
(gdm_session_direct_startup_error_handler),
(gdm_session_direct_exited_handler),
(gdm_session_direct_class_install_signals),
(gdm_session_direct_finalize), (gdm_session_direct_class_init),
(gdm_session_direct_handle_verified),
(gdm_session_direct_handle_verification_failed),
(gdm_session_direct_handle_username_changed),
(cancel_pending_query), (answer_pending_query),
(set_pending_query), (gdm_session_direct_handle_info_query),
(gdm_session_direct_handle_secret_info_query),
(gdm_session_direct_handle_info),
(gdm_session_direct_handle_problem),
(gdm_session_direct_handle_session_started),
(gdm_session_direct_handle_startup_failed),
(gdm_session_direct_handle_session_exited),
(gdm_session_direct_handle_session_died), (session_worker_message),
(handle_connection), (setup_server), (gdm_session_direct_init),
(gdm_session_direct_new), (worker_stopped), (worker_started),
(worker_exited), (worker_died), (start_worker),
(gdm_session_direct_open), (send_begin_verification),
(send_begin_verification_for_user),
(gdm_session_direct_begin_verification),
(send_environment_variable), (send_environment),
(gdm_session_direct_start_program), (gdm_session_direct_close),
(gdm_session_direct_is_running),
(gdm_session_direct_set_environment_variable),
(gdm_session_direct_answer_query),
(gdm_session_direct_get_username):
* daemon/gdm-session-direct.h:
* daemon/gdm-session-relay.h:
* daemon/gdm-session.c:
* daemon/gdm-session.h:
* daemon/gdm-simple-slave.c: (on_session_started),
(on_session_exited), (on_session_died), (add_user_authorization),
(slave_open_ck_session), (setup_session_environment),
(on_session_user_verified), (on_session_user_verification_error),
(on_session_info), (on_session_problem), (on_session_info_query),
(on_session_secret_info_query), (on_session_opened),
(create_new_session), (on_greeter_begin_verification),
(on_greeter_begin_verification_for_user), (on_greeter_answer),
(on_greeter_cancel), (on_greeter_connected),
(gdm_simple_slave_stop):
* daemon/gdm-slave.c:
* daemon/test-session.c: (on_open), (on_session_started),
(on_session_exited), (on_session_died), (on_user_verified),
(on_user_verification_error), (on_info_query), (on_info),
(on_problem), (on_secret_info_query), (import_environment), (main):
Rename GdmSession to GdmSessionDirect in preparation for adding
a GdmSession interface. Naming is hard.
svn path=/trunk/; revision=5451
Diffstat (limited to 'daemon/gdm-session.h')
-rw-r--r-- | daemon/gdm-session.h | 127 |
1 files changed, 0 insertions, 127 deletions
diff --git a/daemon/gdm-session.h b/daemon/gdm-session.h deleted file mode 100644 index fc6d183d..00000000 --- a/daemon/gdm-session.h +++ /dev/null @@ -1,127 +0,0 @@ -/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- - * - * Copyright (C) 2006 Ray Strode <rstrode@redhat.com> - * - * 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, 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_SESSION_H -#define __GDM_SESSION_H - -#include <glib-object.h> - -G_BEGIN_DECLS - -#define GDM_TYPE_SESSION (gdm_session_get_type ()) -#define GDM_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDM_TYPE_SESSION, GdmSession)) -#define GDM_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDM_TYPE_SESSION, GdmSessionClass)) -#define GDM_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDM_TYPE_SESSION)) -#define GDM_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDM_TYPE_SESSION)) -#define GDM_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GDM_TYPE_SESSION, GdmSessionClass)) -#define GDM_SESSION_ERROR (gdm_session_error_quark ()) - -typedef struct _GdmSessionPrivate GdmSessionPrivate; - -typedef struct -{ - GObject parent; - - /*< private > */ - GdmSessionPrivate *priv; -} GdmSession; - -typedef struct -{ - GObjectClass parent_class; - - /* signals */ - void (* opened) (GdmSession *session); - void (* closed) (GdmSession *session); - - void (* user_verified) (GdmSession *session); - - void (* user_verification_error) (GdmSession *session, - GError *error); - - void (* info_query) (GdmSession *session, - const char *query_text); - - void (* secret_info_query) (GdmSession *session, - const char *query_text); - - void (* info) (GdmSession *session, - const char *info); - - void (* problem) (GdmSession *session, - const char *problem); - - void (* session_started) (GdmSession *session, - GPid pid); - - void (* session_startup_error) (GdmSession *session, - GError *error); - - void (* session_exited) (GdmSession *session, - int exit_code); - - void (* session_died) (GdmSession *session, - int signal_number); -} GdmSessionClass; - -typedef enum _GdmSessionError { - GDM_SESSION_ERROR_GENERIC = 0, - GDM_SESSION_ERROR_WITH_SESSION_COMMAND, - GDM_SESSION_ERROR_FORKING, - GDM_SESSION_ERROR_COMMUNICATING, - GDM_SESSION_ERROR_WORKER_DIED, - GDM_SESSION_ERROR_AUTHENTICATING, - GDM_SESSION_ERROR_AUTHORIZING, - GDM_SESSION_ERROR_OPENING_LOG_FILE, - GDM_SESSION_ERROR_OPENING_SESSION, - GDM_SESSION_ERROR_GIVING_CREDENTIALS -} GdmSessionError; - -GType gdm_session_get_type (void); -GQuark gdm_session_error_quark (void); - -GdmSession * gdm_session_new (void) G_GNUC_MALLOC; - -gboolean gdm_session_open (GdmSession *session, - const char *service_name, - const char *hostname, - const char *x11_display_name, - const char *console_name, - GError **error); -void gdm_session_close (GdmSession *session); -gboolean gdm_session_begin_verification (GdmSession *session, - const char *username, - GError **error); -void gdm_session_start_program (GdmSession *session, - const char *command); -void gdm_session_set_environment_variable (GdmSession *session, - const char *key, - const char *value); - -void gdm_session_answer_query (GdmSession *session, - const char *answer); - -char * gdm_session_get_username (GdmSession *session); - -gboolean gdm_session_is_running (GdmSession *session); - -G_END_DECLS - -#endif /* GDM_SESSION_H */ |