Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
11d855c
)
fixing behavior declaration for thrift_transport
author
David Reiss
<dreiss@apache.org>
Wed, 11 Jun 2008 00:59:19 +0000
(
00:59
+0000)
committer
David 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
patch
|
blob
|
history
diff --git
a/lib/alterl/src/thrift_transport.erl
b/lib/alterl/src/thrift_transport.erl
index
c47d90f
..
f901f74
100644
(file)
--- 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}}.