From: David Reiss Date: Wed, 11 Jun 2008 00:59:19 +0000 (+0000) Subject: fixing behavior declaration for thrift_transport X-Git-Tag: 0.2.0~733 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=3b9c342fa41d1c0d85cdf033b3bd392f41dbf6be;p=common%2Fthrift.git fixing behavior declaration for thrift_transport git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666428 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/alterl/src/thrift_transport.erl b/lib/alterl/src/thrift_transport.erl index c47d90f8..f901f74d 100644 --- a/lib/alterl/src/thrift_transport.erl +++ b/lib/alterl/src/thrift_transport.erl @@ -1,23 +1,21 @@ -module(thrift_transport). --export([behaviour_info/1, +-export([behaviour_info/1]). - new/2, +-export([new/2, write/2, read/2, flush/1 ]). behaviour_info(callbacks) -> - [{write/2, - read/2, - flush/1}]; -behaviour_info(_Else) -> undefined. - + [{read, 2}, + {write, 2}, + {flush, 1} + ]. -record(transport, { module, data }). - new(Module, Data) when is_atom(Module) -> {ok, #transport{module = Module, data = Data}}.