summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInaky Perez-Gonzalez <inaky@linux.intel.com>2008-12-10 13:45:20 -0800
committerInaky Perez-Gonzalez <inaky@linux.intel.com>2008-12-10 13:45:20 -0800
commit396a48f75c7fb694ed136922cb1914074b1d46ea (patch)
treeee30709fc9a0e2b4c1977a5fc4a08a6b5f9b6af7
parentd31acadf06493c5930d4adb0ff946ea92cb43986 (diff)
libwimaxll: rename _cb_msg_to_user() -> _msg_read_cb()
This callback is used to implement wimaxll_msg_read() functionality, so the name match makes it easier to understand what it is for. Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
-rw-r--r--lib/op-msg.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/op-msg.c b/lib/op-msg.c
index d1d03d6..b6ca2b5 100644
--- a/lib/op-msg.c
+++ b/lib/op-msg.c
@@ -245,10 +245,10 @@ struct wimaxll_cb_msg_to_user_context {
* pass that pointer to the caller along with the size.
*/
static
-int wimaxll_cb_msg_to_user(struct wimaxll_handle *wmx,
- struct wimaxll_gnl_cb_context *ctx,
- const char *pipe_name,
- const void *data, size_t data_size)
+int wimaxll_msg_read_cb(struct wimaxll_handle *wmx,
+ struct wimaxll_gnl_cb_context *ctx,
+ const char *pipe_name,
+ const void *data, size_t data_size)
{
int result;
struct wimaxll_cb_msg_to_user_context *mtu_ctx =
@@ -348,7 +348,7 @@ ssize_t wimaxll_msg_read(struct wimaxll_handle *wmx,
d_fnstart(3, wmx, "(wmx %p pipe_name %s, buf %p)\n",
wmx, pipe_name, buf);
wimaxll_get_cb_msg_to_user(wmx, &prev_cb, &prev_priv);
- wimaxll_set_cb_msg_to_user(wmx, wimaxll_cb_msg_to_user,
+ wimaxll_set_cb_msg_to_user(wmx, wimaxll_msg_read_cb,
&mtu_ctx.ctx);
do {
/* Loop until we get a message in the desired pipe */