logind-session.h revision 405e0255d5e6950180d9563f1a26294b5360db03
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering This file is part of systemd.
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering Copyright 2011 Lennart Poettering
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering systemd is free software; you can redistribute it and/or modify it
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering under the terms of the GNU Lesser General Public License as published by
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering the Free Software Foundation; either version 2.1 of the License, or
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering (at your option) any later version.
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering systemd is distributed in the hope that it will be useful, but
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering WITHOUT ANY WARRANTY; without even the implied warranty of
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering Lesser General Public License for more details.
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering You should have received a copy of the GNU Lesser General Public License
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering along with systemd; If not, see <http://www.gnu.org/licenses/>.
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering SESSION_OPENING, /* Session scope is being created */
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering SESSION_ACTIVE, /* Logged in and in the fg */
322345fdb9865ef2477fba8e4bdde0e1183ef505Lennart Poettering SESSION_CLOSING, /* Logged out, but scope is still there */
7e8e0422aeb16f2a09a40546c61df753d10029b6Lennart PoetteringSession *session_new(Manager *m, const char *id);
7e8e0422aeb16f2a09a40546c61df753d10029b6Lennart Poetteringvoid session_set_user(Session *s, User *u);
7e8e0422aeb16f2a09a40546c61df753d10029b6Lennart Poetteringint session_check_gc(Session *s, bool drop_not_started);
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poetteringint session_get_idle_hint(Session *s, dual_timestamp *t);
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poetteringvoid session_set_idle_hint(Session *s, bool b);
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poetteringint session_kill(Session *s, KillWho who, int signo);
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart PoetteringSessionState session_get_state(Session *u);
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poetteringextern const DBusObjectPathVTable bus_session_vtable;
322345fdb9865ef2477fba8e4bdde0e1183ef505Lennart Poetteringint session_send_signal(Session *s, bool new_session);
322345fdb9865ef2477fba8e4bdde0e1183ef505Lennart Poetteringint session_send_changed(Session *s, const char *properties);
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poetteringint session_send_lock(Session *s, bool lock);
322345fdb9865ef2477fba8e4bdde0e1183ef505Lennart Poetteringint session_send_lock_all(Manager *m, bool lock);
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poetteringint session_send_create_reply(Session *s, DBusError *error);
623a4c97b9175f95c4b1c6fc34e36c56f1e4ddbfLennart Poetteringconst char* session_state_to_string(SessionState t) _const_;
322345fdb9865ef2477fba8e4bdde0e1183ef505Lennart PoetteringSessionState session_state_from_string(const char *s) _pure_;
322345fdb9865ef2477fba8e4bdde0e1183ef505Lennart Poetteringconst char* session_type_to_string(SessionType t) _const_;