Add set_csync_file_locked_or_open_ext

Without using function, there were problems with DLL import/export
This commit is contained in:
Markus Goetz 2014-04-29 18:37:34 +02:00
parent 876de8fd69
commit 3bf15541c6

View File

@ -182,6 +182,10 @@ csync_vio_file_stat_t *csync_vio_convert_file_stat(csync_file_stat_t *st) {
}
bool (*csync_file_locked_or_open_ext) (const char*) = 0; // filled in by library user
void set_csync_file_locked_or_open_ext(bool (*f) (const char*)) {
csync_file_locked_or_open_ext = f;
}
bool csync_file_locked_or_open( const char *dir, const char *fname) {
char *tmp_uri = NULL;
bool ret;