diff -r 990734f548ef -r 655020a30e77 ucx/ucx.h --- a/ucx/ucx.h Sun Nov 04 20:50:12 2012 +0100 +++ b/ucx/ucx.h Fri Nov 30 13:10:58 2012 +0100 @@ -37,6 +37,12 @@ /* element,custom data -> copy of element */ typedef void*(*copy_func)(void*,void*); +/* buffer, element size, element count, stream */ +typedef size_t(*write_func)(const void*, size_t, size_t, void*); + +/* buffer, element size, element count, stream */ +typedef size_t(*read_func)(void*, size_t, size_t, void*); + #ifdef __cplusplus } #endif