 ! 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" {

CONSTANT: RDBITKEEP    TDBITKEEP

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

CONSTANT: RDBQCSTREQ   TDBQCSTREQ
CONSTANT: RDBQCSTRINC  TDBQCSTRINC

LIBRARY: tokyotyrant

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

C-ENUM:
    TTESUCCESS
