#!/bin/sh
set -e

cd "$AUTOPKGTEST_TMP"

cat <<EOF > test1.c
#include <stratohal/platform.h>

bool hal_callback_on_event_boot(char **title, int *width, int *height)
{
	*title = "Hello";
	*width = 320;
	*height = 240;
	return true;
}

bool hal_callback_on_event_start(void)
{
	return true;
}

void hal_callback_on_event_stop(void)
{
}

bool hal_callback_on_event_frame(void)
{
	return true;
}

void hal_callback_on_event_key_press(int key)
{
}

void hal_callback_on_event_key_release(int key)
{
}

void hal_callback_on_event_mouse_press(int button, int x, int y)
{
}

void hal_callback_on_event_mouse_release(int button, int x, int y)
{
}

void hal_callback_on_event_mouse_move(int x, int y)
{
}

void hal_callback_on_event_analog_input(int input, int val)
{
}

void hal_callback_on_event_touch_cancel(void)
{
}

void hal_callback_on_event_swipe_down(void)
{
}

void hal_callback_on_event_swipe_up(void)
{
}
EOF

gcc test1.c -lstrato
echo "Autopkgtest: OK"
