Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions include/mgard_capi.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,25 @@
// MGARD is distributed under the OSI-approved Apache License, Version 2.0.
// See accompanying file Copyright.txt for details.
//
//
#ifdef __cplusplus
#define EXTERN
extern "C" {
#else
#define EXTERN extern
#endif


#ifndef MGARD_CAPI_H
#define MGARD_CAPI_H

extern unsigned char *mgard_compress(int itype_flag, void *data, int *out_size, int nrow, int ncol, int nfib, void* tol, double s);
EXTERN char *mgard_compress(int itype_flag, void *data, int *out_size, int nrow, int ncol, int nfib, void* tol, double s);

extern void *mgard_decompress(int itype_flag, unsigned char *data, int data_len, int nrow, int ncol, int nfib, double s);
EXTERN void *mgard_decompress(int itype_flag, unsigned char *data, int data_len, int nrow, int ncol, int nfib, double s);


#endif

#ifdef __cplusplus
}
#endif