logind.h revision 1389f4b95877f29cb357baee837d9c05e64df0c6
65410a6c1c900489c9028f7c235484f137e42df1sf/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
65410a6c1c900489c9028f7c235484f137e42df1sf This file is part of systemd.
65410a6c1c900489c9028f7c235484f137e42df1sf Copyright 2011 Lennart Poettering
96ad5d81ee4a2cc66a4ae19893efc8aa6d06fae7jailletc systemd is free software; you can redistribute it and/or modify it
65410a6c1c900489c9028f7c235484f137e42df1sf under the terms of the GNU Lesser General Public License as published by
65410a6c1c900489c9028f7c235484f137e42df1sf the Free Software Foundation; either version 2.1 of the License, or
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen (at your option) any later version.
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen systemd is distributed in the hope that it will be useful, but
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen WITHOUT ANY WARRANTY; without even the implied warranty of
65410a6c1c900489c9028f7c235484f137e42df1sf MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
65410a6c1c900489c9028f7c235484f137e42df1sf Lesser General Public License for more details.
3f08db06526d6901aa08c110b5bc7dde6bc39905nd You should have received a copy of the GNU Lesser General Public License
65410a6c1c900489c9028f7c235484f137e42df1sf along with systemd; If not, see <http://www.gnu.org/licenses/>.
4cbff57fa97f2fce73b84102fa4f58ed8ea7a92end struct udev_monitor *udev_seat_monitor, *udev_device_monitor, *udev_vcsa_monitor, *udev_button_monitor;
65410a6c1c900489c9028f7c235484f137e42df1sf unsigned long session_counter;
65410a6c1c900489c9028f7c235484f137e42df1sf unsigned long inhibit_counter;
02c4e4fe19f1120c6bdf561950ab60077c61cc5fsf /* If an action is currently being executed or is delayed,
02c4e4fe19f1120c6bdf561950ab60077c61cc5fsf * this is != 0 and encodes what is being done */
65410a6c1c900489c9028f7c235484f137e42df1sf /* If a shutdown/suspend was delayed due to a inhibitor this
65410a6c1c900489c9028f7c235484f137e42df1sf contains the unit name we are supposed to start after the
65410a6c1c900489c9028f7c235484f137e42df1sf delay is over */
65410a6c1c900489c9028f7c235484f137e42df1sf const char *action_unit;
65410a6c1c900489c9028f7c235484f137e42df1sf /* If a shutdown/suspend is currently executed, then this is
65410a6c1c900489c9028f7c235484f137e42df1sf * the job of it */
7b0d7e264bfafbd2386a1a94e59d4628335b8f29sfint manager_add_device(Manager *m, const char *sysfs, bool master, Device **_device);
e9d6361d862c6b6ac889c9f2763112f3a90d8e83humbedoohint manager_add_button(Manager *m, const char *name, Button **_button);
c11bfe6804eff2f4c7054cf2f7b06f0c8b32e596sfint manager_add_seat(Manager *m, const char *id, Seat **_seat);
c11bfe6804eff2f4c7054cf2f7b06f0c8b32e596sfint manager_add_session(Manager *m, const char *id, Session **_session);
c11bfe6804eff2f4c7054cf2f7b06f0c8b32e596sfint manager_add_user(Manager *m, uid_t uid, gid_t gid, const char *name, User **_user);
a53a4e3dd20966aa123640e6639e75545c1e4768sfint manager_add_user_by_name(Manager *m, const char *name, User **_user);
a53a4e3dd20966aa123640e6639e75545c1e4768sfint manager_add_user_by_uid(Manager *m, uid_t uid, User **_user);
a53a4e3dd20966aa123640e6639e75545c1e4768sfint manager_add_inhibitor(Manager *m, const char* id, Inhibitor **_inhibitor);
65410a6c1c900489c9028f7c235484f137e42df1sfint manager_process_seat_device(Manager *m, struct udev_device *d);
65410a6c1c900489c9028f7c235484f137e42df1sfint manager_process_button_device(Manager *m, struct udev_device *d);
9a74115b71b8e85c015b4005e0313fca86ea9c59jailletcint manager_spawn_autovt(Manager *m, unsigned int vtnr);
9a74115b71b8e85c015b4005e0313fca86ea9c59jailletcbool manager_shall_kill(Manager *m, const char *user);
9a74115b71b8e85c015b4005e0313fca86ea9c59jailletcint manager_get_idle_hint(Manager *m, dual_timestamp *t);
65410a6c1c900489c9028f7c235484f137e42df1sfint manager_get_user_by_pid(Manager *m, pid_t pid, User **user);
65410a6c1c900489c9028f7c235484f137e42df1sfint manager_get_session_by_pid(Manager *m, pid_t pid, Session **session);
65410a6c1c900489c9028f7c235484f137e42df1sfint match_job_removed(sd_bus_message *message, void *userdata, sd_bus_error *error);
7b0d7e264bfafbd2386a1a94e59d4628335b8f29sfint match_unit_removed(sd_bus_message *message, void *userdata, sd_bus_error *error);
65410a6c1c900489c9028f7c235484f137e42df1sfint match_properties_changed(sd_bus_message *message, void *userdata, sd_bus_error *error);
0844fff26cb7719e0f0a368d88544156ed6374b6sfint match_reloading(sd_bus_message *message, void *userdata, sd_bus_error *error);
fcd7f1f7d11d39b8379972a455e1c7e67a5dfa9dsfint match_name_owner_changed(sd_bus_message *message, void *userdata, sd_bus_error *error);
fcd7f1f7d11d39b8379972a455e1c7e67a5dfa9dsfint bus_manager_shutdown_or_sleep_now_or_later(Manager *m, const char *unit_name, InhibitWhat w, sd_bus_error *error);
f9442c8a9869d3525a1ae6ed3e85c65d408e8a70sfint manager_send_changed(Manager *manager, const char *property, ...) _sentinel_;
f9442c8a9869d3525a1ae6ed3e85c65d408e8a70sfint manager_start_scope(Manager *manager, const char *scope, pid_t pid, const char *slice, const char *description, const char *after, const char *after2, sd_bus_error *error, char **job);
f9442c8a9869d3525a1ae6ed3e85c65d408e8a70sfint manager_start_unit(Manager *manager, const char *unit, sd_bus_error *error, char **job);
fcd7f1f7d11d39b8379972a455e1c7e67a5dfa9dsfint manager_stop_unit(Manager *manager, const char *unit, sd_bus_error *error, char **job);
7b0d7e264bfafbd2386a1a94e59d4628335b8f29sfint manager_abandon_scope(Manager *manager, const char *scope, sd_bus_error *error);
fcd7f1f7d11d39b8379972a455e1c7e67a5dfa9dsfint manager_kill_unit(Manager *manager, const char *unit, KillWho who, int signo, sd_bus_error *error);
fcd7f1f7d11d39b8379972a455e1c7e67a5dfa9dsfint manager_unit_is_active(Manager *manager, const char *unit);
fcd7f1f7d11d39b8379972a455e1c7e67a5dfa9dsfint manager_job_is_active(Manager *manager, const char *path);
fcd7f1f7d11d39b8379972a455e1c7e67a5dfa9dsf/* gperf lookup function */
7dffdb75ed6be39c05d25cc5f60334a9b73be7acsfconst struct ConfigPerfItem* logind_gperf_lookup(const char *key, unsigned length);
7dffdb75ed6be39c05d25cc5f60334a9b73be7acsfint manager_set_lid_switch_ignore(Manager *m, usec_t until);
7b0d7e264bfafbd2386a1a94e59d4628335b8f29sfint config_parse_tmpfs_size(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
f9442c8a9869d3525a1ae6ed3e85c65d408e8a70sfint manager_get_session_from_creds(Manager *m, sd_bus_message *message, const char *name, sd_bus_error *error, Session **ret);
7b0d7e264bfafbd2386a1a94e59d4628335b8f29sfint manager_get_user_from_creds(Manager *m, sd_bus_message *message, uid_t uid, sd_bus_error *error, User **ret);
7b0d7e264bfafbd2386a1a94e59d4628335b8f29sfint manager_get_seat_from_creds(Manager *m, sd_bus_message *message, const char *name, sd_bus_error *error, Seat **ret);
7b0d7e264bfafbd2386a1a94e59d4628335b8f29sfbool logind_wall_tty_filter(const char *tty, void *userdata);