 CONSTANT: RDBITKEEP    TDBITKEEP
 
 TYPEDEF: void* RDBQRY*
-! C-STRUCT: RDBQRY
-!     { "TCRDB*" rdb }
-!     { "TCLIST*" args } ;
+! STRUCT: RDBQRY
+!     { rdb TCRDB* }
+!     { args TCLIST* } ;
 
 CONSTANT: RDBQCSTREQ   TDBQCSTREQ
 CONSTANT: RDBQCSTRINC  TDBQCSTRINC

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

! 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 classes.struct ;
IN: tokyo.alien.tcrdb

<< "tokyotyrant" {
