Changeset 740 for vendor/current/lib/talloc/pytalloc.h
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/lib/talloc/pytalloc.h
r414 r740 30 30 } py_talloc_Object; 31 31 32 /* Deallocate a py_talloc_Object */ 33 void py_talloc_dealloc(PyObject* self);32 PyTypeObject *PyTalloc_GetObjectType(void); 33 int PyTalloc_Check(PyObject *); 34 34 35 35 /* Retrieve the pointer for a py_talloc_object. Like talloc_get_type() … … 44 44 45 45 PyObject *py_talloc_steal_ex(PyTypeObject *py_type, TALLOC_CTX *mem_ctx, void *ptr); 46 PyObject *py_talloc_steal(PyTypeObject *py_type, void *ptr); 46 47 PyObject *py_talloc_reference_ex(PyTypeObject *py_type, TALLOC_CTX *mem_ctx, void *ptr); 47 #define py_talloc_steal(py_type, talloc_ptr) py_talloc_steal_ex(py_type, talloc_ptr, talloc_ptr)48 48 #define py_talloc_reference(py_type, talloc_ptr) py_talloc_reference_ex(py_type, talloc_ptr, talloc_ptr) 49 50 /* Sane default implementation of reprfunc. */51 PyObject *py_talloc_default_repr(PyObject *py_obj);52 49 53 50 #define py_talloc_new(type, typeobj) py_talloc_steal(typeobj, talloc_zero(NULL, type)) … … 55 52 PyObject *PyCObject_FromTallocPtr(void *); 56 53 54 PyObject *PyString_FromString_check_null(const char *ptr); 55 57 56 #endif /* _PY_TALLOC_H_ */
Note:
See TracChangeset
for help on using the changeset viewer.