1 /* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
2  * Use of this source code is governed by a BSD-style license that can be
3  * found in the LICENSE file.
4  *
5  * Delay/beep functions used in dev-mode kernel selection.
6  */
7 
8 #ifndef VBOOT_REFERENCE_VBOOT_AUDIO_H_
9 #define VBOOT_REFERENCE_VBOOT_AUDIO_H_
10 
11 #include "vboot_api.h"
12 
13 typedef struct VbAudioContext VbAudioContext;
14 
15 /**
16  * Initialization function. Returns context for processing dev-mode delay.
17  */
18 VbAudioContext *VbAudioOpen(VbCommonParams *cparams);
19 
20 /**
21  * Caller should loop without extra delay until this returns false.
22  */
23 int VbAudioLooping(VbAudioContext *audio);
24 
25 /**
26  * Caller should call this prior to booting.
27  */
28 void VbAudioClose(VbAudioContext *audio);
29 
30 #endif /* VBOOT_REFERENCE_VBOOT_AUDIO_H_ */
31 
32