 ! See http://factorcode.org/license.txt for BSD license.
 USING: alien alien.c-types alien.libraries alien.syntax
 combinators kernel system tokyo.alien.tchdb tokyo.alien.tcutil
-tokyo.alien.tctdb ;
+tokyo.alien.tctdb classes.struct ;
 IN: tokyo.alien.tcrdb
 
 << "tokyotyrant" {

LIBRARY: tokyotyrant

TYPEDEF: void* TCRDB*
! C-STRUCT: TCRDB
!     { "pthread_mutex_t" mmtx }
!     { "pthread_key_t" eckey }
!     { "char*" host }
!     { "int" port }
!     { "char*" expr }
!     { "int" fd }
!     { "TTSOCK*" sock }
!     { "double" timeout }
!     { "int" opts } ;

C-ENUM:
    TTESUCCESS

CONSTANT: RDBITKEEP    TDBITKEEP

TYPEDEF: void* RDBQRY*
! STRUCT: RDBQRY
!     { rdb TCRDB* }
!     { args TCLIST* } ;

CONSTANT: RDBQCSTREQ   TDBQCSTREQ
CONSTANT: RDBQCSTRINC  TDBQCSTRINC
