summaryrefslogtreecommitdiffstats
path: root/src/ck-marshal.list
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-08-11 04:02:33 +0200
committerLennart Poettering <lennart@poettering.net>2009-08-12 17:10:12 +0200
commitb4f893eb294883909759fc9fd825eade1a9f308c (patch)
tree9cec43fb26d8bb3269c1b0dda49404d0bc001a1a /src/ck-marshal.list
parent76f0578e7a497e569438316703df254f84b548a0 (diff)
Add seat.d/ callout directory and guarantee we dump the database before callout invocationHEADmaster
This adds a callout directory called seat.d/ that follows the basic session.d/ semantics but works on seats instead of sessions. As replacement for the old session.d/ 'session_active_changed' semantics seat.d/ knows 'seat_active_session_changed'. Which combines the two callouts necessary for session_active_changed into one. This has various advantages: it's not as racy, allows the suppressing of ACL permission changes when switching between sessions of the same user, reduces the amount of disk IO and finally is less ugly. This patch also moves all callout invocations into the CkManager. This has the advantage that we can guarantee to have fully dumped the CK database before the callout. In summary, the session.d/ directory will now get two types of callout invocations: session_added session_removed In contrast, seat.d/ gets three types: seat_added seat_removed seat_active_session_changed The 'seat_active_session_changed' callout type gets two sets of environment variables describing the old resp. the new session that is active. Either set can be left out if no session was active before, or no session will be active after the switch. This is similar to the logic behind D-Bus' NameOwnerChanged. This patch duplicates CkSeat's 'session-removed' signal into 'session-removed-full' (and friends). Reason for that is that the signal forwarded via D-Bus needs the session id as string while the callout code needs the session itself as object. Since at the time of invocation the CkSeat is no longer in the seats hashtable it is hence necessary to pass the object in as argument to the signal handlers, which makes this duplification necessary to not confuse dbus-glib. For a similar reason 'active-session-changed' is duplicated as well.
Diffstat (limited to 'src/ck-marshal.list')
-rw-r--r--src/ck-marshal.list1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ck-marshal.list b/src/ck-marshal.list
index f9eed10..7f60efc 100644
--- a/src/ck-marshal.list
+++ b/src/ck-marshal.list
@@ -1,2 +1,3 @@
VOID:UINT,STRING
BOOLEAN:POINTER
+VOID:OBJECT,OBJECT