From 3b9c342fa41d1c0d85cdf033b3bd392f41dbf6be Mon Sep 17 00:00:00 2001 From: David Reiss Date: Wed, 11 Jun 2008 00:59:19 +0000 Subject: [PATCH] fixing behavior declaration for thrift_transport git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666428 13f79535-47bb-0310-9956-ffa450edef68 --- lib/alterl/src/thrift_transport.erl | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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}}. -- 2.17.1