Structure parsers reintroduced. ** NOT WORKING **
[virt-mem.git] / extract / codegen / pahole_parser.mli
index 60e5eb2..9c335a7 100644 (file)
@@ -63,8 +63,10 @@ and f_type =
   | FVoidPointer                       (** A [void*] pointer. *)
   | FAnonListHeadPointer               (** A pointer to an unknown
                                            [list_head]. *)
-  | FListHeadPointer of string         (** A pointer to a [list_head] in a
-                                           named struct. *)
+  | FListHeadPointer of (string * string) option
+      (** A pointer to a [list_head].  If the value is not [None] then
+         this relates to another named struct/field, else it relates
+         to this struct/field. *)
   | FInteger                           (** An integer. *)
   | FString of int                     (** A char array of given width. *)
   (** Type of a kernel field. *)