Current section
Files
Jump to
Current section
Files
src/rockbox_ffi.erl
-module(rockbox_ffi).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
-define(FILEPATH, "src/rockbox_ffi.gleam").
-export([abi_version/0]).
-if(?OTP_RELEASE >= 27).
-define(MODULEDOC(Str), -moduledoc(Str)).
-define(DOC(Str), -doc(Str)).
-else.
-define(MODULEDOC(Str), -compile([])).
-define(DOC(Str), -compile([])).
-endif.
?MODULEDOC(
" Gleam bindings for the Rockbox DSP / metadata / playback engine.\n"
"\n"
" The interesting modules are `rockbox/metadata`, `rockbox/dsp`, and\n"
" `rockbox/player`. This module exposes the ABI version.\n"
).
-file("src/rockbox_ffi.gleam", 8).
?DOC(" ABI major version of the loaded native library.\n").
-spec abi_version() -> integer().
abi_version() ->
rockbox_ffi_nif:abi_version().