I've been looking at exmaple code, docs (very limited) and do not understand how I can create a type in blitz that can access structs in c.
ie
blitzmax file
---
Type temp_typ
Field x:int,y:int
Field data:datastruct
end type
c file
typedef struct {
int length; /**< length of data stream */
unsigned char *data; /**< Pointer to start data */
} datastruct;
---
I've managed to get blitz to compile the c code and include it in a wrapper, I just can't work out how to pass data between the 2.
Any help would be fanatstic.
ie
blitzmax file
---
Type temp_typ
Field x:int,y:int
Field data:datastruct
end type
c file
typedef struct {
int length; /**< length of data stream */
unsigned char *data; /**< Pointer to start data */
} datastruct;
---
I've managed to get blitz to compile the c code and include it in a wrapper, I just can't work out how to pass data between the 2.
Any help would be fanatstic.