00001 #ifndef ASEBA_VM_BUFFER 00002 #define ASEBA_VM_BUFFER 00003 00004 #ifdef __cplusplus 00005 extern "C" { 00006 #endif 00007 00008 #include "../../common/types.h" 00009 #include "../../vm/vm.h" 00010 #include "../../vm/natives.h" 00011 00036 00037 // functions this helper provides 00038 00040 void AsebaProcessIncomingEvents(AsebaVMState *vm); 00041 00042 // functions this helper needs 00043 00044 extern void AsebaSendBuffer(AsebaVMState *vm, const uint8* data, uint16 length); 00045 00046 extern uint16 AsebaGetBuffer(AsebaVMState *vm, uint8* data, uint16 maxLength, uint16* source); 00047 00048 extern const AsebaVMDescription* AsebaGetVMDescription(AsebaVMState *vm); 00049 00050 extern const AsebaLocalEventDescription * AsebaGetLocalEventsDescriptions(AsebaVMState *vm); 00051 00052 extern const AsebaNativeFunctionDescription * const * AsebaGetNativeFunctionsDescriptions(AsebaVMState *vm); 00053 00056 #ifdef __cplusplus 00057 } 00058 #endif 00059 00060 #endif