diff options
author | Andreas Schneider <asn@samba.org> | 2011-06-30 11:52:59 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2011-08-01 08:50:34 +0200 |
commit | 08523ed6b8105aee97225bdf389bd029754aacb1 (patch) | |
tree | 4c28f3ab6d93245e5af9eb380f9c73a438963203 /source3/librpc/rpc/dcerpc_ep.h | |
parent | d597bf4dad0deaf2536436a9f4c2e7affd42e668 (diff) | |
download | samba-08523ed6b8105aee97225bdf389bd029754aacb1.tar.gz samba-08523ed6b8105aee97225bdf389bd029754aacb1.tar.bz2 samba-08523ed6b8105aee97225bdf389bd029754aacb1.zip |
s3-librpc: Add dcerpc_binding_vector_new().
Diffstat (limited to 'source3/librpc/rpc/dcerpc_ep.h')
-rw-r--r-- | source3/librpc/rpc/dcerpc_ep.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/source3/librpc/rpc/dcerpc_ep.h b/source3/librpc/rpc/dcerpc_ep.h index 226d402986..61b85e23dc 100644 --- a/source3/librpc/rpc/dcerpc_ep.h +++ b/source3/librpc/rpc/dcerpc_ep.h @@ -1,7 +1,7 @@ /* * Endpoint Mapper Functions * DCERPC local endpoint mapper client routines - * Copyright (c) 2010 Andreas Schneider. + * Copyright (c) 2010-2011 Andreas Schneider. * * 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 @@ -23,8 +23,21 @@ struct dcerpc_binding_vector { struct dcerpc_binding *bindings; uint32_t count; + uint32_t allocated; }; +/** + * @brief Allocate a new binding vector. + * + * @param[in] mem_ctx The memory context to allocate the vector. + * + * @param[out] pbvec A pointer to store the binding vector. + * + * @return An NTSTATUS error code. + */ +NTSTATUS dcerpc_binding_vector_new(TALLOC_CTX *mem_ctx, + struct dcerpc_binding_vector **pbvec); + NTSTATUS dcerpc_binding_vector_create(TALLOC_CTX *mem_ctx, const struct ndr_interface_table *iface, uint16_t port, |