summaryrefslogtreecommitdiff
path: root/source4/libnet/libnet_domain.h
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2006-05-15 21:49:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:07:24 -0500
commit16b5eac38df91b2377cbffe3009cc956fcb8a78a (patch)
tree66222e7c451efd337e856645c2f37e5275038917 /source4/libnet/libnet_domain.h
parent6506e27cb26dd05671a2a001d02536955101dae1 (diff)
downloadsamba-16b5eac38df91b2377cbffe3009cc956fcb8a78a.tar.gz
samba-16b5eac38df91b2377cbffe3009cc956fcb8a78a.tar.bz2
samba-16b5eac38df91b2377cbffe3009cc956fcb8a78a.zip
r15625: Partial commit of my current work. It makes libnet api functions
a bit more smart and more aware of what libnet_context can offer. The context is a help when some of the arguments are not passed (programmer counts on using sensible defaults) and stores some of results so that similar subsequent calls don't need to reopen some of policy handles, pipes, etc. again. It also helps to hide some of details the library user don't really want to know much about. Also, change domain open function to be part of public api, as it is going to be used in ejsnet interface. Note, this is work in progress. Comments are welcome. rafal (This used to be commit 1ed80c594c2f466e364a11194d6fdc30ac4a8f27)
Diffstat (limited to 'source4/libnet/libnet_domain.h')
-rw-r--r--source4/libnet/libnet_domain.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/source4/libnet/libnet_domain.h b/source4/libnet/libnet_domain.h
new file mode 100644
index 0000000000..6dc4ed3f45
--- /dev/null
+++ b/source4/libnet/libnet_domain.h
@@ -0,0 +1,34 @@
+/*
+ Unix SMB/CIFS implementation.
+
+ Copyright (C) Rafal Szczesniak 2005
+
+ 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 2 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, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
+
+/*
+ * struct definition for opening a domain
+ */
+
+struct libnet_DomainOpen {
+ struct {
+ const char *domain_name;
+ uint32_t access_mask;
+ } in;
+ struct {
+ struct policy_handle domain_handle;
+ } out;
+};