47 lines
1.2 KiB
Erlang
47 lines
1.2 KiB
Erlang
|
%
|
||
|
% Copyright (c) 2024 Andrea Biscuola <a@abiscuola.com>
|
||
|
%
|
||
|
% Permission to use, copy, modify, and 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(dudeswave).
|
||
|
|
||
|
-behaviour(gen_server).
|
||
|
|
||
|
% Server start function
|
||
|
-export([start_link/0]).
|
||
|
|
||
|
% Module callbacks
|
||
|
-export([init/1, handle_call/3, handle_cast/2, terminate/2]).
|
||
|
|
||
|
%
|
||
|
% Startup functions
|
||
|
%
|
||
|
|
||
|
start_link() ->
|
||
|
gen_server:start_link({local, ?MODULE}, ?MODULE, [], []).
|
||
|
|
||
|
init([]) ->
|
||
|
process_flag(trap_exit, true),
|
||
|
|
||
|
{ok, 0}.
|
||
|
|
||
|
%
|
||
|
% Callbacks
|
||
|
%
|
||
|
|
||
|
handle_call(_Msg, _From, State) -> {noreply, State}.
|
||
|
|
||
|
handle_cast(_Msg, State) -> {noreply, State}.
|
||
|
|
||
|
terminate(_Reason, _N) -> ok.
|