From df2d16faa681af8770e63c5e3f9307ba12bd9685 Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 18 Jul 2024 03:30:36 +0000 Subject: library api's: defined source data flags. --- include/tpax/tpax.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include') diff --git a/include/tpax/tpax.h b/include/tpax/tpax.h index 1ea9887..bb6aae7 100644 --- a/include/tpax/tpax.h +++ b/include/tpax/tpax.h @@ -63,6 +63,17 @@ extern "C" { #define TPAX_DRIVER_STRICT_DEVICE_ID 0X10000000 +/* source data flags */ +#define TPAX_SOURCE_DATA_NONE 0x0000 +#define TPAX_SOURCE_DATA_PENDING 0x0001 +#define TPAX_SOURCE_DATA_OPENED 0x0002 +#define TPAX_SOURCE_DATA_CLOSED 0x0004 + +#define TPAX_SOURCE_DATA_FILEIO 0X0010 +#define TPAX_SOURCE_DATA_MAPPED 0x0020 +#define TPAX_SOURCE_DATA_CACHED 0x0040 +#define TPAX_SOURCE_DATA_ERROR 0x0080 + /* error flags */ #define TPAX_ERROR_TOP_LEVEL 0x0001 #define TPAX_ERROR_NESTED 0x0002 @@ -119,6 +130,7 @@ struct tpax_common_ctx { uint64_t drvflags; uint64_t actflags; uint64_t fmtflags; + uint64_t srcflags; uint32_t blksize; }; -- cgit v1.2.3