Mercurial > molko
comparison libmlk-core/mlk/core/music.h @ 517:6e8f6640e05b
misc: use extern C manually
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 04 Mar 2023 14:23:59 +0100 |
parents | b6b1162dafa3 |
children | 593703440a05 |
comparison
equal
deleted
inserted
replaced
516:6af0524913b3 | 517:6e8f6640e05b |
---|---|
19 #ifndef MLK_CORE_MUSIC_H | 19 #ifndef MLK_CORE_MUSIC_H |
20 #define MLK_CORE_MUSIC_H | 20 #define MLK_CORE_MUSIC_H |
21 | 21 |
22 #include <stddef.h> | 22 #include <stddef.h> |
23 | 23 |
24 #include "core.h" | |
25 | |
26 enum mlk_music_flags { | 24 enum mlk_music_flags { |
27 MLK_MUSIC_NONE = 0, | 25 MLK_MUSIC_NONE = 0, |
28 MLK_MUSIC_LOOP = (1 << 0) | 26 MLK_MUSIC_LOOP = (1 << 0) |
29 }; | 27 }; |
30 | 28 |
31 struct mlk_music { | 29 struct mlk_music { |
32 void *handle; | 30 void *handle; |
33 }; | 31 }; |
34 | 32 |
35 MLK_CORE_BEGIN_DECLS | 33 #if defined(__cplusplus) |
34 extern "C" { | |
35 #endif | |
36 | 36 |
37 int | 37 int |
38 mlk_music_open(struct mlk_music *, const char *); | 38 mlk_music_open(struct mlk_music *, const char *); |
39 | 39 |
40 int | 40 int |
56 mlk_music_stop(struct mlk_music *); | 56 mlk_music_stop(struct mlk_music *); |
57 | 57 |
58 void | 58 void |
59 mlk_music_finish(struct mlk_music *); | 59 mlk_music_finish(struct mlk_music *); |
60 | 60 |
61 MLK_CORE_END_DECLS | 61 #if defined(__cplusplus) |
62 } | |
63 #endif | |
62 | 64 |
63 #endif /* !MLK_CORE_MUSIC_H */ | 65 #endif /* !MLK_CORE_MUSIC_H */ |