]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/home/homed-home.h
homed: make sure our worker processes finish before we exit
[thirdparty/systemd.git] / src / home / homed-home.h
index c75b06722c6256cd200dd638c6820491514116fb..97879940df201a8937cbe40e8d22d5ff7421f06c 100644 (file)
@@ -13,6 +13,7 @@ typedef enum HomeState {
         HOME_UNFIXATED,               /* home exists, but local record does not */
         HOME_ABSENT,                  /* local record exists, but home does not */
         HOME_INACTIVE,                /* record and home exist, but is not logged in */
+        HOME_DIRTY,                   /* like HOME_INACTIVE, but the home directory wasn't cleanly deactivated */
         HOME_FIXATING,                /* generating local record from home */
         HOME_FIXATING_FOR_ACTIVATION, /* fixating in order to activate soon */
         HOME_FIXATING_FOR_ACQUIRE,    /* fixating because Acquire() was called */
@@ -100,7 +101,7 @@ struct Home {
         /* Stores the raw, plaintext passwords, but only for short periods of time */
         UserRecord *secret;
 
-        /* When we create a home and that fails, we should possibly unregister the record altogether
+        /* When we create a home area and that fails, we should possibly unregister the record altogether
          * again, which is remembered in this boolean. */
         bool unregister_on_failure;
 
@@ -164,5 +165,7 @@ int home_auto_login(Home *h, char ***ret_seats);
 
 int home_set_current_message(Home *h, sd_bus_message *m);
 
+int home_wait_for_worker(Home *h);
+
 const char *home_state_to_string(HomeState state);
 HomeState home_state_from_string(const char *s);