diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2011-12-29 18:24:49 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2011-12-29 19:59:57 +0100 |
commit | a108eb4fdb565cc6580a15f3d9221f8b9f863fe6 (patch) | |
tree | 3be0c61c342f9b9a398db03660ee2fc87ab2fd3c | |
parent | af1b7f55756b5957e0f4c9e30bfcb6baa0ecaadb (diff) | |
download | samba-a108eb4fdb565cc6580a15f3d9221f8b9f863fe6.tar.gz samba-a108eb4fdb565cc6580a15f3d9221f8b9f863fe6.tar.bz2 samba-a108eb4fdb565cc6580a15f3d9221f8b9f863fe6.zip |
pyregistry: Remove directory support.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu Dec 29 19:59:57 CET 2011 on sn-devel-104
-rw-r--r-- | source4/lib/registry/pyregistry.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/source4/lib/registry/pyregistry.c b/source4/lib/registry/pyregistry.c index ff62279155..2e8b95f6e3 100644 --- a/source4/lib/registry/pyregistry.c +++ b/source4/lib/registry/pyregistry.c @@ -360,36 +360,6 @@ static PyObject *py_open_samba(PyObject *self, PyObject *args, PyObject *kwargs) return pytalloc_steal(&PyRegistry, reg_ctx); } -static PyObject *py_open_directory(PyObject *self, PyObject *args) -{ - char *location; - WERROR result; - struct hive_key *key; - - if (!PyArg_ParseTuple(args, "s", &location)) - return NULL; - - result = reg_open_directory(NULL, location, &key); - PyErr_WERROR_IS_ERR_RAISE(result); - - return pytalloc_steal(&PyHiveKey, key); -} - -static PyObject *py_create_directory(PyObject *self, PyObject *args) -{ - char *location; - WERROR result; - struct hive_key *key; - - if (!PyArg_ParseTuple(args, "s", &location)) - return NULL; - - result = reg_create_directory(NULL, location, &key); - PyErr_WERROR_IS_ERR_RAISE(result); - - return pytalloc_steal(&PyHiveKey, key); -} - static PyObject *py_open_ldb_file(PyObject *self, PyObject *args, PyObject *kwargs) { const char *kwnames[] = { "location", "session_info", "credentials", "lp_ctx", NULL }; @@ -464,8 +434,6 @@ static PyObject *py_get_predef_name(PyObject *self, PyObject *args) static PyMethodDef py_registry_methods[] = { { "open_samba", (PyCFunction)py_open_samba, METH_VARARGS|METH_KEYWORDS, "open_samba() -> reg" }, - { "open_directory", py_open_directory, METH_VARARGS, "open_dir(location) -> key" }, - { "create_directory", py_create_directory, METH_VARARGS, "create_dir(location) -> key" }, { "open_ldb", (PyCFunction)py_open_ldb_file, METH_VARARGS|METH_KEYWORDS, "open_ldb(location, session_info=None, credentials=None, loadparm_context=None) -> key" }, { "open_hive", (PyCFunction)py_open_hive, METH_VARARGS|METH_KEYWORDS, "open_hive(location, session_info=None, credentials=None, loadparm_context=None) -> key" }, { "str_regtype", py_str_regtype, METH_VARARGS, "str_regtype(int) -> str" }, |