diff options
author | William Jon McCann <mccann@jhu.edu> | 2007-10-19 02:04:52 +0000 |
---|---|---|
committer | William Jon McCann <mccann@src.gnome.org> | 2007-10-19 02:04:52 +0000 |
commit | 365092a43a92b57723297f5bdaad3375aa1efdde (patch) | |
tree | b416c196b9b895636ced98e201f0f61f900f4a71 /daemon/gdm-session-record.h | |
parent | 52f045aa4f1ea1657126e8aa5c1220d0b844a909 (diff) | |
download | gdm-365092a43a92b57723297f5bdaad3375aa1efdde.tar.gz |
Try to reduce the complexity of the utmp/wtmp recording code.
2007-10-18 William Jon McCann <mccann@jhu.edu>
* daemon/gdm-session-record.c: (record_set_username),
(record_set_timestamp), (record_set_pid), (record_set_id),
(record_set_host), (record_set_line), (gdm_session_record_login),
(gdm_session_record_logout), (gdm_session_record_failed):
* daemon/gdm-session-record.h:
* daemon/gdm-session.c:
(gdm_session_user_verification_error_handler),
(gdm_session_started_handler), (gdm_session_startup_error_handler),
(gdm_session_exited_handler), (gdm_session_close):
Try to reduce the complexity of the utmp/wtmp recording code.
svn path=/trunk/; revision=5385
Diffstat (limited to 'daemon/gdm-session-record.h')
-rw-r--r-- | daemon/gdm-session-record.h | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/daemon/gdm-session-record.h b/daemon/gdm-session-record.h index 5514968b..53500828 100644 --- a/daemon/gdm-session-record.h +++ b/daemon/gdm-session-record.h @@ -25,19 +25,24 @@ G_BEGIN_DECLS -typedef enum { - GDM_SESSION_RECORD_TYPE_LOGIN, - GDM_SESSION_RECORD_TYPE_FAILED_ATTEMPT, - GDM_SESSION_RECORD_TYPE_LOGOUT, -} GdmSessionRecordType; - void -gdm_session_record_write (GdmSessionRecordType record_type, - GPid session_pid, - const char *user_name, - const char *host_name, - const char *x11_display_name, - const char *display_device); +gdm_session_record_login (GPid session_pid, + const char *user_name, + const char *host_name, + const char *x11_display_name, + const char *display_device); +void +gdm_session_record_logout (GPid session_pid, + const char *user_name, + const char *host_name, + const char *x11_display_name, + const char *display_device); +void +gdm_session_record_failed (GPid session_pid, + const char *user_name, + const char *host_name, + const char *x11_display_name, + const char *display_device); G_END_DECLS |