Commit b2466ee3 authored by Andrew Jeffery's avatar Andrew Jeffery
Browse files

transport: mbox: Rename *init_mbox_dev to *transport_mbox_init


Change-Id: I212277ed2462089b905546ef048308d24a5489d0
Signed-off-by: Andrew Jeffery's avatarAndrew Jeffery <andrew@aj.id.au>
parent d86141b6
......@@ -358,7 +358,7 @@ int main(int argc, char **argv)
goto finish;
}
rc = init_mbox_dev(context);
rc = transport_mbox_init(context);
if (rc) {
goto finish;
}
......
......@@ -207,7 +207,7 @@ void cleanup(void)
tmpf_destroy(&test.lpc);
}
int __init_mbox_dev(struct mbox_context *context, const char *path);
int __transport_mbox_init(struct mbox_context *context, const char *path);
int __lpc_dev_init(struct mbox_context *context, const char *path);
struct mbox_context *mbox_create_test_context(int n_windows, size_t len)
......@@ -235,12 +235,12 @@ struct mbox_context *mbox_create_test_context(int n_windows, size_t len)
assert(rc == 0);
/*
* We need to call __init_mbox_dev() to initialise the handler table.
* We need to call __transport_mbox_init() to initialise the handler table.
* However, afterwards we need to discard the fd of the clearly useless
* /dev/null and replace it with our own fd for mbox device emulation
* by the test framework.
*/
__init_mbox_dev(&test.context, "/dev/null");
__transport_mbox_init(&test.context, "/dev/null");
rc = close(test.context.fds[MBOX_FD].fd);
assert(rc == 0);
test.context.fds[MBOX_FD].fd = test.mbox.fd;
......
......@@ -610,7 +610,7 @@ static const struct transport_ops transport_mbox_ops = {
.flush_events = transport_mbox_flush_events,
};
int __init_mbox_dev(struct mbox_context *context, const char *path)
int __transport_mbox_init(struct mbox_context *context, const char *path)
{
int fd;
......@@ -630,9 +630,9 @@ int __init_mbox_dev(struct mbox_context *context, const char *path)
return 0;
}
int init_mbox_dev(struct mbox_context *context)
int transport_mbox_init(struct mbox_context *context)
{
return __init_mbox_dev(context, MBOX_HOST_PATH);
return __transport_mbox_init(context, MBOX_HOST_PATH);
}
void free_mbox_dev(struct mbox_context *context)
......
......@@ -8,7 +8,7 @@
#include "mbox.h"
int transport_mbox_dispatch(struct mbox_context *context);
int init_mbox_dev(struct mbox_context *context);
int transport_mbox_init(struct mbox_context *context);
void free_mbox_dev(struct mbox_context *context);
#endif /* MBOXD_MSG_H */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment