[pywin32-checkins] pywin32/isapi/src PyExtensionObjects.cpp, 1.15, 1.16
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2009-03-02 04:39:40
|
Update of /cvsroot/pywin32/pywin32/isapi/src In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv7588 Modified Files: PyExtensionObjects.cpp Log Message: autoduck for the IOCompletion callback Index: PyExtensionObjects.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/isapi/src/PyExtensionObjects.cpp,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** PyExtensionObjects.cpp 3 Feb 2009 00:51:42 -0000 1.15 --- PyExtensionObjects.cpp 2 Mar 2009 04:39:37 -0000 1.16 *************** *** 261,264 **** --- 261,265 ---- {NULL} }; + // @pymeth IOCallback|A placeholder for a user-supplied callback function. PyTypeObject PyECBType = *************** *** 782,785 **** --- 783,798 ---- } + // *sob* - these autoduck comments should be closer to the actual callback impl, + // but autoduck makes life harder than it should be... + // @pymethod None|EXTENSION_CONTROL_BLOCK|IOCallback|A placeholder for a user-supplied callback function. + // @comm This is not a function you can call, it describes the signature of + // the callback function supplied to the <om EXTENSION_CONTROL_BLOCK.IOCompletion> + // function. + // @pyparm <o EXTENSION_CONTROL_BLOCK>|ecb||The extension control block that is associated with the current, active request. + // @pyparm object|arg||The user-supplied argument supplied to the <om EXTENSION_CONTROL_BLOCK.IOCompletion> function. + // @pyparm int|cbIO||An integer that contains the number of bytes of I/O in the last call. + // @pyparm int|dwError||The error code returned. + // @rdesc The result of this function is ignored. + // @pymethod int|EXTENSION_CONTROL_BLOCK|IOCompletion|Set a callback that will be used for handling asynchronous I/O operations. // @comm If you call this multiple times, the previous callback will be discarded. *************** *** 797,802 **** PyObject *obArg = NULL; if (!PyArg_ParseTuple(args, "O|O:IOCompletion", ! &obCallback, // @pyparm callable|func||The function to call. ! &obArg)) return NULL; --- 810,815 ---- PyObject *obArg = NULL; if (!PyArg_ParseTuple(args, "O|O:IOCompletion", ! &obCallback, // @pyparm callable|func||The function to call, as described by the <om EXTENSION_CONTROL_BLOCK.IOCallback> method. ! &obArg)) // @pyparm object|arg|None|Any object which will be supplied as an argument to the callback function. return NULL; |