chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Patch 3/3] Add cgroups initialization and handling
[elogind.git]
/
src
/
login
/
logind.h
diff --git
a/src/login/logind.h
b/src/login/logind.h
index cd226f55fc8cc5502b5256817aaa548114885716..c0ae5235916d2ee83b2c657b85ecb9188a534bf5 100644
(file)
--- a/
src/login/logind.h
+++ b/
src/login/logind.h
@@
-24,8
+24,11
@@
#include <stdbool.h>
#include <libudev.h>
#include <stdbool.h>
#include <libudev.h>
+#include "config.h"
#include "sd-event.h"
#include "sd-bus.h"
#include "sd-event.h"
#include "sd-bus.h"
+#include "cgroup-util.h"
+#include "path-lookup.h"
#include "list.h"
#include "hashmap.h"
#include "set.h"
#include "list.h"
#include "hashmap.h"
#include "set.h"
@@
-48,8
+51,6
@@
struct Manager {
Hashmap *inhibitors;
Hashmap *buttons;
Hashmap *inhibitors;
Hashmap *buttons;
- Set *busnames;
-
LIST_HEAD(Seat, seat_gc_queue);
LIST_HEAD(Session, session_gc_queue);
LIST_HEAD(User, user_gc_queue);
LIST_HEAD(Seat, seat_gc_queue);
LIST_HEAD(Session, session_gc_queue);
LIST_HEAD(User, user_gc_queue);
@@
-63,6
+64,18
@@
struct Manager {
sd_event_source *udev_vcsa_event_source;
sd_event_source *udev_button_event_source;
sd_event_source *udev_vcsa_event_source;
sd_event_source *udev_button_event_source;
+ /* Make sure the user cannot accidentally unmount our cgroup
+ * file system */
+ int pin_cgroupfs_fd;
+
+ /* Flags */
+ ManagerRunningAs running_as;
+ bool test_run:1;
+
+ /* Data specific to the cgroup subsystem */
+ CGroupMask cgroup_supported;
+ char *cgroup_root;
+
int console_active_fd;
unsigned n_autovts;
int console_active_fd;
unsigned n_autovts;
@@
-181,10
+194,7
@@
int manager_unit_is_active(Manager *manager, const char *unit);
int manager_job_is_active(Manager *manager, const char *path);
/* gperf lookup function */
int manager_job_is_active(Manager *manager, const char *path);
/* gperf lookup function */
-const struct ConfigPerfItem* logind_gperf_lookup(const char *key, unsigned length);
-
-int manager_watch_busname(Manager *manager, const char *name);
-void manager_drop_busname(Manager *manager, const char *name);
+const struct ConfigPerfItem* logind_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
int manager_set_lid_switch_ignore(Manager *m, usec_t until);
int manager_set_lid_switch_ignore(Manager *m, usec_t until);