test: export kdbus_hello_registrar()
authorDjalal Harouni <tixxdz@opendz.org>
Fri, 20 Jun 2014 16:49:55 +0000 (17:49 +0100)
committerDaniel Mack <zonque@gmail.com>
Fri, 20 Jun 2014 17:35:25 +0000 (19:35 +0200)
Export this function since we will use it to register policy holders
connections.

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
test/kdbus-util.c
test/kdbus-util.h

index 7a6f27297e9c949ba747cd04075dfc453488ee94..988aa8c9d37575f964a04a89713d12a80de16732 100644 (file)
@@ -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)
index fde3f77683803106ddd1e3ede6b204de8cbba52c..977162275bb8476df85f3516e72f6bdda2878bf9 100644 (file)
@@ -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);