logind-session.h revision d9eb81f9844f6d28b52e44b2c0e6e280a61d8200
d8c9d3a468e61ee2a2b2c3454e662398b0885411Zbigniew Jędrzejewski-Szmek/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
d8c9d3a468e61ee2a2b2c3454e662398b0885411Zbigniew Jędrzejewski-Szmek This file is part of systemd.
d8c9d3a468e61ee2a2b2c3454e662398b0885411Zbigniew Jędrzejewski-Szmek Copyright 2011 Lennart Poettering
d8c9d3a468e61ee2a2b2c3454e662398b0885411Zbigniew Jędrzejewski-Szmek systemd is free software; you can redistribute it and/or modify it
d8c9d3a468e61ee2a2b2c3454e662398b0885411Zbigniew Jędrzejewski-Szmek under the terms of the GNU Lesser General Public License as published by
d8c9d3a468e61ee2a2b2c3454e662398b0885411Zbigniew Jędrzejewski-Szmek the Free Software Foundation; either version 2.1 of the License, or
d8c9d3a468e61ee2a2b2c3454e662398b0885411Zbigniew Jędrzejewski-Szmek (at your option) any later version.
d8c9d3a468e61ee2a2b2c3454e662398b0885411Zbigniew Jędrzejewski-Szmek systemd is distributed in the hope that it will be useful, but
d8c9d3a468e61ee2a2b2c3454e662398b0885411Zbigniew Jędrzejewski-Szmek WITHOUT ANY WARRANTY; without even the implied warranty of
d8c9d3a468e61ee2a2b2c3454e662398b0885411Zbigniew Jędrzejewski-Szmek MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
d8c9d3a468e61ee2a2b2c3454e662398b0885411Zbigniew Jędrzejewski-Szmek Lesser General Public License for more details.
d8c9d3a468e61ee2a2b2c3454e662398b0885411Zbigniew Jędrzejewski-Szmek You should have received a copy of the GNU Lesser General Public License
d8c9d3a468e61ee2a2b2c3454e662398b0885411Zbigniew Jędrzejewski-Szmek along with systemd; If not, see <http://www.gnu.org/licenses/>.
d8c9d3a468e61ee2a2b2c3454e662398b0885411Zbigniew Jędrzejewski-Szmek SESSION_OPENING, /* Session scope is being created */
613b411c947635136637f8cdd66b94512f761eabLennart Poettering SESSION_ACTIVE, /* Logged in and in the fg */
d8c9d3a468e61ee2a2b2c3454e662398b0885411Zbigniew Jędrzejewski-Szmek SESSION_CLOSING, /* Logged out, but scope is still there */
d8c9d3a468e61ee2a2b2c3454e662398b0885411Zbigniew Jędrzejewski-Szmek LIST_FIELDS(Session, sessions_by_seat);
6b46ea73e3b1d8a1e65f58ac04772821bd4a72fbLennart PoetteringSession *session_new(Manager *m, const char *id);
6b46ea73e3b1d8a1e65f58ac04772821bd4a72fbLennart Poetteringvoid session_set_user(Session *s, User *u);
6b46ea73e3b1d8a1e65f58ac04772821bd4a72fbLennart Poetteringbool session_check_gc(Session *s, bool drop_not_started);
6b46ea73e3b1d8a1e65f58ac04772821bd4a72fbLennart Poetteringint session_get_idle_hint(Session *s, dual_timestamp *t);
6b46ea73e3b1d8a1e65f58ac04772821bd4a72fbLennart Poetteringvoid session_set_idle_hint(Session *s, bool b);
6b46ea73e3b1d8a1e65f58ac04772821bd4a72fbLennart Poetteringint session_kill(Session *s, KillWho who, int signo);
613b411c947635136637f8cdd66b94512f761eabLennart PoetteringSessionState session_get_state(Session *u);
d8c9d3a468e61ee2a2b2c3454e662398b0885411Zbigniew Jędrzejewski-Szmekextern const sd_bus_vtable session_vtable[];
d8c9d3a468e61ee2a2b2c3454e662398b0885411Zbigniew Jędrzejewski-Szmekint session_node_enumerator(sd_bus *bus, const char *path,void *userdata, char ***nodes, sd_bus_error *error);
int session_object_find(sd_bus *bus, const char *path, const char *interface, void *userdata, void **found, sd_bus_error *error);