diff options
Diffstat (limited to 'src/mac/libraries/CCache API/include')
| -rw-r--r-- | src/mac/libraries/CCache API/include/CCacheUtil.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/mac/libraries/CCache API/include/CCacheUtil.h b/src/mac/libraries/CCache API/include/CCacheUtil.h new file mode 100644 index 000000000..23426fc67 --- /dev/null +++ b/src/mac/libraries/CCache API/include/CCacheUtil.h @@ -0,0 +1,28 @@ +#include "CCache.h" + +#define kCredsMatch 1 +#define kCredsDiffer 0 + +// ----- Prototypes for Private Functions ------------------ +cred_union ** newCredBuffer(ccache_p *nc); +int credBufferInsert(ccache_p* nc, cred_union creds); +int credBufferRemove(ccache_p* nc, const cred_union cred_to_remove); + +char credcmp (cred_union a, cred_union b); + +char isLockOurs(const ccache_p *nc); + +int copyDataObj(cc_data *obj, cc_data src); +int copyV5Cred(cred_union src, cred_union **dest); +int copyV4Cred(cred_union src, cred_union **dest); +int dupNC(ccache_p* src, ccache_p** dest); +void copyDataArray(cc_data **src, cc_data ***dest); + +void disposeDataArray(cc_data **base); +int cc_free_cred_internals(cred_union *creds); +int freeNCList(apiCB *cntrlBlock); +int disposeCredBuffer(apiCB *cc_ctx, ccache_p *nc); + +Ptr NewSafePtr(long size); +Ptr NewSafePtrSys(long size); +void DisposeSafePtr(Ptr safeP); |
