24 lines
579 B
C
24 lines
579 B
C
|
|
#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;
|
||
|
|
}
|