[systemd-devel] [PATCH 01/12] test: export kdbus_hello_registrar()

Daniel Mack daniel at zonque.org
Fri Jun 20 10:37:41 PDT 2014


On 06/20/2014 06:49 PM, Djalal Harouni wrote:
> Export this function since we will use it to register policy holders
> connections.

Applied all the test-related patches as well.

However, we should probably integrate all these tests in the already
existing test framework, so the're all in one place and can all be run
with one single binary.

But that's a bigger task which can still be done later.


Thanks,
Daniel


> 
> Signed-off-by: Djalal Harouni <tixxdz at opendz.org>
> ---
>  test/kdbus-util.c | 2 +-
>  test/kdbus-util.h | 3 +++
>  2 files changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/test/kdbus-util.c b/test/kdbus-util.c
> index 7a6f272..988aa8c 100644
> --- a/test/kdbus-util.c
> +++ b/test/kdbus-util.c
> @@ -109,7 +109,7 @@ struct conn *kdbus_hello(const char *path, uint64_t flags)
>  	return __kdbus_hello(path, flags, NULL, 0);
>  }
>  
> -static struct conn *
> +struct conn *
>  kdbus_hello_registrar(const char *path, const char *name,
>  		      const struct kdbus_policy_access *access,
>  		      size_t num_access, uint64_t flags)
> diff --git a/test/kdbus-util.h b/test/kdbus-util.h
> index fde3f77..9771622 100644
> --- a/test/kdbus-util.h
> +++ b/test/kdbus-util.h
> @@ -45,6 +45,9 @@ char *msg_id(uint64_t id, char *buf);
>  int msg_send(const struct conn *conn, const char *name, uint64_t cookie,
>  	     uint64_t flags, uint64_t timeout, int64_t priority, uint64_t dst_id);
>  struct conn *kdbus_hello(const char *path, uint64_t hello_flags);
> +struct conn *kdbus_hello_registrar(const char *path, const char *name,
> +				   const struct kdbus_policy_access *access,
> +				   size_t num_access, uint64_t flags);
>  struct conn *kdbus_hello_activator(const char *path, const char *name,
>  				   const struct kdbus_policy_access *access,
>  				   size_t num_access);
> 



More information about the systemd-devel mailing list