diff --git a/docs/source/c_api.rst b/docs/source/c_api.rst index 1493a75..2478b06 100644 --- a/docs/source/c_api.rst +++ b/docs/source/c_api.rst @@ -27,6 +27,17 @@ Enumerations .. doxygenenum:: DLDataTypeCode + +Typedefs +~~~~~~~~ + +.. doxygentypedef:: DLPackManagedTensorAllocator +.. doxygentypedef:: DLPackManagedTensorFromPyObjectNoSync +.. doxygentypedef:: DLPackManagedTensorToPyObjectNoSync +.. doxygentypedef:: DLPackDLTensorFromPyObjectNoSync +.. doxygentypedef:: DLPackCurrentWorkStream + + Structs ~~~~~~~ @@ -47,3 +58,9 @@ Structs .. doxygenstruct:: DLManagedTensorVersioned :members: + +.. doxygenstruct:: DLPackExchangeAPIHeader + :members: + +.. doxygenstruct:: DLPackExchangeAPI + :members: diff --git a/include/dlpack/dlpack.h b/include/dlpack/dlpack.h index 9a710eb..9d7be97 100644 --- a/include/dlpack/dlpack.h +++ b/include/dlpack/dlpack.h @@ -415,6 +415,7 @@ typedef int (*DLPackManagedTensorAllocator)( * * \param py_object The Python object to convert. Must have the same type * as the one the `DLPackExchangeAPI` was discovered from. + * \param out The output DLManagedTensorVersioned. * \return The owning DLManagedTensorVersioned* or NULL on failure with a * Python exception set. If the data cannot be described using DLPack * this should be a BufferError if possible. @@ -616,7 +617,7 @@ typedef struct DLPackExchangeAPI { /*! * \brief Producer function pointer for DLPackManagedTensorToPyObject * This function must be not NULL. - * \sa DLPackManagedTensorToPyObject + * \sa DLPackManagedTensorToPyObjectNoSync */ DLPackManagedTensorToPyObjectNoSync managed_tensor_to_py_object_no_sync; /*!