Skip to content

Commit 8e752f3

Browse files
authored
feat: test arrow device array stream (#8)
Add Arrow device array stream harness check --------- Signed-off-by: Alexander Droste <alexander.droste@protonmail.com>
1 parent 7722230 commit 8e752f3

2 files changed

Lines changed: 274 additions & 168 deletions

File tree

include/arrow_c_device.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,15 @@ struct ArrowDeviceArray {
8181
int64_t _reserved[3];
8282
};
8383

84+
struct ArrowDeviceArrayStream {
85+
ArrowDeviceType device_type;
86+
int (*get_schema)(struct ArrowDeviceArrayStream*, struct ArrowSchema* out);
87+
int (*get_next)(struct ArrowDeviceArrayStream*, struct ArrowDeviceArray* out);
88+
const char* (*get_last_error)(struct ArrowDeviceArrayStream*);
89+
void (*release)(struct ArrowDeviceArrayStream*);
90+
void* private_data;
91+
};
92+
8493
#ifdef __cplusplus
8594
}
8695
#endif

0 commit comments

Comments
 (0)