chiark / gitweb /
unit: introduce %s specifier for the user shell
[elogind.git] / src / shared / util.h
index d9b656d2ca081e96ddf76fab60b4e03d35998824..3915904442e2047ba7993832429c61812213f141 100644 (file)
@@ -345,9 +345,11 @@ void rename_process(const char name[8]);
 
 void sigset_add_many(sigset_t *ss, ...);
 
-char* gethostname_malloc(void);
 bool hostname_is_set(void);
+
+char* gethostname_malloc(void);
 char* getlogname_malloc(void);
+char* getusername_malloc(void);
 
 int getttyname_malloc(int fd, char **r);
 int getttyname_harder(int fd, char **r);
@@ -439,7 +441,7 @@ int fchmod_umask(int fd, mode_t mode);
 bool display_is_local(const char *display);
 int socket_from_display(const char *display, char **path);
 
-int get_user_creds(const char **username, uid_t *uid, gid_t *gid, const char **home);
+int get_user_creds(const char **username, uid_t *uid, gid_t *gid, const char **home, const char **shell);
 int get_group_creds(const char **groupname, gid_t *gid);
 
 int in_group(const char *name);
@@ -527,4 +529,7 @@ bool in_initrd(void);
 
 void warn_melody(void);
 
+int get_shell(char **ret);
+int get_home_dir(char **ret);
+
 #endif