Skip to content

Commit

Permalink
Initialize grok lib when loading the library
Browse files Browse the repository at this point in the history
  • Loading branch information
martaiborra committed Jan 23, 2024
1 parent 6719650 commit 75e45b1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions blosc/blosc2.c
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,11 @@ int fill_codec(blosc2_codec *codec) {
dlclose(lib);
return BLOSC2_ERROR_FAILURE;
}
if (codec->compcode == BLOSC_CODEC_GROK) {
// Initialize grok lib
void (*init_func)(uint32_t, bool) = dlsym(lib, "blosc2_grok_init");
(*init_func)(0, false);
}

return BLOSC2_ERROR_SUCCESS;
}
Expand Down

0 comments on commit 75e45b1

Please sign in to comment.