Move the sources to trunk
[opencv] / interfaces / ch / chfhandmade / cvSetIPLAllocators.chf
1 void cvSetIPLAllocators(Cv_iplCreateImageHeader create_header, Cv_iplAllocateImageData allocate_data, Cv_iplDeallocate deallocate, Cv_iplCreateROI create_roi, Cv_iplCloneImage clone_image) {
2     void *fptr;
3
4     fptr = dlsym(_Chcv_handle, "cvSetIPLAllocators_chdl");
5     if(fptr == NULL) {
6         fprintf(_stderr, "Error: %s(): dlsym(): %s\n", __func__,  dlerror());
7         return;
8     }
9     dlrunfun(fptr, NULL, cvSetIPLAllocators, create_header, allocate_data, deallocate, create_roi, clone_image);
10 }