Code Coverage Report for src/api/open-callbacks.c
|
Hit |
Total |
Coverage |
Lines: |
3 |
3 |
100.0% |
Branches: |
0 |
0 |
----- |
1 /*
2 * libnogg: a decoder library for Ogg Vorbis streams
3 * Copyright (c) 2014-2024 Andrew Church <achurch@achurch.org>
4 *
5 * This software may be copied and redistributed under certain conditions;
6 * see the file "COPYING" in the source code distribution for details.
7 * NO WARRANTY is provided with this software.
8 */
9
10 #include "include/nogg.h"
11 #include "src/common.h"
12 #include "src/util/open.h"
13
14
15 vorbis_t *vorbis_open_callbacks(
16 vorbis_callbacks_t callbacks, void *opaque, unsigned int options,
17 vorbis_error_t *error_ret)
18 {
19 return open_common(
20 &(open_params_t){.callbacks = &callbacks,
21 .callback_data = opaque,
22 .options = options,
23 .packet_mode = false},
24 error_ret);
25 }