mirror of
https://github.com/collabora/libsurvive.git
synced 2026-08-04 00:51:21 -04:00
15 lines
258 B
C
15 lines
258 B
C
#include <survive.h>
|
|
|
|
int main(int argc, char **argv) {
|
|
SurviveContext *ctx = survive_init(argc, argv);
|
|
if (ctx == 0) // implies -help or similiar
|
|
return 0;
|
|
|
|
survive_startup(ctx);
|
|
|
|
while (survive_poll(ctx) == 0) {
|
|
}
|
|
|
|
survive_close(ctx);
|
|
return 0;
|
|
}
|