add the convenience class PolKitTracker
authorDavid Zeuthen <davidz@redhat.com>
Sat, 13 Oct 2007 00:38:13 +0000 (20:38 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Sat, 13 Oct 2007 00:38:13 +0000 (20:38 -0400)
commit35f7bd2824c40658de9589928bea7b2237c60101
tree2bbd0c52fb14a119eacd6246d05b257414a82faa
parenta11166bdbecc85995a1aef58fcb7635091049708
add the convenience class PolKitTracker

This class allows a mechanism to greatly reduce the syscall and IPC
overhead when checking whether a caller on the system bus message is
allowed to do a specific action. In a nutshell, this class caches
PolKitCaller objects and a) updates them when ConsoleKit emits
ActivityChanged signals; and b) evicts such objects from the cache
when the caller drops off the bus.

There's also an example, in examples/tracker-example/ that shows how
to use this. This example is referenced in the API docs too.
examples/tracker-example/README [new file with mode: 0644]
examples/tracker-example/dk.fubar.PolKitTestService.conf [new file with mode: 0644]
examples/tracker-example/tracker-example-client.py [new file with mode: 0755]
examples/tracker-example/tracker-example.c [new file with mode: 0644]
polkit-dbus/polkit-dbus.c
polkit-dbus/polkit-dbus.h