From c14b7e648bcfc4865da4b290e46977fff81d4500 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 1 Feb 2009 16:32:02 +0100 Subject: Split up async_req into a generic and a NTSTATUS specific part --- lib/async_req/async_req_ntstatus.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 lib/async_req/async_req_ntstatus.h (limited to 'lib/async_req/async_req_ntstatus.h') diff --git a/lib/async_req/async_req_ntstatus.h b/lib/async_req/async_req_ntstatus.h new file mode 100644 index 0000000000..7cc8caa14c --- /dev/null +++ b/lib/async_req/async_req_ntstatus.h @@ -0,0 +1,37 @@ +/* + Unix SMB/CIFS implementation. + NTSTATUS wrappers for async_req.h + Copyright (C) Volker Lendecke 2008, 2009 + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ + +#ifndef __ASYNC_REQ_NTSTATUS_H__ +#define __ASYNC_REQ_NTSTATUS_H__ + +#include "lib/async_req/async_req.h" +#include "includes.h" + +void async_req_nterror(struct async_req *req, NTSTATUS status); + +bool async_post_ntstatus(struct async_req *req, struct tevent_context *ev, + NTSTATUS status); + +bool async_req_is_nterror(struct async_req *req, NTSTATUS *status); + +NTSTATUS async_req_simple_recv_ntstatus(struct async_req *req); + +bool async_req_ntnomem(const void *p, struct async_req *req); + +#endif -- cgit From d3f9b0fab67285d061719e69c1c6e9c4ce80fb36 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 2 Feb 2009 17:23:35 +0100 Subject: Next step disentangling async_req from NTSTATUS Now I need to document this :-) --- lib/async_req/async_req_ntstatus.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/async_req/async_req_ntstatus.h') diff --git a/lib/async_req/async_req_ntstatus.h b/lib/async_req/async_req_ntstatus.h index 7cc8caa14c..7555aac603 100644 --- a/lib/async_req/async_req_ntstatus.h +++ b/lib/async_req/async_req_ntstatus.h @@ -32,6 +32,4 @@ bool async_req_is_nterror(struct async_req *req, NTSTATUS *status); NTSTATUS async_req_simple_recv_ntstatus(struct async_req *req); -bool async_req_ntnomem(const void *p, struct async_req *req); - #endif -- cgit