blob: 194d64228ea44ce002f1e34ec4c68f67e1754fcb [file] [log] [blame]
David Sodmanbbcb0522014-09-19 10:34:07 -07001/*
2 * Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6
7#ifndef SPLASH_H
8#define SPLASH_H
9
10#include "video.h"
11
12typedef struct _splash_t splash_t;
13
David Sodmanbf3f2842014-11-12 08:26:58 -080014splash_t* splash_init();
David Sodmanbbcb0522014-09-19 10:34:07 -070015int splash_destroy(splash_t*);
David Sodman8ef20062015-01-06 09:23:40 -080016int splash_add_image(splash_t*, char* filespec);
David Sodmanbbcb0522014-09-19 10:34:07 -070017int splash_set_clear(splash_t* splash, int32_t clear_color);
18void splash_set_dbus(splash_t* splash, dbus_t* dbus);
19void splash_set_devmode(splash_t* splash);
20int splash_run(splash_t*, dbus_t **dbus);
David Sodman8ef20062015-01-06 09:23:40 -080021void splash_set_offset(splash_t* splash, int32_t x, int32_t y);
22int splash_num_images(splash_t* splash);
23void splash_set_default_duration(splash_t* splash, uint32_t duration);
24void splash_set_loop_start(splash_t* splash, int32_t start_location);
25void splash_set_loop_duration(splash_t* splash, uint32_t duration);
26void splash_set_loop_offset(splash_t* splash, int32_t x, int32_t y);
David Sodmanbbcb0522014-09-19 10:34:07 -070027
28#endif // SPLASH_H