diff options
author | Ray Strode <rstrode@redhat.com> | 2012-12-11 10:22:12 -0500 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2012-12-12 12:25:40 -0500 |
commit | acb79f31770318f461f2dec95d0ba971cbfbc177 (patch) | |
tree | 04e5d7b3be1a234a267c3b0da40038a691f8ae6a /src/libaccountsservice/act-user-private.h | |
parent | f28d5bcb9e55a27fad6096c19141e8b54eadf958 (diff) |
lib: don't lose sessions list for users at startup
ActUser objects can be germinated from various sources:
1) a get_user call
2) a get_user_by_id call
3) a list_users call
Because of this, there may be one ActUser objects in
the wild holding the users session lists, and another
holding all the user information returned from the account
service.
This commit makes sure at the, end of the day, we consolidate
all the information we know, so some doesn't get dropped on
the floor.
Related to gnome bug https://bugzilla.gnome.org/show_bug.cgi?id=671858
Diffstat (limited to 'src/libaccountsservice/act-user-private.h')
-rw-r--r-- | src/libaccountsservice/act-user-private.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libaccountsservice/act-user-private.h b/src/libaccountsservice/act-user-private.h index 5022652..81f00d4 100644 --- a/src/libaccountsservice/act-user-private.h +++ b/src/libaccountsservice/act-user-private.h @@ -34,6 +34,8 @@ void _act_user_update_from_object_path (ActUser *user, const char *object_path); void _act_user_update_login_frequency (ActUser *user, int login_frequency); +void _act_user_load_from_user (ActUser *user, + ActUser *user_to_copy); void _act_user_add_session (ActUser *user, const char *session_id); |