diff options
author | Tim Potter <tpot@samba.org> | 2002-04-14 00:58:16 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-04-14 00:58:16 +0000 |
commit | 8d994f432d34a7e81335c3be05aa40f1e227636c (patch) | |
tree | a007e5d346fda3c59b2a8920ecbfbc1165923f22 /source3/python/py_common.h | |
parent | 35e8d461e9c35b972b9d6b264853be1608acc62a (diff) | |
download | samba-8d994f432d34a7e81335c3be05aa40f1e227636c.tar.gz samba-8d994f432d34a7e81335c3be05aa40f1e227636c.tar.bz2 samba-8d994f432d34a7e81335c3be05aa40f1e227636c.zip |
Moved open_pipe_creds() function to common file.
(This used to be commit 14e4d889a236dd9c2ba6db68b3133e44195b8a47)
Diffstat (limited to 'source3/python/py_common.h')
-rw-r--r-- | source3/python/py_common.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/source3/python/py_common.h b/source3/python/py_common.h index 4a5c92ca8c..45ad5c422d 100644 --- a/source3/python/py_common.h +++ b/source3/python/py_common.h @@ -27,8 +27,19 @@ void py_samba_init(void); PyObject *py_werror_tuple(WERROR werror); PyObject *py_ntstatus_tuple(NTSTATUS ntstatus); -PyObject *py_setup_logging(PyObject *self, PyObject *args); +PyObject *py_setup_logging(PyObject *self, PyObject *args, PyObject *kw); PyObject *get_debuglevel(PyObject *self, PyObject *args); PyObject *set_debuglevel(PyObject *self, PyObject *args); +/* 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); + +struct cli_state *open_pipe_creds(char *system_name, PyObject *creds, + cli_pipe_fn *connect_fn, + struct cli_state *cli); + #endif /* _PY_COMMON_H */ |