Search for location of waf script
[Samba.git] / lib / util / tevent_req_profile.h
blob3bcdbc1a28948c85fc081596a593e6a866cc4282
1 /*
2 * Unix SMB/CIFS implementation.
4 * Helpers around tevent_req_profile
6 * Copyright (C) Volker Lendecke 2018
8 * ** NOTE! The following LGPL license applies to the tevent
9 * ** library. This does NOT imply that all of Samba is released
10 * ** under the LGPL
12 * This library is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Lesser General Public
14 * License as published by the Free Software Foundation; either
15 * version 3 of the License, or (at your option) any later version.
17 * This library is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Lesser General Public License for more details.
22 * You should have received a copy of the GNU Lesser General Public
23 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
26 #ifndef __LIB_UTIL_TEVENT_REQ_PROFILE_UNPACK
27 #define __LIB_UTIL_TEVENT_REQ_PROFILE_UNPACK
29 #include "replace.h"
30 #include <tevent.h>
32 char *tevent_req_profile_string(TALLOC_CTX *mem_ctx,
33 const struct tevent_req_profile *profile,
34 unsigned indent,
35 unsigned max_indent);
36 ssize_t tevent_req_profile_pack(
37 const struct tevent_req_profile *profile,
38 uint8_t *buf,
39 size_t buflen);
40 ssize_t tevent_req_profile_unpack(
41 const uint8_t *buf,
42 size_t buflen,
43 TALLOC_CTX *mem_ctx,
44 struct tevent_req_profile **p_profile);
46 #endif