Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] CamlIDL question
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Yurii A. Rashkovskii <yrashk@o...>
Subject: [Caml-list] CamlIDL question
Gentlemen,

Is the below trick is possible in CamlIDL?

I want to wrap C library that uses structs for storing
pointers to functions, like

typedef struct {
        int (*open)(char *filename);
} blablabla;

I want to wrap it automatically to something like

type blablabla = 
{
   open: (string -> int)
}
;;

Is it possible?


-- 
Thanks in advance,
Yurii.
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners