diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-04-28 16:01:26 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-04-28 20:35:51 +0200 |
commit | 2e5b539ba934e7269ea0c857b3df80434727acd2 (patch) | |
tree | ebea73f6819b3213f3676c8250956d9592a8e183 /source4/libcli/smb2 | |
parent | 578cbf1139e5a09df6160ea9ee6766190c566893 (diff) | |
download | samba-2e5b539ba934e7269ea0c857b3df80434727acd2.tar.gz samba-2e5b539ba934e7269ea0c857b3df80434727acd2.tar.bz2 samba-2e5b539ba934e7269ea0c857b3df80434727acd2.zip |
s4:libcli/smb2: rename step functions of smb2_connect_*()
They should all start with a smb2_connect_ prefix.
metze
Diffstat (limited to 'source4/libcli/smb2')
-rw-r--r-- | source4/libcli/smb2/connect.c | 36 |
1 files changed, 10 insertions, 26 deletions
diff --git a/source4/libcli/smb2/connect.c b/source4/libcli/smb2/connect.c index 85624019d1..2c7da5f582 100644 --- a/source4/libcli/smb2/connect.c +++ b/source4/libcli/smb2/connect.c @@ -46,10 +46,7 @@ struct smb2_connect_state { struct smb2_tree *tree; }; -/* - continue after tcon reply -*/ -static void continue_tcon(struct smb2_request *smb2req) +static void smb2_connect_tcon_done(struct smb2_request *smb2req) { struct tevent_req *req = talloc_get_type_abort(smb2req->async.private_data, @@ -69,10 +66,7 @@ static void continue_tcon(struct smb2_request *smb2req) tevent_req_done(req); } -/* - continue after a session setup -*/ -static void continue_session(struct composite_context *creq) +static void smb2_connect_session_done(struct composite_context *creq) { struct tevent_req *req = talloc_get_type_abort(creq->async.private_data, @@ -104,14 +98,11 @@ static void continue_session(struct composite_context *creq) if (tevent_req_nomem(smb2req, req)) { return; } - smb2req->async.fn = continue_tcon; + smb2req->async.fn = smb2_connect_tcon_done; smb2req->async.private_data = req; } -/* - continue after negprot reply -*/ -static void continue_negprot(struct smb2_request *smb2req) +static void smb2_connect_negprot_done(struct smb2_request *smb2req) { struct tevent_req *req = talloc_get_type_abort(smb2req->async.private_data, @@ -176,14 +167,11 @@ static void continue_negprot(struct smb2_request *smb2req) if (tevent_req_nomem(creq, req)) { return; } - creq->async.fn = continue_session; + creq->async.fn = smb2_connect_session_done; creq->async.private_data = req; } -/* - continue after a socket connect completes -*/ -static void continue_socket(struct composite_context *creq) +static void smb2_connect_socket_done(struct composite_context *creq) { struct tevent_req *req = talloc_get_type_abort(creq->async.private_data, @@ -234,15 +222,11 @@ static void continue_socket(struct composite_context *creq) if (tevent_req_nomem(smb2req, req)) { return; } - smb2req->async.fn = continue_negprot; + smb2req->async.fn = smb2_connect_negprot_done; smb2req->async.private_data = req; } - -/* - continue after a resolve finishes -*/ -static void continue_resolve(struct composite_context *creq) +static void smb2_connect_resolve_done(struct composite_context *creq) { struct tevent_req *req = talloc_get_type_abort(creq->async.private_data, @@ -272,7 +256,7 @@ static void continue_resolve(struct composite_context *creq) if (tevent_req_nomem(creq, req)) { return; } - creq->async.fn = continue_socket; + creq->async.fn = smb2_connect_socket_done; creq->async.private_data = req; } @@ -319,7 +303,7 @@ struct tevent_req *smb2_connect_send(TALLOC_CTX *mem_ctx, if (tevent_req_nomem(creq, req)) { return tevent_req_post(req, ev); } - creq->async.fn = continue_resolve; + creq->async.fn = smb2_connect_resolve_done; creq->async.private_data = req; return req; } |