summaryrefslogtreecommitdiff
path: root/source3/python/py_spoolss.h
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-03-28 04:14:43 +0000
committerTim Potter <tpot@samba.org>2002-03-28 04:14:43 +0000
commit230e36ccded13f5bf0e95ff93e6aa65ad7e368ec (patch)
tree64d97e5198e9ce205a0028498769ef7131c79795 /source3/python/py_spoolss.h
parent321767cb6607a87598c10be692ad26a17dd30ab4 (diff)
downloadsamba-230e36ccded13f5bf0e95ff93e6aa65ad7e368ec.tar.gz
samba-230e36ccded13f5bf0e95ff93e6aa65ad7e368ec.tar.bz2
samba-230e36ccded13f5bf0e95ff93e6aa65ad7e368ec.zip
Aborted experiment to avoid namespace pollution and prototype hell and
moved to 'make proto' based solution. (This used to be commit 1e48f872a494228e82fd32c789b3dcea6b014211)
Diffstat (limited to 'source3/python/py_spoolss.h')
-rw-r--r--source3/python/py_spoolss.h21
1 files changed, 16 insertions, 5 deletions
diff --git a/source3/python/py_spoolss.h b/source3/python/py_spoolss.h
index 766e420c6e..3040a80e80 100644
--- a/source3/python/py_spoolss.h
+++ b/source3/python/py_spoolss.h
@@ -21,10 +21,13 @@
#ifndef _PY_SPOOLSS_H
#define _PY_SPOOLSS_H
-/* Another version of offsetof (-: */
+#include "includes.h"
+#include "Python.h"
-#undef offsetof
-#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
+#include "python/py_common.h"
+#include "python/py_conv.h"
+
+/* Spoolss policy handle object */
typedef struct {
PyObject_HEAD
@@ -33,11 +36,19 @@ typedef struct {
POLICY_HND pol;
} spoolss_policy_hnd_object;
+/* Exceptions raised by this module */
+
extern PyTypeObject spoolss_policy_hnd_type;
extern PyObject *spoolss_error, *spoolss_werror;
-void to_struct(void *s, PyObject *dict, struct pyconv *conv);
-PyObject *from_struct(void *s, struct pyconv *conv);
+/* Return a cli_state struct opened on the SPOOLSS pipe. If credentials
+ are passed use them. */
+
+typedef struct cli_state *(cli_pipe_fn)(
+ struct cli_state *cli, char *system_name,
+ struct ntuser_creds *creds);
+
+#include "python/py_spoolss_proto.h"
#endif /* _PY_SPOOLSS_H */