Skip to content

Commit

Permalink
add function to retrieve default struct
Browse files Browse the repository at this point in the history
  • Loading branch information
JanSellner committed May 14, 2024
1 parent 694f0a1 commit 115a697
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blosc/blosc2.c
Original file line number Diff line number Diff line change
Expand Up @@ -4729,3 +4729,7 @@ blosc2_storage blosc2_get_blosc2_storage_defaults(void) {
blosc2_io blosc2_get_blosc2_io_defaults(void) {
return BLOSC2_IO_DEFAULTS;
};

blosc2_stdio_mmap blosc2_get_blosc2_stdio_mmap_defaults(void) {
return BLOSC2_STDIO_MMAP_DEFAULTS;
};
5 changes: 5 additions & 0 deletions include/blosc2.h
Original file line number Diff line number Diff line change
Expand Up @@ -1691,6 +1691,11 @@ BLOSC_EXPORT blosc2_storage blosc2_get_blosc2_storage_defaults(void);
*/
BLOSC_EXPORT blosc2_io blosc2_get_blosc2_io_defaults(void);

/**
* @brief Get default struct for #blosc2_stdio_mmap meant for user initialization.
*/
BLOSC_EXPORT blosc2_stdio_mmap blosc2_get_blosc2_stdio_mmap_defaults(void);

typedef struct blosc2_frame_s blosc2_frame; /* opaque type */

/**
Expand Down

0 comments on commit 115a697

Please sign in to comment.