summaryrefslogtreecommitdiff
path: root/src/machine/machined.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-12-07 08:45:15 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-12-07 19:46:02 +0100
commit7e0079f95f9b7306b40f2300301af80d915e15e4 (patch)
treec2add234e90f7bd29b01d16685a7a001c6ecd749 /src/machine/machined.h
parente0f90ad98802a43addd40f7f8ef69118d04f4cd2 (diff)
downloadsystemd-7e0079f95f9b7306b40f2300301af80d915e15e4.tar.gz
Make support for nscd flushing optional
Fedora will deprecate support for nscd in the upcoming release [1] and plans to drop it in the next one [2]. At that point we might as well build systemd without that support too, since there'll be nothing to talk too. [1] https://fedoraproject.org/wiki/Changes/DeprecateNSCD [2] https://fedoraproject.org/wiki/Changes/RemoveNSCD
Diffstat (limited to 'src/machine/machined.h')
-rw-r--r--src/machine/machined.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/machine/machined.h b/src/machine/machined.h
index 6e4182bbd6..280c32bab6 100644
--- a/src/machine/machined.h
+++ b/src/machine/machined.h
@@ -36,7 +36,9 @@ struct Manager {
LIST_HEAD(Operation, operations);
unsigned n_operations;
+#if ENABLE_NSCD
sd_event_source *nscd_cache_flush_event;
+#endif
VarlinkServer *varlink_server;
};
@@ -57,7 +59,11 @@ int manager_unref_unit(Manager *m, const char *unit, sd_bus_error *error);
int manager_unit_is_active(Manager *manager, const char *unit);
int manager_job_is_active(Manager *manager, const char *path);
+#if ENABLE_NSCD
int manager_enqueue_nscd_cache_flush(Manager *m);
+#else
+static inline void manager_enqueue_nscd_cache_flush(Manager *m) {}
+#endif
int manager_find_machine_for_uid(Manager *m, uid_t host_uid, Machine **ret_machine, uid_t *ret_internal_uid);
int manager_find_machine_for_gid(Manager *m, gid_t host_gid, Machine **ret_machine, gid_t *ret_internal_gid);