X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fbus-endpoint.h;h=4a31f4c4be956157f0e3dc7f183ab94bee4831c6;hb=c43b2132f37264600cc26e07c8d85dfdd6c969f0;hp=2c5415f34edb6ea5dbd109f0911b4059b35fb5aa;hpb=bb7dd0b04a6e89674100476eed0bbd05c6a4cbd8;p=elogind.git diff --git a/src/core/bus-endpoint.h b/src/core/bus-endpoint.h index 2c5415f34..4a31f4c4b 100644 --- a/src/core/bus-endpoint.h +++ b/src/core/bus-endpoint.h @@ -24,8 +24,8 @@ typedef struct BusEndpoint BusEndpoint; typedef struct BusEndpointPolicy BusEndpointPolicy; -#include "bus-common.h" #include "hashmap.h" +#include "bus-policy.h" struct BusEndpointPolicy { char *name; @@ -40,3 +40,5 @@ int bus_endpoint_new(BusEndpoint **ep); void bus_endpoint_free(BusEndpoint *endpoint); int bus_endpoint_add_policy(BusEndpoint *ep, const char *name, BusPolicyAccess access); + +int bus_kernel_set_endpoint_policy(int fd, uid_t uid, BusEndpoint *ep);