core: added memory output_item to get things compiling
[lumina.git] / core / include / output / memory.h
blob5cdf1d0b0db1320d83b62c8ddd878c4ee9db2818
1 #ifndef OUTPUT_MEMORY_H
2 #define OUTPUT_MEMORY_H
4 #include "output_item.h"
6 /* Memory output item
7 * Either creates a copy of the data, or is given ownership
8 * Cannot be added multiple times due to lack of reference counting/etc since object self-frees
9 */
11 typedef struct {
12 output_item item;
13 BYTE *data;
14 size_t size;
15 size_t index;
16 } memory_output_item;
18 output_item *new_memory_output_item(void *data, size_t size, int copy);
20 #endif