logind-session.h revision 90a18413f8be577a649900eca977e060273f2b5b
326bb68c40ff2a7119c344b9ab7a7473f9fcdf3cLennart Poettering/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
326bb68c40ff2a7119c344b9ab7a7473f9fcdf3cLennart Poettering This file is part of systemd.
326bb68c40ff2a7119c344b9ab7a7473f9fcdf3cLennart Poettering Copyright 2011 Lennart Poettering
326bb68c40ff2a7119c344b9ab7a7473f9fcdf3cLennart Poettering systemd is free software; you can redistribute it and/or modify it
326bb68c40ff2a7119c344b9ab7a7473f9fcdf3cLennart Poettering under the terms of the GNU Lesser General Public License as published by
326bb68c40ff2a7119c344b9ab7a7473f9fcdf3cLennart Poettering the Free Software Foundation; either version 2.1 of the License, or
326bb68c40ff2a7119c344b9ab7a7473f9fcdf3cLennart Poettering (at your option) any later version.
326bb68c40ff2a7119c344b9ab7a7473f9fcdf3cLennart Poettering systemd is distributed in the hope that it will be useful, but
326bb68c40ff2a7119c344b9ab7a7473f9fcdf3cLennart Poettering WITHOUT ANY WARRANTY; without even the implied warranty of
326bb68c40ff2a7119c344b9ab7a7473f9fcdf3cLennart Poettering MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
326bb68c40ff2a7119c344b9ab7a7473f9fcdf3cLennart Poettering Lesser General Public License for more details.
326bb68c40ff2a7119c344b9ab7a7473f9fcdf3cLennart Poettering You should have received a copy of the GNU Lesser General Public License
326bb68c40ff2a7119c344b9ab7a7473f9fcdf3cLennart Poettering along with systemd; If not, see <http://www.gnu.org/licenses/>.
3c5a87a879e3eb66c9c159a26051d940ff2db7a1Lennart Poettering SESSION_OPENING, /* Session scope is being created */
326bb68c40ff2a7119c344b9ab7a7473f9fcdf3cLennart Poettering SESSION_ACTIVE, /* Logged in and in the fg */
326bb68c40ff2a7119c344b9ab7a7473f9fcdf3cLennart Poettering SESSION_CLOSING, /* Logged out, but scope is still there */
3c5a87a879e3eb66c9c159a26051d940ff2db7a1Lennart PoetteringSession *session_new(Manager *m, const char *id);
326bb68c40ff2a7119c344b9ab7a7473f9fcdf3cLennart Poetteringvoid session_set_user(Session *s, User *u);
3c5a87a879e3eb66c9c159a26051d940ff2db7a1Lennart Poetteringbool session_check_gc(Session *s, bool drop_not_started);
94c156cd452424ea59931920df2454d9da7cb774Lennart Poetteringint session_get_idle_hint(Session *s, dual_timestamp *t);
94c156cd452424ea59931920df2454d9da7cb774Lennart Poetteringvoid session_set_idle_hint(Session *s, bool b);
326bb68c40ff2a7119c344b9ab7a7473f9fcdf3cLennart Poetteringint session_kill(Session *s, KillWho who, int signo);
326bb68c40ff2a7119c344b9ab7a7473f9fcdf3cLennart PoetteringSessionState session_get_state(Session *u);
326bb68c40ff2a7119c344b9ab7a7473f9fcdf3cLennart Poetteringextern const sd_bus_vtable session_vtable[];
326bb68c40ff2a7119c344b9ab7a7473f9fcdf3cLennart Poetteringint session_node_enumerator(sd_bus *bus, const char *path,void *userdata, char ***nodes, sd_bus_error *error);
326bb68c40ff2a7119c344b9ab7a7473f9fcdf3cLennart Poetteringint session_object_find(sd_bus *bus, const char *path, const char *interface, void *userdata, void **found, sd_bus_error *error);
326bb68c40ff2a7119c344b9ab7a7473f9fcdf3cLennart Poetteringint session_send_signal(Session *s, bool new_session);
326bb68c40ff2a7119c344b9ab7a7473f9fcdf3cLennart Poetteringint session_send_changed(Session *s, const char *properties, ...) _sentinel_;
326bb68c40ff2a7119c344b9ab7a7473f9fcdf3cLennart Poetteringint session_send_lock(Session *s, bool lock);
326bb68c40ff2a7119c344b9ab7a7473f9fcdf3cLennart Poetteringint session_send_lock_all(Manager *m, bool lock);
326bb68c40ff2a7119c344b9ab7a7473f9fcdf3cLennart Poetteringint session_send_create_reply(Session *s, sd_bus_error *error);
b5884878a2874447b2a9f07f324a7cd909d96d48Lennart Poetteringconst char* session_state_to_string(SessionState t) _const_;
b5884878a2874447b2a9f07f324a7cd909d96d48Lennart PoetteringSessionState session_state_from_string(const char *s) _pure_;
326bb68c40ff2a7119c344b9ab7a7473f9fcdf3cLennart Poetteringconst char* session_type_to_string(SessionType t) _const_;
3c5a87a879e3eb66c9c159a26051d940ff2db7a1Lennart PoetteringSessionType session_type_from_string(const char *s) _pure_;
3c5a87a879e3eb66c9c159a26051d940ff2db7a1Lennart Poetteringconst char* session_class_to_string(SessionClass t) _const_;
3c5a87a879e3eb66c9c159a26051d940ff2db7a1Lennart PoetteringSessionClass session_class_from_string(const char *s) _pure_;
3c5a87a879e3eb66c9c159a26051d940ff2db7a1Lennart Poetteringconst char *kill_who_to_string(KillWho k) _const_;
3c5a87a879e3eb66c9c159a26051d940ff2db7a1Lennart PoetteringKillWho kill_who_from_string(const char *s) _pure_;
326bb68c40ff2a7119c344b9ab7a7473f9fcdf3cLennart Poetteringbool session_is_controller(Session *s, const char *sender);
326bb68c40ff2a7119c344b9ab7a7473f9fcdf3cLennart Poetteringint session_set_controller(Session *s, const char *sender, bool force);