1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

s4-pyldb: Move PyLdbMessage_FromMessage() in PyMessage group of functions

This commit is contained in:
Kamen Mazdrashki 2010-11-15 04:53:05 +02:00
parent d42ea3263a
commit 72fcfedd89

View File

@ -54,6 +54,7 @@ typedef struct {
TALLOC_CTX *mem_ctx; TALLOC_CTX *mem_ctx;
struct ldb_message *msg; struct ldb_message *msg;
} PyLdbMessageObject; } PyLdbMessageObject;
PyObject *PyLdbMessage_FromMessage(struct ldb_message *message);
#define PyLdbMessage_Check(ob) PyObject_TypeCheck(ob, &PyLdbMessage) #define PyLdbMessage_Check(ob) PyObject_TypeCheck(ob, &PyLdbMessage)
#define PyLdbMessage_AsMessage(pyobj) ((PyLdbMessageObject *)pyobj)->msg #define PyLdbMessage_AsMessage(pyobj) ((PyLdbMessageObject *)pyobj)->msg
@ -62,7 +63,6 @@ typedef struct {
TALLOC_CTX *mem_ctx; TALLOC_CTX *mem_ctx;
struct ldb_module *mod; struct ldb_module *mod;
} PyLdbModuleObject; } PyLdbModuleObject;
PyObject *PyLdbMessage_FromMessage(struct ldb_message *message);
PyObject *PyLdbModule_FromModule(struct ldb_module *mod); PyObject *PyLdbModule_FromModule(struct ldb_module *mod);
#define PyLdbModule_AsModule(pyobj) ((PyLdbModuleObject *)pyobj)->mod #define PyLdbModule_AsModule(pyobj) ((PyLdbModuleObject *)pyobj)->mod