Change argument of get_layer and get_mdi_zorder function pointers to be