diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/esdl2.erl | 8 | ||||
-rw-r--r-- | src/sdl_power.erl | 20 |
2 files changed, 28 insertions, 0 deletions
diff --git a/src/esdl2.erl b/src/esdl2.erl index efe1596..e6f6738 100644 --- a/src/esdl2.erl +++ b/src/esdl2.erl @@ -30,6 +30,9 @@ %% sdl_events -export([poll_event/0]). +%% sdl_power +-export([get_power_info/0]). + %% sdl_renderer -export([create_renderer/3]). -export([render_clear/1]). @@ -99,6 +102,11 @@ set_clipboard_text(_) -> poll_event() -> erlang:nif_error({not_loaded, ?MODULE}). +%% sdl_power + +get_power_info() -> + erlang:nif_error({not_loaded, ?MODULE}). + %% sdl_renderer create_renderer(_, _, _) -> diff --git a/src/sdl_power.erl b/src/sdl_power.erl new file mode 100644 index 0000000..c12729d --- /dev/null +++ b/src/sdl_power.erl @@ -0,0 +1,20 @@ +%% Copyright (c) 2014, Loïc Hoguin <[email protected]> +%% +%% Permission to use, copy, modify, and/or distribute this software for any +%% purpose with or without fee is hereby granted, provided that the above +%% copyright notice and this permission notice appear in all copies. +%% +%% THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +%% WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +%% MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +%% ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +%% WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +%% ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +%% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +-module(sdl_power). + +-export([get_info/0]). + +get_info() -> + esdl2:get_power_info(). |