int chd_create_ref(void *ref, UINT64 logicalbytes, UINT32 hunkbytes, UINT32 compression, chd_file *parent) { char filename[ENCODED_IMAGE_REF_LEN]; encode_ptr(ref, filename); return chd_create(filename, logicalbytes, hunkbytes, compression, parent); }
chd_file *chd_open_ref(void *ref, int writeable, chd_file *parent) { char filename[ENCODED_IMAGE_REF_LEN]; encode_ptr(ref, filename); return chd_open(filename, writeable, parent); }
chd_error chd_open_ref(void *ref, int mode, chd_file *parent, chd_file **chd) { char filename[ENCODED_IMAGE_REF_LEN]; encode_ptr(ref, filename); return chd_open(filename, mode, parent, chd); }