Start generating C code.
[wrappi.git] / generator-lib / wrappi_types.ml
index 7c3dfde..8dfa31b 100644 (file)
@@ -29,13 +29,17 @@ type return_type = RErr | Return of any_type
 type c_code = string
 
 type entry_point = {
-  (*ep_loc : Camlp4.PreCast.Loc.t;*)
+  ep_loc : Camlp4.PreCast.Loc.t;
   ep_name : string;
   ep_params : parameter list;
   ep_return : return_type;
   ep_code : c_code option;
 }
 
+type api = {
+  api_entry_points : entry_point list;
+}
+
 let string_of_any_type = function
   | TInt32 -> "int32"
   | TInt64 -> "int64"