fixing behavior declaration for thrift_transport
authorDavid Reiss <dreiss@apache.org>
Wed, 11 Jun 2008 00:59:19 +0000 (00:59 +0000)
committerDavid Reiss <dreiss@apache.org>
Wed, 11 Jun 2008 00:59:19 +0000 (00:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666428 13f79535-47bb-0310-9956-ffa450edef68

lib/alterl/src/thrift_transport.erl

index c47d90f..f901f74 100644 (file)
@@ -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}}.