summaryrefslogtreecommitdiff
path: root/src/user.h
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2017-05-04 12:04:05 -0400
committerRay Strode <rstrode@redhat.com>2017-05-04 12:22:30 -0400
commit1890b71ed4d64ce17240b93a219a3691806ea49a (patch)
tree9989e1a3046834475144085dcf25096267bf57e0 /src/user.h
parentdb223bc474b5ae914f2c6ff4d07c69d747cfeda7 (diff)
downloadaccountsservice-cache-fix.tar.gz
daemon: don't treat explicitly requested users as "cached"cache-fix
The ListCachedUsers method currently returns users that have been explicitly requested by a client. It's weird that merely querying a user can make it show up in login screen user lists. Furthermore, UncacheUser is broken since commit 177509e9460b149ecbf85e75c930be2ea00b7d05 because the user has been explicitly requested in order to uncache it. So trying to uncache a user inadvertently caches the user. This commit fixes that.
Diffstat (limited to 'src/user.h')
-rw-r--r--src/user.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/user.h b/src/user.h
index 22548f9..39c6f13 100644
--- a/src/user.h
+++ b/src/user.h
@@ -63,6 +63,9 @@ void user_update_local_account_property (User *user,
gboolean local);
void user_update_system_account_property (User *user,
gboolean system);
+gboolean user_get_cached (User *user);
+void user_set_cached (User *user,
+ gboolean cached);
void user_register (User *user);
void user_unregister (User *user);