mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 17:08:38 +00:00
31 lines
667 B
C
31 lines
667 B
C
#ifndef GEN_QABSTRACTANIMATION_H
|
|
#define GEN_QABSTRACTANIMATION_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
// miqt_exec_callback calls a Go function pointer for a connect() slot.
|
|
// The function is defined in Go.
|
|
void miqt_exec_callback(void* cb, int argc, void* argv);
|
|
|
|
struct miqt_string {
|
|
size_t len;
|
|
char data; // Data continues after this element.
|
|
}
|
|
|
|
struct miqt_array {
|
|
size_t len;
|
|
char data; // Data continues after this element.
|
|
}
|
|
|
|
// miqt_strdup allocates a miqt_string and copies C data into it.
|
|
// The function is defined in C++.
|
|
struct miqt_string* miqt_strdup(const char* src, size_t len);
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#endif
|