thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Jones <chris.jone...@gmail.com>
Subject User defined callback
Date Sat, 06 Jul 2013 14:22:31 GMT
Are user defined callbacks not allowed in thrift or am I doing something
wrong?


// cb.thrift
service Callback
{
  void notify ();
}

service Registry
{
  void addCallback (1: Callback cb);   // line 10
}


% thrift -v -strict --gen cpp ~/Code/tests/cb.thrift

Scanning /Users/chrisj/Code/tests/cb.thrift for includes
Parsing /Users/chrisj/Code/tests/cb.thrift for types
[ERROR:/Users/chrisj/Code/tests/cb.thrift:10] (last token was 'Callback')
Type "Callback" has not been defined.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message