diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-04-13 22:06:51 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-04-14 20:27:11 +0200 |
commit | e1e2195a4ab60a74ca0a11f8eeb0ba1abfbb37a7 (patch) | |
tree | 6e22ff6ad4815b3f9139e2a1792950076b2e2afe /source4/torture/rpc/rpc.h | |
parent | bcd647f943e391bdb98233c168d2b35e244e2bf4 (diff) | |
download | samba-e1e2195a4ab60a74ca0a11f8eeb0ba1abfbb37a7.tar.gz samba-e1e2195a4ab60a74ca0a11f8eeb0ba1abfbb37a7.tar.bz2 samba-e1e2195a4ab60a74ca0a11f8eeb0ba1abfbb37a7.zip |
s4:torture/rpc: rename rpc.h => torture_rpc.h
The reason for this is that some systems include
<rpc/rpc.h> from within system headers. HP-UX 11.00
does so somewhere deep inside of <shadow.h>.
For torture/winbind/struct_based.c <rpc/rpc.h> resolves
to torture/rpc/rpc.h and breaks the build.
metze
Diffstat (limited to 'source4/torture/rpc/rpc.h')
-rw-r--r-- | source4/torture/rpc/rpc.h | 94 |
1 files changed, 0 insertions, 94 deletions
diff --git a/source4/torture/rpc/rpc.h b/source4/torture/rpc/rpc.h deleted file mode 100644 index 8640b56720..0000000000 --- a/source4/torture/rpc/rpc.h +++ /dev/null @@ -1,94 +0,0 @@ -/* - Unix SMB/CIFS implementation. - SMB torture tester - Copyright (C) Andrew Tridgell 1997-2003 - Copyright (C) Jelmer Vernooij 2006 - - 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 <http://www.gnu.org/licenses/>. -*/ - -#ifndef __TORTURE_RPC_H__ -#define __TORTURE_RPC_H__ - -#include "lib/torture/torture.h" -#include "auth/credentials/credentials.h" -#include "torture/rpc/drsuapi.h" -#include "libnet/libnet_join.h" -#include "librpc/rpc/dcerpc.h" -#include "libcli/raw/libcliraw.h" -#include "librpc/gen_ndr/ndr_spoolss.h" -#include "torture/rpc/proto.h" - -struct torture_rpc_tcase { - struct torture_tcase tcase; - const struct ndr_interface_table *table; - const char *machine_name; -}; - -struct torture_rpc_tcase_data { - struct test_join *join_ctx; - struct dcerpc_pipe *pipe; - struct cli_credentials *credentials; -}; - -NTSTATUS torture_rpc_connection(struct torture_context *tctx, - struct dcerpc_pipe **p, - const struct ndr_interface_table *table); - -struct test_join *torture_join_domain(struct torture_context *tctx, - const char *machine_name, - uint32_t acct_flags, - struct cli_credentials **machine_credentials); -const struct dom_sid *torture_join_sid(struct test_join *join); -void torture_leave_domain(struct torture_context *tctx, struct test_join *join); -struct torture_rpc_tcase *torture_suite_add_rpc_iface_tcase(struct torture_suite *suite, - const char *name, - const struct ndr_interface_table *table); - -struct torture_test *torture_rpc_tcase_add_test( - struct torture_rpc_tcase *tcase, - const char *name, - bool (*fn) (struct torture_context *, struct dcerpc_pipe *)); -struct torture_rpc_tcase *torture_suite_add_anon_rpc_iface_tcase(struct torture_suite *suite, - const char *name, - const struct ndr_interface_table *table); - -struct torture_test *torture_rpc_tcase_add_test_ex( - struct torture_rpc_tcase *tcase, - const char *name, - bool (*fn) (struct torture_context *, struct dcerpc_pipe *, - void *), - void *userdata); -struct torture_rpc_tcase *torture_suite_add_machine_bdc_rpc_iface_tcase( - struct torture_suite *suite, - const char *name, - const struct ndr_interface_table *table, - const char *machine_name); -struct torture_rpc_tcase *torture_suite_add_machine_workstation_rpc_iface_tcase( - struct torture_suite *suite, - const char *name, - const struct ndr_interface_table *table, - const char *machine_name); -struct torture_test *torture_rpc_tcase_add_test_creds( - struct torture_rpc_tcase *tcase, - const char *name, - bool (*fn) (struct torture_context *, struct dcerpc_pipe *, struct cli_credentials *)); -bool torture_suite_init_rpc_tcase(struct torture_suite *suite, - struct torture_rpc_tcase *tcase, - const char *name, - const struct ndr_interface_table *table); - - - -#endif /* __TORTURE_RPC_H__ */ |