Open RodrigoDornelles opened 1 year ago
#include "../src/3bc.h"
int main(int argc, char** argv)
{
uint8_t appid = app_3bc_temp_init();
app_3bc_install(appid, PACKAGE_DESKTOP_DEFAULTS);
app_3bc_install(appid, PACKAGE_DESKTOP_CLI);
app_3bc_set_cli(appid, argc, argv);
while (app_3bc_running(appid)){
app_3bc_update(appid);
}
app_3bc_destroy(appid);
return 0;
}
It would be interesting to standardize a virtual machine access api, in order to avoid using the internal functions.
Posix C Style
a posix style, like
unistd
working with ids so they are integers, makes it easy to integrate with another programming language.besides of course protecting the struct's internal structure.
Class C++ Style
an alternative for C++ users as a basic and easier wrapper.