chiark / gitweb /
bus-policy: split API for bus-proxyd
authorDaniel Mack <daniel@zonque.org>
Wed, 24 Sep 2014 15:02:08 +0000 (17:02 +0200)
committerDaniel Mack <daniel@zonque.org>
Wed, 24 Sep 2014 15:07:14 +0000 (17:07 +0200)
commit078ef7b85ad77ba999588f72b31a50ced5907692
tree2f2b7220f2c4c5ee6426ebc17b82e245f5617958
parent04c553e322680b6fcdf5b271e84b0b4b0ad8d5f9
bus-policy: split API for bus-proxyd

Instead of operating on an sd_bus_message object, expose an API that has 4
functions:

  policy_check_own()
  policy_check_hello()
  policy_check_recv()
  policy_check_send()

This also allows dropping extra code to parse message contents - the bus
proxy already has dedicated code paths for that, and we can hook into
those later.

Tests amended accordingly.
src/bus-proxyd/bus-policy.c
src/bus-proxyd/bus-policy.h
src/bus-proxyd/test-bus-policy.c
test/bus-policy/methods.conf