[Python-checkins] CVS: python/dist/src/Include abstract.h,2.40,2.41
Jeremy Hylton
jhylton@users.sourceforge.net
Fri, 09 Nov 2001 13:59:29 -0800
Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv11557
Modified Files:
abstract.h
Log Message:
Add PyObject_CheckReadBuffer(), which returns true if its argument
supports the single-segment readable buffer interface.
Add documentation for this and other PyObject_XXXBuffer() calls.
Index: abstract.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/abstract.h,v
retrieving revision 2.40
retrieving revision 2.41
diff -C2 -d -r2.40 -r2.41
*** abstract.h 2001/10/28 02:35:01 2.40
--- abstract.h 2001/11/09 21:59:27 2.41
***************
*** 469,472 ****
--- 469,481 ----
*/
+ DL_IMPORT(int) PyObject_CheckReadBuffer(PyObject *obj);
+
+ /*
+ Checks whether an arbitrary object supports the (character,
+ single segment) buffer interface. Returns 1 on success, 0
+ on failure.
+
+ */
+
DL_IMPORT(int) PyObject_AsReadBuffer(PyObject *obj,
const void **buffer,