Advertisement
Guest User

Untitled

a guest
Aug 8th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
F# 1.73 KB | None | 0 0
  1.     [<UnmanagedFunctionPointer(CallingConvention.Cdecl)>]
  2.     type Elm_Gen_Item_Text_Get_Cb = delegate of nativeint * nativeint * string -> string
  3.  
  4.     [<UnmanagedFunctionPointer(CallingConvention.Cdecl)>]
  5.     type Elm_Gen_Item_Content_Get_Cb = delegate of nativeint * nativeint * string -> nativeint
  6.  
  7.     [<UnmanagedFunctionPointer(CallingConvention.Cdecl)>]
  8.     type Elm_Gen_Item_State_Get_Cb = delegate of nativeint * nativeint * string -> char
  9.  
  10.     [<UnmanagedFunctionPointer(CallingConvention.Cdecl)>]
  11.     type Elm_Gen_Item_Del_Cb = delegate of nativeint * nativeint -> unit
  12.  
  13.     [<UnmanagedFunctionPointer(CallingConvention.Cdecl)>]
  14.     type Elm_Gen_Item_Filter_Get_Cb = delegate of nativeint * nativeint * nativeint -> char
  15.  
  16.     [<StructLayout(LayoutKind.Sequential,Pack = 16)>]
  17.     type FUNC =
  18.       struct
  19.         [<MarshalAs(UnmanagedType.FunctionPtr)>]
  20.         val mutable text_get: Elm_Gen_Item_Text_Get_Cb
  21.         [<MarshalAs(UnmanagedType.FunctionPtr)>]
  22.         val mutable content_get: Elm_Gen_Item_Content_Get_Cb
  23.         [<MarshalAs(UnmanagedType.FunctionPtr)>]
  24.         val mutable state_get: Elm_Gen_Item_State_Get_Cb
  25.         [<MarshalAs(UnmanagedType.FunctionPtr)>]
  26.         val mutable del: Elm_Gen_Item_Del_Cb
  27.         [<MarshalAs(UnmanagedType.FunctionPtr)>]
  28.         val mutable filter_get: Elm_Gen_Item_Filter_Get_Cb
  29.       end
  30.      
  31.     [<StructLayout(LayoutKind.Sequential)>]
  32.     type Elm_Gen_Item_Class =
  33.       struct
  34.         val mutable version: int
  35.         val mutable refcount: uint32
  36.         val mutable delete_me: char
  37.         val mutable item_style:nativeint
  38.         val mutable decorate_item_style:nativeint
  39.         val mutable decorate_all_item_style:nativeint
  40.         val mutable func:FUNC
  41.       end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement