aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src/inets_app/inets_service.erl
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2011-10-18 18:08:29 +0200
committerMicael Karlberg <[email protected]>2011-10-18 18:08:29 +0200
commit1193fdece4ff5b5bc127e638db5eeb018014c7af (patch)
tree18a3dbdd40a26db1b83373fbd43ba816af42a44d /lib/inets/src/inets_app/inets_service.erl
parent32027e9b4724d61aaffe7d3df168e69238f814e9 (diff)
downloadotp-1193fdece4ff5b5bc127e638db5eeb018014c7af.tar.gz
otp-1193fdece4ff5b5bc127e638db5eeb018014c7af.tar.bz2
otp-1193fdece4ff5b5bc127e638db5eeb018014c7af.zip
Make it possible to compile with an R14B compiler.
Diffstat (limited to 'lib/inets/src/inets_app/inets_service.erl')
-rw-r--r--lib/inets/src/inets_app/inets_service.erl19
1 files changed, 18 insertions, 1 deletions
diff --git a/lib/inets/src/inets_app/inets_service.erl b/lib/inets/src/inets_app/inets_service.erl
index f89dac195c..a057a51e2c 100644
--- a/lib/inets/src/inets_app/inets_service.erl
+++ b/lib/inets/src/inets_app/inets_service.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2007-2010. All Rights Reserved.
+%% Copyright Ericsson AB 2007-2011. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -20,6 +20,21 @@
-module(inets_service).
+-ifdef('OTP-R14B-COMPILER').
+
+-export([behaviour_info/1]).
+
+behaviour_info(callbacks) ->
+ [{start_standalone, 1},
+ {start_service, 1},
+ {stop_service, 1},
+ {services, 0},
+ {service_info, 1}];
+behaviour_info(_) ->
+ undefined.
+
+-else.
+
%% Starts service stand-alone
%% start_standalone(Config) -> % {ok, Pid} | {error, Reason}
%% <service>:start_link(Config).
@@ -67,3 +82,5 @@
-callback service_info(Service :: term()) ->
{ok, [{Property :: term(), Value :: term()}]} | {error, Reason :: term()}.
+
+-endif.