More implementation.
[wrappi.git] / generator-lib / wrappi_types.mli
index b836685..72840fd 100644 (file)
@@ -41,22 +41,27 @@ type prec
 type parameter = string * ptype * prec option
 (** API parameter (argument name, type, optional precondition). *)
 
-type rtype = RErr | Return of ptype
+type rtype = RVoid | RStaticString | Return of ptype
 (** API return type.  A superset of {!ptype} because we allow the
-    special value [RErr] for dealing with errno. *)
+    some special return-only types. *)
 
 type ftype = rtype * parameter list * parameter list
 (** A function type.  Return type, list of required parameters, list
     of optional parameters. *)
 
-type c_code = string
+type c_code = {
+  cc_loc : Camlp4.PreCast.Loc.t;
+  cc_code : string;
+}
 (** C code. *)
 
 type entry_point = {
   ep_loc : Camlp4.PreCast.Loc.t;
+  ep_local : bool;
   ep_name : string;
   ep_ftype : ftype;
   ep_code : c_code option;
+  ep_includes : string list;
 }
 (** An API entry point. *)