594cfc395219f1598e96fda43dda6ff2d0146316
[hcoop/smlsql.git] / libpq / FFI / f-lo_open.sml
1 (* This file has been generated automatically. DO NOT EDIT! *)
2 (* [from code at "/usr/include/postgresql/libpq-fe.h":355.1-55] *)
3 (* [by Matthias Blume's ml-nlffigen (version 0.9.1) for x86-unix] *)
4 (* Send comments and suggestions to blume@tti-c.org. Thanks! *)
5 local
6 open C.Dim C_Int
7 val h = LibpqH.libh "lo_open"
8 in
9 structure F_lo_open : sig
10 val typ :
11 ((ST_pg_conn.tag, rw) su_obj ptr' * uint * sint -> sint) fptr T.typ
12 val fptr :
13 unit ->
14 ((ST_pg_conn.tag, rw) su_obj ptr' * uint * sint -> sint) fptr
15 val f :
16 (ST_pg_conn.tag, rw) su_obj ptr *
17 MLRep.Unsigned.word *
18 MLRep.Signed.int -> MLRep.Signed.int
19 val f' :
20 (ST_pg_conn.tag, rw) su_obj ptr' *
21 MLRep.Unsigned.word *
22 MLRep.Signed.int -> MLRep.Signed.int
23 end = struct
24 val typ = FPtrRTTI_47.typ
25 fun fptr () = mk_fptr (FPtrRTTI_47.mkcall, h ())
26 fun f (x1, x2, x3)
27 = Cvt.ml_sint
28 (call
29 (fptr (), (Light.ptr x1, Cvt.c_uint x2, Cvt.c_sint x3)))
30 fun f' (x1, x2, x3)
31 = Cvt.ml_sint (call (fptr (), (x1, Cvt.c_uint x2, Cvt.c_sint x3)))
32 end
33 end