mirror of
https://github.com/NeoFlock/neonucleus.git
synced 2025-09-24 09:03:32 +02:00
some important things
This commit is contained in:
parent
f983b80e08
commit
307ba51fe6
@ -11,6 +11,10 @@ typedef struct nn_computer {
|
||||
size_t argc;
|
||||
nn_value rets[NN_MAX_RETS];
|
||||
size_t retc;
|
||||
nn_architecture *arch;
|
||||
nn_architecture *nextArch;
|
||||
nn_architecture supportedArch[NN_MAX_ARCHITECTURES];
|
||||
size_t supportedArchCount;
|
||||
} nn_computer;
|
||||
|
||||
#endif
|
||||
|
@ -31,6 +31,9 @@ typedef struct nn_architecture {
|
||||
void (*teardown)(nn_computer *computer, void *state, void *userdata);
|
||||
size_t (*getMemoryUsage)(nn_computer *computer, void *state, void *userdata);
|
||||
void (*tick)(nn_computer *computer, void *state, void *userdata);
|
||||
/* Pointer returned should be allocated with nn_malloc or nn_realloc, so it can be freed with nn_free */
|
||||
char *(*serialize)(nn_computer *computer, void *state, void *userdata);
|
||||
void (*deserialize)(nn_computer *computer, const char *data, void *state, void *userdata);
|
||||
} nn_architecture;
|
||||
typedef const char *nn_address;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user