aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src/tftp/tftp.erl
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2011-11-15 11:56:08 +0100
committerMicael Karlberg <[email protected]>2011-11-15 11:56:08 +0100
commitff305c1a15e34f1c8d4f923a8f0e532b4e946512 (patch)
treea2278c08fc60ad4d62e512f350db68981bee496a /lib/inets/src/tftp/tftp.erl
parent45305535f3348d8ea9a637b2236fd079e147971c (diff)
parentda49021ad3323f90c95a65962b6dfff5a7b139f6 (diff)
downloadotp-ff305c1a15e34f1c8d4f923a8f0e532b4e946512.tar.gz
otp-ff305c1a15e34f1c8d4f923a8f0e532b4e946512.tar.bz2
otp-ff305c1a15e34f1c8d4f923a8f0e532b4e946512.zip
Merge branch 'bmk/inets/inets58_integration'
Diffstat (limited to 'lib/inets/src/tftp/tftp.erl')
-rw-r--r--lib/inets/src/tftp/tftp.erl16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/inets/src/tftp/tftp.erl b/lib/inets/src/tftp/tftp.erl
index b33c0a98f4..8d8fce388d 100644
--- a/lib/inets/src/tftp/tftp.erl
+++ b/lib/inets/src/tftp/tftp.erl
@@ -224,6 +224,20 @@
service_info/1
]).
+-ifdef('OTP-R14B-COMPILER').
+
+-export([behaviour_info/1]).
+
+behaviour_info(callbacks) ->
+ [{prepare, 6},
+ {open, 6},
+ {read, 1},
+ {write, 2},
+ {abort, 3}];
+behaviour_info(_) ->
+ undefined.
+
+-else.
-type peer() :: {PeerType :: inet | inet6,
PeerHost :: inet:ip_address(),
@@ -266,6 +280,8 @@
-callback abort(Code :: error_code(), string(), State :: term()) -> 'ok'.
+-endif.
+
-include("tftp.hrl").