Author: dreiss
Date: Tue Jun 10 17:59:19 2008
New Revision: 666428
URL: http://svn.apache.org/viewvc?rev=666428&view=rev
Log:
fixing behavior declaration for thrift_transport
Modified:
incubator/thrift/trunk/lib/alterl/src/thrift_transport.erl
Modified: incubator/thrift/trunk/lib/alterl/src/thrift_transport.erl
URL:
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/alterl/src/thrift_transport.erl?rev=666428&r1=666427&r2=666428&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/alterl/src/thrift_transport.erl (original)
+++ incubator/thrift/trunk/lib/alterl/src/thrift_transport.erl Tue Jun 10
17:59:19 2008
@@ -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}}.