update tokyo structs

db4
Joe Groff 2009-09-19 21:16:13 -05:00
parent 6c400b44f3
commit 77caffff8e
1 changed files with 14 additions and 14 deletions

View File

@ -2,7 +2,7 @@
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: alien alien.c-types alien.libraries alien.syntax USING: alien alien.c-types alien.libraries alien.syntax
combinators kernel system tokyo.alien.tchdb tokyo.alien.tcutil combinators kernel system tokyo.alien.tchdb tokyo.alien.tcutil
tokyo.alien.tctdb ; tokyo.alien.tctdb classes.struct ;
IN: tokyo.alien.tcrdb IN: tokyo.alien.tcrdb
<< "tokyotyrant" { << "tokyotyrant" {
@ -14,16 +14,16 @@ IN: tokyo.alien.tcrdb
LIBRARY: tokyotyrant LIBRARY: tokyotyrant
TYPEDEF: void* TCRDB* TYPEDEF: void* TCRDB*
! C-STRUCT: TCRDB ! STRUCT: TCRDB
! { "pthread_mutex_t" mmtx } ! { mmtx pthread_mutex_t }
! { "pthread_key_t" eckey } ! { eckey pthread_key_t }
! { "char*" host } ! { host char* }
! { "int" port } ! { port int }
! { "char*" expr } ! { expr char* }
! { "int" fd } ! { fd int }
! { "TTSOCK*" sock } ! { sock TTSOCK* }
! { "double" timeout } ! { timeout double }
! { "int" opts } ; ! { opts int } ;
C-ENUM: C-ENUM:
TTESUCCESS TTESUCCESS
@ -96,9 +96,9 @@ CONSTANT: RDBITVOID TDBITVOID
CONSTANT: RDBITKEEP TDBITKEEP CONSTANT: RDBITKEEP TDBITKEEP
TYPEDEF: void* RDBQRY* TYPEDEF: void* RDBQRY*
! C-STRUCT: RDBQRY ! STRUCT: RDBQRY
! { "TCRDB*" rdb } ! { rdb TCRDB* }
! { "TCLIST*" args } ; ! { args TCLIST* } ;
CONSTANT: RDBQCSTREQ TDBQCSTREQ CONSTANT: RDBQCSTREQ TDBQCSTREQ
CONSTANT: RDBQCSTRINC TDBQCSTRINC CONSTANT: RDBQCSTRINC TDBQCSTRINC