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 c47d90f..f901f74 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}}.