Phase 0.
This commit is contained in:
parent
1d8f869b5b
commit
0578b6243c
5 changed files with 118 additions and 10 deletions
24
src/main.c
Normal file
24
src/main.c
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#include "xtlite/xtlite.h"
|
||||
#include "xtlite/xtlite_version.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
xt_app *app = NULL;
|
||||
xt_result result = xt_app_create(&app);
|
||||
|
||||
if (result != XT_OK) {
|
||||
(void)fprintf(stderr, "Application initialization failed: %s\n",
|
||||
xt_result_string(result));
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
xt_app_destroy(app);
|
||||
if (printf("%s %s: core startup/shutdown OK\n",
|
||||
XTLITE_PROJECT_NAME, XTLITE_VERSION_STRING) < 0) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue