49 #ifndef _CL_XDR_API_H_
50 #define _CL_XDR_API_H_
60 #include <clXdrErrors.h>
64 #include <clDifferenceVector.h>
66 #define CL_XDR_ENTER(x)
67 #define CL_XDR_EXIT(x)
68 #define CL_XDR_PRINT(x)
70 typedef ClRcT (*ClXdrMarshallFuncT) (
void* pPyld,
79 typedef struct ClIdlContextInfo
85 typedef struct ClIdlSyncInfo
88 ClHandleT idlRmdDeferHdl;
91 typedef ClHandleT ClIdlHandleT;
93 ClRcT clIdlSyncPrivateInfoSet(ClUint32T idlSyncKey,
void * pIdlCtxInfo);
95 ClRcT clIdlSyncPrivateInfoGet(ClUint32T idlSyncKey,
void ** data);
101 ClRcT clXdrMarshallArray(
void* array,
103 ClUint32T multiplicity,
104 ClXdrMarshallFuncT func,
111 ClUint32T multiplicity,
112 ClXdrUnmarshallFuncT func);
114 ClRcT clXdrMarshallPtr(
void* pointer,
116 ClUint32T multiplicity,
117 ClXdrMarshallFuncT func,
124 ClUint32T multiplicity,
125 ClXdrUnmarshallFuncT func);
165 CL_IN ClUint32T isDelete);
363 ClUint32T multiplicity);
594 ClUint32T multiplicity);
827 ClUint32T multiplicity);
1021 ClUint32T isDelete);
1059 ClUint32T multiplicity);
1097 ClUint32T isDelete);
1173 ClUint32T isDelete);
1254 ClUint32T isDelete);
1292 ClUint32T multiplicity);
1330 ClUint32T isDelete);
1403 #define clXdrMarshallArrayClUint32T(pPyld, count, msg, isDelete) \
1404 clXdrMarshallArray((pPyld), sizeof(ClUint32T), \
1405 (count), clXdrMarshallClUint32T, \
1443 #define clXdrUnmarshallArrayClUint32T(msg,pPyld, count) \
1444 clXdrUnmarshallArray((msg), \
1445 (pPyld), sizeof(ClUint32T), \
1446 (count), clXdrUnmarshallClUint32T)
1485 #define clXdrMarshallPtrClUint32T(pPyld, count, msg, isDelete) \
1486 clXdrMarshallPtr((pPyld), sizeof(ClUint32T), \
1487 (count), clXdrMarshallClUint32T, \
1524 #define clXdrUnmarshallPtrClUint32T(msg, pPyld, multiplicity) \
1525 clXdrUnmarshallPtr((msg), \
1526 (pPyld), sizeof(ClUint32T), \
1527 multiplicity, clXdrUnmarshallClUint32T)
1565 ClUint32T isDelete);
1638 #define clXdrMarshallArrayClInt32T(pPyld, count, msg, isDelete) \
1639 clXdrMarshallArray((pPyld), sizeof(ClInt32T), \
1640 (count), clXdrMarshallClInt32T, \
1678 #define clXdrUnmarshallArrayClInt32T(msg, pPyld, count) \
1679 clXdrUnmarshallArray((msg), \
1680 (pPyld), sizeof(ClInt32T), \
1681 (count), clXdrUnmarshallClInt32T)
1719 #define clXdrMarshallPtrClInt32T(pPyld, count, msg, isDelete) \
1720 clXdrMarshallPtr((pPyld), sizeof(ClInt32T), \
1721 (count), clXdrMarshallClInt32T, \
1758 #define clXdrUnmarshallPtrClInt32T(msg, pPyld, multiplicity) \
1759 clXdrUnmarshallPtr((msg), \
1760 (pPyld), sizeof(ClInt32T), \
1761 multiplicity, clXdrUnmarshallClInt32T)
1799 ClUint32T isDelete);
1872 #define clXdrMarshallArrayClUint64T(pPyld, count, msg, isDelete) \
1873 clXdrMarshallArray((pPyld), sizeof(ClUint64T), \
1874 (count), clXdrMarshallClUint64T, \
1912 #define clXdrUnmarshallArrayClUint64T(msg,pPyld, count) \
1913 clXdrUnmarshallArray((msg), \
1914 (pPyld), sizeof(ClUint64T), \
1915 (count), clXdrUnmarshallClUint64T)
1954 #define clXdrMarshallPtrClUint64T(pPyld, count, msg, isDelete) \
1955 clXdrMarshallPtr((pPyld), sizeof(ClUint64T), \
1956 (count), clXdrMarshallClUint64T, \
1993 #define clXdrUnmarshallPtrClUint64T(msg, pPyld, multiplicity) \
1994 clXdrUnmarshallPtr((msg), \
1995 (pPyld), sizeof(ClUint64T), \
1996 multiplicity,clXdrUnmarshallClUint64T)
2034 ClUint32T isDelete);
2106 #define clXdrMarshallArrayClInt64T(pPyld, count, msg, isDelete) \
2107 clXdrMarshallArray((pPyld), sizeof(ClInt64T), \
2108 (count), clXdrMarshallClInt64T, \
2146 #define clXdrUnmarshallArrayClInt64T(msg, pPyld, count) \
2147 clXdrUnmarshallArray((msg), \
2148 (pPyld), sizeof(ClInt64T), \
2149 (count), clXdrUnmarshallClInt64T)
2188 #define clXdrMarshallPtrClInt64T(pPyld, count, msg, isDelete) \
2189 clXdrMarshallPtr((pPyld), sizeof(ClInt64T), \
2190 (count), clXdrMarshallClInt64T, \
2227 #define clXdrUnmarshallPtrClInt64T(msg, pPyld, multiplicity) \
2228 clXdrUnmarshallPtr((msg), \
2229 (pPyld), sizeof(ClInt64T), \
2230 multiplicity, clXdrUnmarshallClInt64T)
2236 #define clXdrMarshallArrayClStringT(pointer, multiplicity, msg, isDelete) \
2237 clXdrMarshallArray((pointer), sizeof(ClStringT), (multiplicity), clXdrMarshallClStringT, (msg), (isDelete))
2239 #define clXdrUnmarshallArrayClStringT(msg,pointer, multiplicity) \
2240 clXdrUnmarshallArray((msg),(pointer), sizeof(ClStringT), (multiplicity), clXdrUnmarshallClStringT)
2242 #define clXdrMarshallPointerClStringT(pointer, multiplicity, msg, isDelete) \
2243 clXdrMarshallPointer((pointer), sizeof(ClStringT), (multiplicity), clXdrMarshallClStringT, (msg), (isDelete))
2245 #define clXdrUnmarshallPointerClStringT(msg,pointer) \
2246 clXdrUnmarshallPointer((msg),(pointer), sizeof(ClStringT), clXdrUnmarshallClStringT)
2248 #define clXdrMarshallPtrClStringT(pointer, multiplicity, msg, isDelete) \
2249 clXdrMarshallPtr((pointer), sizeof(ClStringT), (multiplicity), clXdrMarshallClStringT, (msg), (isDelete))
2251 #define clXdrUnmarshallPtrClStringT(msg,pointer,multiplicity) \
2252 clXdrUnmarshallPtr((msg),(pointer), sizeof(ClStringT),multiplicity, clXdrUnmarshallClStringT)
2360 #define clXdrMarshallArrayClNameT(pointer, multiplicity, msg, isDelete) \
2361 clXdrMarshallArray((pointer), sizeof(ClNameT), \
2362 (multiplicity), clXdrMarshallClNameT, \
2399 #define clXdrUnmarshallArrayClNameT(msg, pointer, multiplicity) \
2400 clXdrUnmarshallArray((msg), \
2401 (pointer), sizeof(ClNameT), \
2402 (multiplicity), clXdrUnmarshallClNameT)
2441 #define clXdrMarshallPtrClNameT(pointer, multiplicity, msg, isDelete) \
2442 clXdrMarshallPtr((pointer), sizeof(ClNameT), \
2443 (multiplicity), clXdrMarshallClNameT, \
2480 #define clXdrUnmarshallPtrClNameT(msg, pointer, multiplicity) \
2481 clXdrUnmarshallPtr((msg), \
2482 (pointer), sizeof(ClNameT), \
2483 multiplicity, clXdrUnmarshallClNameT)
2557 #define clXdrMarshallPtrClVersionT(pointer, multiplicity, msg, isDelete) \
2558 clXdrMarshallPtr((pointer), sizeof(ClVersionT), \
2559 (multiplicity), clXdrMarshallClVersionT, \
2631 #define clXdrUnmarshallPtrClVersionT(msg, pointer, multiplicity) \
2632 clXdrUnmarshallPtr((msg), \
2633 (pointer), sizeof(ClVersionT), \
2634 multiplicity, clXdrUnmarshallClVersionT)
2743 #define clXdrMarshallPtrClHandleT(pointer, multiplicity, msg, isDelete) \
2744 clXdrMarshallPtr((pointer), sizeof(ClHandleT), \
2745 (multiplicity), clXdrMarshallClHandleT, \
2782 #define clXdrUnmarshallPtrClHandleT(msg, pointer, multiplicity) \
2783 clXdrUnmarshallPtr((msg), \
2784 (pointer), sizeof(ClHandleT), \
2785 multiplicity, clXdrUnmarshallClHandleT)
2896 #define clXdrMarshallPtrClWordT(pointer, multiplicity, msg, isDelete) \
2897 clXdrMarshallPtr((pointer), sizeof(ClWordT), \
2898 (multiplicity), clXdrMarshallClWordT, \
2935 #define clXdrUnmarshallPtrClWordT(msg, pointer, multiplicity) \
2936 clXdrUnmarshallPtr((msg), \
2937 (pointer), sizeof(ClWordT), \
2938 multiplicity, clXdrUnmarshallClWordT)
2944 #define clXdrMarshallPtrClMD5T(pointer, multiplicity, msg, isDelete) \
2945 clXdrMarshallPtr((pointer), sizeof(ClMD5T), \
2946 (multiplicity), clXdrMarshallClMD5T, \
2949 #define clXdrUnmarshallPtrClMD5T(msg, pointer, multiplicity) \
2950 clXdrUnmarshallPtr((msg), \
2951 (pointer), sizeof(ClMD5T), \
2952 multiplicity, clXdrUnmarshallClMD5T)
2954 #define clXdrMarshallArrayClMD5T(pointer, multiplicity, msg, isDelete) \
2955 clXdrMarshallArray((pointer), sizeof(ClMD5T), (multiplicity), clXdrMarshallClMD5T, (msg), (isDelete))
2957 #define clXdrUnmarshallArrayClMD5T(msg,pointer, multiplicity) \
2958 clXdrUnmarshallArray((msg),(pointer), sizeof(ClMD5T), (multiplicity), clXdrUnmarshallClMD5T)
2964 #define clXdrMarshallArrayClDifferenceVectorT(pointer, multiplicity, msg, isDelete) \
2965 clXdrMarshallArray((pointer), sizeof(ClDifferenceVectorT), (multiplicity), clXdrMarshallClDifferenceVectorT, (msg), (isDelete))
2967 #define clXdrUnmarshallArrayClDifferenceVectorT(msg,pointer, multiplicity) \
2968 clXdrUnmarshallArray((msg),(pointer), sizeof(ClDifferenceVectorT), (multiplicity), clXdrUnmarshallClDifferenceVectorT)
2970 #define clXdrMarshallPointerClDifferenceVectorT(pointer, multiplicity, msg, isDelete) \
2971 clXdrMarshallPointer((pointer), sizeof(ClDifferenceVectorT), (multiplicity), clXdrMarshallClDifferenceVectorT, (msg), (isDelete))
2973 #define clXdrUnmarshallPointerClDifferenceVectorT(msg,pointer) \
2974 clXdrUnmarshallPointer((msg),(pointer), sizeof(ClDifferenceVectorT), clXdrUnmarshallClDifferenceVectorT)
2976 #define clXdrMarshallPtrClDifferenceVectorT(pointer, multiplicity, msg, isDelete) \
2977 clXdrMarshallPtr((pointer), sizeof(ClDifferenceVectorT), (multiplicity), clXdrMarshallClDifferenceVectorT, (msg), (isDelete))
2979 #define clXdrUnmarshallPtrClDifferenceVectorT(msg,pointer,multiplicity) \
2980 clXdrUnmarshallPtr((msg),(pointer), sizeof(ClDifferenceVectorT),multiplicity, clXdrUnmarshallClDifferenceVectorT)
2986 #define clXdrMarshallArrayClDataVectorT(pointer, multiplicity, msg, isDelete) \
2987 clXdrMarshallArray((pointer), sizeof(ClDataVectorT), (multiplicity), clXdrMarshallClDataVectorT, (msg), (isDelete))
2989 #define clXdrUnmarshallArrayClDataVectorT(msg,pointer, multiplicity) \
2990 clXdrUnmarshallArray((msg),(pointer), sizeof(ClDataVectorT), (multiplicity), clXdrUnmarshallClDataVectorT)
2992 #define clXdrMarshallPointerClDataVectorT(pointer, multiplicity, msg, isDelete) \
2993 clXdrMarshallPointer((pointer), sizeof(ClDataVectorT), (multiplicity), clXdrMarshallClDataVectorT, (msg), (isDelete))
2995 #define clXdrUnmarshallPointerClDataVectorT(msg,pointer) \
2996 clXdrUnmarshallPointer((msg),(pointer), sizeof(ClDataVectorT), clXdrUnmarshallClDataVectorT)
2998 #define clXdrMarshallPtrClDataVectorT(pointer, multiplicity, msg, isDelete) \
2999 clXdrMarshallPtr((pointer), sizeof(ClDataVectorT), (multiplicity), clXdrMarshallClDataVectorT, (msg), (isDelete))
3001 #define clXdrUnmarshallPtrClDataVectorT(msg,pointer,multiplicity) \
3002 clXdrUnmarshallPtr((msg),(pointer), sizeof(ClDataVectorT),multiplicity, clXdrUnmarshallClDataVectorT)
3004 ClRcT clXdrError(
void* pPyld, ...);
3006 ClRcT clIdlFree(
void *pData);