summaryrefslogtreecommitdiff
path: root/source3/include/rpc_misc.h
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2000-07-18 05:16:30 +0000
committerGerald Carter <jerry@samba.org>2000-07-18 05:16:30 +0000
commita1bd6766172c91ae93a9c237cbfd8adca60e655c (patch)
tree2ac21d2a89cf2d6a55b98f8113fd4d79a4b7d60e /source3/include/rpc_misc.h
parent2de59a3bea1c2369f6aef82bfe0d4b31d25ec519 (diff)
downloadsamba-a1bd6766172c91ae93a9c237cbfd8adca60e655c.tar.gz
samba-a1bd6766172c91ae93a9c237cbfd8adca60e655c.tar.bz2
samba-a1bd6766172c91ae93a9c237cbfd8adca60e655c.zip
Fixed some more client SPOOLSS functions. The following
functions work now: - spoolenum - spoolopen - spoolgetprinter - spoolgetprinterdriver Items todo: - track down memory bug with spoolenumdata - fix spoolgetprinterdriverdir - fix spoolgetdata - fix display_job_info_ctr in spooljobs All part of the ongoing rpcclient work. Also included a new generic list ADT. Cleaner and simplier than the stuff in util_array.c i think (but then that's why I wrote it). --jerry (This used to be commit 381aba2c9a63faa53728f0520ac316478bc7a1c3)
Diffstat (limited to 'source3/include/rpc_misc.h')
-rw-r--r--source3/include/rpc_misc.h37
1 files changed, 36 insertions, 1 deletions
diff --git a/source3/include/rpc_misc.h b/source3/include/rpc_misc.h
index 4f37a4b956..5ef4044cb4 100644
--- a/source3/include/rpc_misc.h
+++ b/source3/include/rpc_misc.h
@@ -21,11 +21,13 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include "ntdomain.h"
+#include "rpc_dce.h"
+
#ifndef _RPC_MISC_H /* _RPC_MISC_H */
#define _RPC_MISC_H
-#include "rpc_dce.h"
/* well-known RIDs - Relative IDs */
@@ -293,6 +295,39 @@ typedef struct lsa_policy_info
} POLICY_HND;
+
+/*
+ * A client connection's state, pipe name,
+ * user credentials, etc...
+ */
+typedef struct _cli_auth_fns cli_auth_fns;
+struct user_creds;
+struct cli_connection {
+
+ uint32 num_connections;
+ char *srv_name;
+ char *pipe_name;
+ struct user_creds usr_creds;
+
+ struct cli_state *pCli_state;
+
+ cli_auth_fns *auth;
+
+ void *auth_info;
+ void *auth_creds;
+};
+
+
+/*
+ * Associate a POLICY_HND with a cli_connection
+ */
+typedef struct rpc_hnd_node {
+
+ POLICY_HND hnd;
+ struct cli_connection *cli;
+
+} RPC_HND_NODE;
+
typedef struct uint64_s
{
uint32 low;