packages feed

hs-bindgen-1.0.0.0: test-artefacts/fixtures/documentation/doxygen_docs/th.txt

-- addDependentFile musl-include/x86_64/bits/alltypes.h
-- addDependentFile musl-include/x86_64/bits/stdint.h
-- addDependentFile musl-include/x86_64/stdint.h
-- addDependentFile musl-include/x86_64/stdbool.h
-- addDependentFile musl-include/x86_64/stddef.h
-- addDependentFile test-artefacts/headers/golden/documentation/doxygen_docs.h
-- #include <documentation/doxygen_docs.h>
-- signed int hs_bindgen_7eada9f65d982412 (
--   uint8_t const *arg1,
--   uint8_t *arg2,
--   size_t *arg3
-- )
-- {
--   return (process_data)(arg1, arg2, arg3);
-- }
-- _Bool hs_bindgen_fb85499c501da1a7 (
--   char const *arg1
-- )
-- {
--   return (process_file)(arg1);
-- }
-- signed int hs_bindgen_a73fc7b108035c5c (
--   signed int arg1,
--   signed int arg2
-- )
-- {
--   return (calculate_value)(arg1, arg2);
-- }
-- _Bool hs_bindgen_9b7f6745401b4652 (
--   signed int arg1
-- )
-- {
--   return (html_example)(arg1);
-- }
-- _Bool hs_bindgen_825411dc114e599b (
--   char const **arg1,
--   size_t arg2
-- )
-- {
--   return (list_example)(arg1, arg2);
-- }
-- void *hs_bindgen_17264dcff7e9b698 (
--   void *arg1
-- )
-- {
--   return (dangerous_function)(arg1);
-- }
-- signed int hs_bindgen_c8ca619ec2e70d8d (
--   char const *arg1
-- )
-- {
--   return (detailed_return_codes)(arg1);
-- }
-- signed int hs_bindgen_25e1070e2ce10048 (
--   signed int arg1
-- )
-- {
--   return (old_function)(arg1);
-- }
-- signed int hs_bindgen_a9eeeb09808e71cc (
--   signed int arg1
-- )
-- {
--   return (versioned_function)(arg1);
-- }
-- signed int hs_bindgen_0c0057f1700372a7 (
--   char *arg1,
--   size_t arg2
-- )
-- {
--   return (process_buffer)(arg1, arg2);
-- }
-- void *hs_bindgen_294db77671f95524 (
--   void *arg1,
--   void const *arg2,
--   size_t arg3
-- )
-- {
--   return (my_memcpy)(arg1, arg2, arg3);
-- }
-- signed int hs_bindgen_f5bc63a9952c2618 (
--   signed int arg1
-- )
-- {
--   return (double_value)(arg1);
-- }
-- signed int hs_bindgen_3545f99d29c4fc53 (
--   signed int arg1,
--   void *arg2,
--   size_t arg3
-- )
-- {
--   return (read_chunk)(arg1, arg2, arg3);
-- }
-- signed int hs_bindgen_839c1d19dfe95042 (
--   signed int arg1,
--   void const *arg2,
--   size_t arg3
-- )
-- {
--   return (write_chunk)(arg1, arg2, arg3);
-- }
-- status_code_t hs_bindgen_c4e7e99dba20204d (
--   config_t *arg1,
--   uint8_t const *arg2,
--   size_t arg3
-- )
-- {
--   return (complex_function)(arg1, arg2, arg3);
-- }
-- signed int hs_bindgen_935f2aead358d9ef (
--   char *arg1
-- )
-- {
--   return (hash)(arg1);
-- }
-- signed int hs_bindgen_39fef54c23d4e1ee (
--   signed int arg1
-- )
-- {
--   return (square)(arg1);
-- }
-- signed int hs_bindgen_29749932a4449f10 (
--   signed int arg1
-- )
-- {
--   return (auto_brief_func)(arg1);
-- }
-- void hs_bindgen_03f0269c9296b8c0 (
--   char *arg1,
--   size_t arg2
-- )
-- {
--   (multi_paragraph_details)(arg1, arg2);
-- }
-- signed int *hs_bindgen_0446a821eb966f46 (
--   signed int arg1
-- )
-- {
--   return (todo_remark_attention)(arg1);
-- }
-- signed int hs_bindgen_25a9ea376bb793e9 (
--   signed int arg1
-- )
-- {
--   return (html_entities_func)(arg1);
-- }
-- void hs_bindgen_6f311771e5e063e6 (
--   signed int arg1
-- )
-- {
--   (nested_inline_format)(arg1);
-- }
-- signed int hs_bindgen_34473a588f1157e4 (
--   signed int arg1
-- )
-- {
--   return (tagged_code_example)(arg1);
-- }
-- signed int hs_bindgen_471f4a3c2db31252 (
--   char const *arg1,
--   char *arg2
-- )
-- {
--   return (backslash_syntax)(arg1, arg2);
-- }
-- signed int hs_bindgen_e6085a910ba41ecb (
--   uint8_t const *arg1,
--   uint8_t *arg2,
--   size_t *arg3
-- )
-- {
--   return (process_data)(arg1, arg2, arg3);
-- }
-- _Bool hs_bindgen_c27e893aea0b0a77 (
--   char const *arg1
-- )
-- {
--   return (process_file)(arg1);
-- }
-- signed int hs_bindgen_bc1b0e25a72f4ec0 (
--   signed int arg1,
--   signed int arg2
-- )
-- {
--   return (calculate_value)(arg1, arg2);
-- }
-- _Bool hs_bindgen_09abc3cb74562964 (
--   signed int arg1
-- )
-- {
--   return (html_example)(arg1);
-- }
-- _Bool hs_bindgen_47cba1a95d265f84 (
--   char const **arg1,
--   size_t arg2
-- )
-- {
--   return (list_example)(arg1, arg2);
-- }
-- void *hs_bindgen_e065fc013e4eccd6 (
--   void *arg1
-- )
-- {
--   return (dangerous_function)(arg1);
-- }
-- signed int hs_bindgen_bc4f7e24b2ad4ace (
--   char const *arg1
-- )
-- {
--   return (detailed_return_codes)(arg1);
-- }
-- signed int hs_bindgen_8deec146389ae8b3 (
--   signed int arg1
-- )
-- {
--   return (old_function)(arg1);
-- }
-- signed int hs_bindgen_da2dcc1473935665 (
--   signed int arg1
-- )
-- {
--   return (versioned_function)(arg1);
-- }
-- signed int hs_bindgen_97c1191917e6eece (
--   char *arg1,
--   size_t arg2
-- )
-- {
--   return (process_buffer)(arg1, arg2);
-- }
-- void *hs_bindgen_58253bb560dc3eb3 (
--   void *arg1,
--   void const *arg2,
--   size_t arg3
-- )
-- {
--   return (my_memcpy)(arg1, arg2, arg3);
-- }
-- signed int hs_bindgen_44dd19b16ee38e5b (
--   signed int arg1
-- )
-- {
--   return (double_value)(arg1);
-- }
-- signed int hs_bindgen_a7d2e6fe1e9b3164 (
--   signed int arg1,
--   void *arg2,
--   size_t arg3
-- )
-- {
--   return (read_chunk)(arg1, arg2, arg3);
-- }
-- signed int hs_bindgen_59f0c5ef262c5f3b (
--   signed int arg1,
--   void const *arg2,
--   size_t arg3
-- )
-- {
--   return (write_chunk)(arg1, arg2, arg3);
-- }
-- status_code_t hs_bindgen_fd6fce7c8d8b2f79 (
--   config_t *arg1,
--   uint8_t const *arg2,
--   size_t arg3
-- )
-- {
--   return (complex_function)(arg1, arg2, arg3);
-- }
-- signed int hs_bindgen_dd36c8b317ccfcc4 (
--   char *arg1
-- )
-- {
--   return (hash)(arg1);
-- }
-- signed int hs_bindgen_6875e30a7fe8d30a (
--   signed int arg1
-- )
-- {
--   return (square)(arg1);
-- }
-- signed int hs_bindgen_3094fd32a3eedd49 (
--   signed int arg1
-- )
-- {
--   return (auto_brief_func)(arg1);
-- }
-- void hs_bindgen_73270d34a2bf31b5 (
--   char *arg1,
--   size_t arg2
-- )
-- {
--   (multi_paragraph_details)(arg1, arg2);
-- }
-- signed int *hs_bindgen_836de64a94d7bf03 (
--   signed int arg1
-- )
-- {
--   return (todo_remark_attention)(arg1);
-- }
-- signed int hs_bindgen_aa0467b9d3b1a48d (
--   signed int arg1
-- )
-- {
--   return (html_entities_func)(arg1);
-- }
-- void hs_bindgen_b654d8047edfed77 (
--   signed int arg1
-- )
-- {
--   (nested_inline_format)(arg1);
-- }
-- signed int hs_bindgen_aeb274aded3470e5 (
--   signed int arg1
-- )
-- {
--   return (tagged_code_example)(arg1);
-- }
-- signed int hs_bindgen_907720dffab9442a (
--   char const *arg1,
--   char *arg2
-- )
-- {
--   return (backslash_syntax)(arg1, arg2);
-- }
-- /* test_documentationdoxygen_docs_Example_get_process_data */
-- __attribute__ ((const))
-- signed int (*hs_bindgen_4a5cd66a4f26f8d5 (void)) (
--   uint8_t const *arg1,
--   uint8_t *arg2,
--   size_t *arg3
-- )
-- {
--   return &process_data;
-- }
-- /* test_documentationdoxygen_docs_Example_get_process_file */
-- __attribute__ ((const))
-- _Bool (*hs_bindgen_c8a059c65f18fea9 (void)) (
--   char const *arg1
-- )
-- {
--   return &process_file;
-- }
-- /* test_documentationdoxygen_docs_Example_get_calculate_value */
-- __attribute__ ((const))
-- signed int (*hs_bindgen_5ab7e06724867ab3 (void)) (
--   signed int arg1,
--   signed int arg2
-- )
-- {
--   return &calculate_value;
-- }
-- /* test_documentationdoxygen_docs_Example_get_html_example */
-- __attribute__ ((const))
-- _Bool (*hs_bindgen_3f74fb834b0cd46b (void)) (
--   signed int arg1
-- )
-- {
--   return &html_example;
-- }
-- /* test_documentationdoxygen_docs_Example_get_list_example */
-- __attribute__ ((const))
-- _Bool (*hs_bindgen_2175b3c627db39cf (void)) (
--   char const **arg1,
--   size_t arg2
-- )
-- {
--   return &list_example;
-- }
-- /* test_documentationdoxygen_docs_Example_get_dangerous_function */
-- __attribute__ ((const))
-- void *(*hs_bindgen_b7a4debd18827a19 (void)) (
--   void *arg1
-- )
-- {
--   return &dangerous_function;
-- }
-- /* test_documentationdoxygen_docs_Example_get_detailed_return_codes */
-- __attribute__ ((const))
-- signed int (*hs_bindgen_9700b22f82eedafe (void)) (
--   char const *arg1
-- )
-- {
--   return &detailed_return_codes;
-- }
-- /* test_documentationdoxygen_docs_Example_get_old_function */
-- __attribute__ ((const))
-- signed int (*hs_bindgen_49e0d34a627c6c19 (void)) (
--   signed int arg1
-- )
-- {
--   return &old_function;
-- }
-- /* test_documentationdoxygen_docs_Example_get_versioned_function */
-- __attribute__ ((const))
-- signed int (*hs_bindgen_180cd7537e40ce99 (void)) (
--   signed int arg1
-- )
-- {
--   return &versioned_function;
-- }
-- /* test_documentationdoxygen_docs_Example_get_process_buffer */
-- __attribute__ ((const))
-- signed int (*hs_bindgen_f4ccc6d90e8d3ebd (void)) (
--   char *arg1,
--   size_t arg2
-- )
-- {
--   return &process_buffer;
-- }
-- /* test_documentationdoxygen_docs_Example_get_my_memcpy */
-- __attribute__ ((const))
-- void *(*hs_bindgen_6a74d376c901b531 (void)) (
--   void *arg1,
--   void const *arg2,
--   size_t arg3
-- )
-- {
--   return &my_memcpy;
-- }
-- /* test_documentationdoxygen_docs_Example_get_double_value */
-- __attribute__ ((const))
-- signed int (*hs_bindgen_156a92f3c5176105 (void)) (
--   signed int arg1
-- )
-- {
--   return &double_value;
-- }
-- /* test_documentationdoxygen_docs_Example_get_read_chunk */
-- __attribute__ ((const))
-- signed int (*hs_bindgen_373de63fa8345f66 (void)) (
--   signed int arg1,
--   void *arg2,
--   size_t arg3
-- )
-- {
--   return &read_chunk;
-- }
-- /* test_documentationdoxygen_docs_Example_get_write_chunk */
-- __attribute__ ((const))
-- signed int (*hs_bindgen_78a029fc9807a27f (void)) (
--   signed int arg1,
--   void const *arg2,
--   size_t arg3
-- )
-- {
--   return &write_chunk;
-- }
-- /* test_documentationdoxygen_docs_Example_get_complex_function */
-- __attribute__ ((const))
-- status_code_t (*hs_bindgen_dfa39b6be50cb2ca (void)) (
--   config_t *arg1,
--   uint8_t const *arg2,
--   size_t arg3
-- )
-- {
--   return &complex_function;
-- }
-- /* test_documentationdoxygen_docs_Example_get_hash */
-- __attribute__ ((const))
-- signed int (*hs_bindgen_8ad88b79fd71f9d4 (void)) (
--   char *arg1
-- )
-- {
--   return &hash;
-- }
-- /* test_documentationdoxygen_docs_Example_get_square */
-- __attribute__ ((const))
-- signed int (*hs_bindgen_7ede0f7ec1b30650 (void)) (
--   signed int arg1
-- )
-- {
--   return &square;
-- }
-- /* test_documentationdoxygen_docs_Example_get_auto_brief_func */
-- __attribute__ ((const))
-- signed int (*hs_bindgen_11a28326d5a28a43 (void)) (
--   signed int arg1
-- )
-- {
--   return &auto_brief_func;
-- }
-- /* test_documentationdoxygen_docs_Example_get_multi_paragraph_details */
-- __attribute__ ((const))
-- void (*hs_bindgen_05c7a7832fb84e2e (void)) (
--   char *arg1,
--   size_t arg2
-- )
-- {
--   return &multi_paragraph_details;
-- }
-- /* test_documentationdoxygen_docs_Example_get_todo_remark_attention */
-- __attribute__ ((const))
-- signed int *(*hs_bindgen_092b9697f2154ac5 (void)) (
--   signed int arg1
-- )
-- {
--   return &todo_remark_attention;
-- }
-- /* test_documentationdoxygen_docs_Example_get_html_entities_func */
-- __attribute__ ((const))
-- signed int (*hs_bindgen_2e8b5e895e58fc3d (void)) (
--   signed int arg1
-- )
-- {
--   return &html_entities_func;
-- }
-- /* test_documentationdoxygen_docs_Example_get_nested_inline_format */
-- __attribute__ ((const))
-- void (*hs_bindgen_db292926f05c7b36 (void)) (
--   signed int arg1
-- )
-- {
--   return &nested_inline_format;
-- }
-- /* test_documentationdoxygen_docs_Example_get_tagged_code_example */
-- __attribute__ ((const))
-- signed int (*hs_bindgen_492a4fd860afb02a (void)) (
--   signed int arg1
-- )
-- {
--   return &tagged_code_example;
-- }
-- /* test_documentationdoxygen_docs_Example_get_backslash_syntax */
-- __attribute__ ((const))
-- signed int (*hs_bindgen_9ef09ad63fac68e2 (void)) (
--   char const *arg1,
--   char *arg2
-- )
-- {
--   return &backslash_syntax;
-- }
-- /* test_documentationdoxygen_docs_Example_get_global_counter */
-- __attribute__ ((const))
-- signed int *hs_bindgen_f9dede86496f59c9 (void)
-- {
--   return &global_counter;
-- }
-- /* test_documentationdoxygen_docs_Example_get_version_string */
-- __attribute__ ((const))
-- char const **hs_bindgen_a294be08386c9257 (void)
-- {
--   return &version_string;
-- }
{-| Maximum length for name strings.

    __C declaration:__ @macro MAX_NAME_LENGTH@

    __defined at:__ @documentation\/doxygen_docs.h 39:9@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
mAX_NAME_LENGTH :: CInt
{-| Maximum length for name strings.

    __C declaration:__ @macro MAX_NAME_LENGTH@

    __defined at:__ @documentation\/doxygen_docs.h 39:9@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
mAX_NAME_LENGTH = 64 :: CInt
{-| Size type for this library.

    This is the comment __title__

    __C declaration:__ @size_type@

    __defined at:__ @documentation\/doxygen_docs.h 56:16@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
newtype Size_type
    = Size_type {unwrapSize_type :: HsBindgen.Runtime.LibC.CSize}
    deriving stock (Eq, Generic, Ord, Read, Show)
    deriving newtype (Bitfield,
                      Bits,
                      Bounded,
                      Enum,
                      FiniteBits,
                      HasFFIType,
                      Integral,
                      Ix,
                      Num,
                      Prim,
                      ReadRaw,
                      Real,
                      StaticSize,
                      Storable,
                      WriteRaw)
instance (~) ty HsBindgen.Runtime.LibC.CSize =>
         HasField "unwrapSize_type" Size_type ty
    where hasField = \x_0 -> (\y_1 -> Size_type{unwrapSize_type = y_1},
                              getField @"unwrapSize_type" x_0)
instance (~) ty HsBindgen.Runtime.LibC.CSize =>
         HasField "unwrapSize_type" (Ptr Size_type) (Ptr ty)
    where getField = fromPtr (Proxy @"unwrapSize_type")
instance HasCField Size_type "unwrapSize_type"
    where type CFieldType Size_type
                          "unwrapSize_type" = HsBindgen.Runtime.LibC.CSize
          offset# = \_ -> \_ -> 0
{-| __C declaration:__ @struct opaque_struct@

    __defined at:__ @documentation\/doxygen_docs.h 76:8@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
data Opaque_struct
{-| __C declaration:__ @union opaque_union@

    __defined at:__ @documentation\/doxygen_docs.h 81:7@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
data Opaque_union
{-| Color enumeration without typedef.

    __C declaration:__ @enum color_enum@

    __defined at:__ @documentation\/doxygen_docs.h 87:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
newtype Color_enum
    = Color_enum {unwrapColor_enum :: CUInt}
    deriving stock (Eq, Generic, Ord)
    deriving newtype HasFFIType
instance StaticSize Color_enum
    where staticSizeOf = \_ -> 4 :: Int
          staticAlignment = \_ -> 4 :: Int
instance ReadRaw Color_enum
    where readRaw = \ptr_0 -> pure Color_enum <*> readRawByteOff ptr_0 (0 :: Int)
instance WriteRaw Color_enum
    where writeRaw = \ptr_0 -> \s_1 -> case s_1 of
                                       Color_enum unwrapColor_enum_2 -> writeRawByteOff ptr_0 (0 :: Int) unwrapColor_enum_2
deriving via (EquivStorable Color_enum) instance Storable Color_enum
deriving via CUInt instance Prim Color_enum
instance CEnum Color_enum
    where type CEnumZ Color_enum = CUInt
          toCEnum = Color_enum
          fromCEnum = getField @"unwrapColor_enum"
          declaredValues = \_ -> declaredValuesFromList [(0,
                                                          singleton "COLOR_RED"),
                                                         (1, singleton "COLOR_GREEN"),
                                                         (2, singleton "COLOR_BLUE")]
          showsUndeclared = showsWrappedUndeclared "Color_enum"
          readPrecUndeclared = readPrecWrappedUndeclared "Color_enum"
          isDeclared = seqIsDeclared
          mkDeclared = seqMkDeclared
instance SequentialCEnum Color_enum
    where minDeclaredValue = COLOR_RED
          maxDeclaredValue = COLOR_BLUE
instance Show Color_enum
    where showsPrec = shows
instance Read Color_enum
    where readPrec = readPrec
          readList = readListDefault
          readListPrec = readListPrecDefault
instance (~) ty CUInt => HasField "unwrapColor_enum" Color_enum ty
    where hasField = \x_0 -> (\y_1 -> Color_enum{unwrapColor_enum = y_1},
                              getField @"unwrapColor_enum" x_0)
instance (~) ty CUInt =>
         HasField "unwrapColor_enum" (Ptr Color_enum) (Ptr ty)
    where getField = fromPtr (Proxy @"unwrapColor_enum")
instance HasCField Color_enum "unwrapColor_enum"
    where type CFieldType Color_enum "unwrapColor_enum" = CUInt
          offset# = \_ -> \_ -> 0
{-| Red color

    __C declaration:__ @COLOR_RED@

    __defined at:__ @documentation\/doxygen_docs.h 88:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
pattern COLOR_RED :: Color_enum
pattern COLOR_RED = Color_enum 0
{-| Green color

    __C declaration:__ @COLOR_GREEN@

    __defined at:__ @documentation\/doxygen_docs.h 89:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
pattern COLOR_GREEN :: Color_enum
pattern COLOR_GREEN = Color_enum 1
{-| Blue color

    __C declaration:__ @COLOR_BLUE@

    __defined at:__ @documentation\/doxygen_docs.h 90:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
pattern COLOR_BLUE :: Color_enum
pattern COLOR_BLUE = Color_enum 2
{-| Auxiliary type used by 'Event_callback_t'

    __C declaration:__ @event_callback_t@

    __defined at:__ @documentation\/doxygen_docs.h 231:15@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
newtype Event_callback_t_Aux
    = Event_callback_t_Aux {unwrapEvent_callback_t_Aux :: (CInt ->
                                                           Ptr Void -> IO CInt)}
    deriving stock Generic
-- __unique:__ @toEvent_callback_t_Aux@
foreign import ccall safe "wrapper" hs_bindgen_111918b0aee2a7fb_base ::
    CInt -> Ptr Void -> IO CInt
 -> IO (FunPtr (CInt -> Ptr Void -> IO CInt))
-- __unique:__ @toEvent_callback_t_Aux@
hs_bindgen_111918b0aee2a7fb :: Event_callback_t_Aux ->
                               IO (FunPtr Event_callback_t_Aux)
-- __unique:__ @toEvent_callback_t_Aux@
hs_bindgen_111918b0aee2a7fb = \fun_0 -> fmap castFunPtr (hs_bindgen_111918b0aee2a7fb_base (\x_1 -> \x_2 -> fmap toFFIType (getField @"unwrapEvent_callback_t_Aux" fun_0 (fromFFIType x_1) (fromFFIType x_2))))
-- __unique:__ @fromEvent_callback_t_Aux@
foreign import ccall safe "dynamic" hs_bindgen_9e9d478c2d75628c_base ::
    FunPtr (CInt -> Ptr Void -> IO CInt)
 -> CInt
 -> Ptr Void
 -> IO CInt
-- __unique:__ @fromEvent_callback_t_Aux@
hs_bindgen_9e9d478c2d75628c :: FunPtr Event_callback_t_Aux ->
                               Event_callback_t_Aux
-- __unique:__ @fromEvent_callback_t_Aux@
hs_bindgen_9e9d478c2d75628c = \funPtr_0 -> Event_callback_t_Aux (\x_1 -> \x_2 -> fmap fromFFIType (hs_bindgen_9e9d478c2d75628c_base (castFunPtr funPtr_0) (toFFIType x_1) (toFFIType x_2)))
instance ToFunPtr Event_callback_t_Aux
    where toFunPtr = hs_bindgen_111918b0aee2a7fb
instance FromFunPtr Event_callback_t_Aux
    where fromFunPtr = hs_bindgen_9e9d478c2d75628c
instance (~) ty (CInt -> Ptr Void -> IO CInt) =>
         HasField "unwrapEvent_callback_t_Aux" Event_callback_t_Aux ty
    where hasField = \x_0 -> (\y_1 -> Event_callback_t_Aux{unwrapEvent_callback_t_Aux = y_1},
                              getField @"unwrapEvent_callback_t_Aux" x_0)
instance (~) ty (CInt -> Ptr Void -> IO CInt) =>
         HasField "unwrapEvent_callback_t_Aux"
                  (Ptr Event_callback_t_Aux)
                  (Ptr ty)
    where getField = fromPtr (Proxy @"unwrapEvent_callback_t_Aux")
instance HasCField Event_callback_t_Aux
                   "unwrapEvent_callback_t_Aux"
    where type CFieldType Event_callback_t_Aux
                          "unwrapEvent_callback_t_Aux" = CInt -> Ptr Void -> IO CInt
          offset# = \_ -> \_ -> 0
{-| Callback function type.

    [__@event_type@__]: Type of event

    [__@user_data@__]: User-provided data

    __Returns:__ Handling result

    __C declaration:__ @event_callback_t@

    __defined at:__ @documentation\/doxygen_docs.h 231:15@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
newtype Event_callback_t
    = Event_callback_t {unwrapEvent_callback_t :: (FunPtr Event_callback_t_Aux)}
    deriving stock (Eq, Generic, Ord, Show)
    deriving newtype (HasFFIType,
                      ReadRaw,
                      StaticSize,
                      Storable,
                      WriteRaw)
instance (~) ty (FunPtr Event_callback_t_Aux) =>
         HasField "unwrapEvent_callback_t" Event_callback_t ty
    where hasField = \x_0 -> (\y_1 -> Event_callback_t{unwrapEvent_callback_t = y_1},
                              getField @"unwrapEvent_callback_t" x_0)
instance (~) ty (FunPtr Event_callback_t_Aux) =>
         HasField "unwrapEvent_callback_t" (Ptr Event_callback_t) (Ptr ty)
    where getField = fromPtr (Proxy @"unwrapEvent_callback_t")
instance HasCField Event_callback_t "unwrapEvent_callback_t"
    where type CFieldType Event_callback_t
                          "unwrapEvent_callback_t" = FunPtr Event_callback_t_Aux
          offset# = \_ -> \_ -> 0
{-| Structure with documented fields.

    This structure demonstrates field documentation.

    __C declaration:__ @struct config_t@

    __defined at:__ @documentation\/doxygen_docs.h 238:9@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
data Config_t
    = Config_t {config_t_id :: HsBindgen.Runtime.LibC.Word32
                {- ^ Unique identifier.

                     __C declaration:__ @id@

                     __defined at:__ @documentation\/doxygen_docs.h 240:14@

                     __exported by:__ @documentation\/doxygen_docs.h@
                -},
                config_t_name :: (ConstantArray 64 CChar)
                {- ^ Human-readable name.

                     __C declaration:__ @name@

                     __defined at:__ @documentation\/doxygen_docs.h 243:10@

                     __exported by:__ @documentation\/doxygen_docs.h@
                -},
                config_t_flags :: HsBindgen.Runtime.LibC.Word32
                {- ^ Configuration flags.

                     __C declaration:__ @flags@

                     __defined at:__ @documentation\/doxygen_docs.h 246:14@

                     __exported by:__ @documentation\/doxygen_docs.h@
                -},
                config_t_callback :: Event_callback_t
                {- ^ Optional callback function.

                     See also: 'Event_callback_t'

                     __C declaration:__ @callback@

                     __defined at:__ @documentation\/doxygen_docs.h 253:22@

                     __exported by:__ @documentation\/doxygen_docs.h@
                -},
                config_t_user_data :: (Ptr Void)
                {- ^ User data for callback.

                     __C declaration:__ @user_data@

                     __defined at:__ @documentation\/doxygen_docs.h 256:11@

                     __exported by:__ @documentation\/doxygen_docs.h@
                -}}
    deriving stock (Eq, Generic, Show)
instance StaticSize Config_t
    where staticSizeOf = \_ -> 88 :: Int
          staticAlignment = \_ -> 8 :: Int
instance ReadRaw Config_t
    where readRaw = \ptr_0 -> ((((pure Config_t <*> readRaw (Proxy @"config_t_id") ptr_0) <*> readRaw (Proxy @"config_t_name") ptr_0) <*> readRaw (Proxy @"config_t_flags") ptr_0) <*> readRaw (Proxy @"config_t_callback") ptr_0) <*> readRaw (Proxy @"config_t_user_data") ptr_0
instance WriteRaw Config_t
    where writeRaw = \ptr_0 -> \s_1 -> case s_1 of
                                       Config_t config_t_id_2
                                                config_t_name_3
                                                config_t_flags_4
                                                config_t_callback_5
                                                config_t_user_data_6 -> writeRaw (Proxy @"config_t_id") ptr_0 config_t_id_2 >> (writeRaw (Proxy @"config_t_name") ptr_0 config_t_name_3 >> (writeRaw (Proxy @"config_t_flags") ptr_0 config_t_flags_4 >> (writeRaw (Proxy @"config_t_callback") ptr_0 config_t_callback_5 >> writeRaw (Proxy @"config_t_user_data") ptr_0 config_t_user_data_6)))
deriving via (EquivStorable Config_t) instance Storable Config_t
deriving via (IsStructViaReadRaw Config_t) instance IsStruct Config_t
instance (~) ty HsBindgen.Runtime.LibC.Word32 =>
         HasField "config_t_id" Config_t ty
    where hasField = \x_0 -> (\y_1 -> Config_t{config_t_id = y_1,
                                               config_t_name = getField @"config_t_name" x_0,
                                               config_t_flags = getField @"config_t_flags" x_0,
                                               config_t_callback = getField @"config_t_callback" x_0,
                                               config_t_user_data = getField @"config_t_user_data" x_0},
                              getField @"config_t_id" x_0)
instance (~) ty HsBindgen.Runtime.LibC.Word32 =>
         HasField "config_t_id" (Ptr Config_t) (Ptr ty)
    where getField = fromPtr (Proxy @"config_t_id")
instance HasCField Config_t "config_t_id"
    where type CFieldType Config_t
                          "config_t_id" = HsBindgen.Runtime.LibC.Word32
          offset# = \_ -> \_ -> 0
instance (~) ty (ConstantArray 64 CChar) =>
         HasField "config_t_name" Config_t ty
    where hasField = \x_0 -> (\y_1 -> Config_t{config_t_name = y_1,
                                               config_t_id = getField @"config_t_id" x_0,
                                               config_t_flags = getField @"config_t_flags" x_0,
                                               config_t_callback = getField @"config_t_callback" x_0,
                                               config_t_user_data = getField @"config_t_user_data" x_0},
                              getField @"config_t_name" x_0)
instance (~) ty (ConstantArray 64 CChar) =>
         HasField "config_t_name" (Ptr Config_t) (Ptr ty)
    where getField = fromPtr (Proxy @"config_t_name")
instance HasCField Config_t "config_t_name"
    where type CFieldType Config_t "config_t_name" = ConstantArray 64
                                                                   CChar
          offset# = \_ -> \_ -> 4
instance (~) ty HsBindgen.Runtime.LibC.Word32 =>
         HasField "config_t_flags" Config_t ty
    where hasField = \x_0 -> (\y_1 -> Config_t{config_t_flags = y_1,
                                               config_t_id = getField @"config_t_id" x_0,
                                               config_t_name = getField @"config_t_name" x_0,
                                               config_t_callback = getField @"config_t_callback" x_0,
                                               config_t_user_data = getField @"config_t_user_data" x_0},
                              getField @"config_t_flags" x_0)
instance (~) ty HsBindgen.Runtime.LibC.Word32 =>
         HasField "config_t_flags" (Ptr Config_t) (Ptr ty)
    where getField = fromPtr (Proxy @"config_t_flags")
instance HasCField Config_t "config_t_flags"
    where type CFieldType Config_t
                          "config_t_flags" = HsBindgen.Runtime.LibC.Word32
          offset# = \_ -> \_ -> 68
instance (~) ty Event_callback_t =>
         HasField "config_t_callback" Config_t ty
    where hasField = \x_0 -> (\y_1 -> Config_t{config_t_callback = y_1,
                                               config_t_id = getField @"config_t_id" x_0,
                                               config_t_name = getField @"config_t_name" x_0,
                                               config_t_flags = getField @"config_t_flags" x_0,
                                               config_t_user_data = getField @"config_t_user_data" x_0},
                              getField @"config_t_callback" x_0)
instance (~) ty Event_callback_t =>
         HasField "config_t_callback" (Ptr Config_t) (Ptr ty)
    where getField = fromPtr (Proxy @"config_t_callback")
instance HasCField Config_t "config_t_callback"
    where type CFieldType Config_t
                          "config_t_callback" = Event_callback_t
          offset# = \_ -> \_ -> 72
instance (~) ty (Ptr Void) =>
         HasField "config_t_user_data" Config_t ty
    where hasField = \x_0 -> (\y_1 -> Config_t{config_t_user_data = y_1,
                                               config_t_id = getField @"config_t_id" x_0,
                                               config_t_name = getField @"config_t_name" x_0,
                                               config_t_flags = getField @"config_t_flags" x_0,
                                               config_t_callback = getField @"config_t_callback" x_0},
                              getField @"config_t_user_data" x_0)
instance (~) ty (Ptr Void) =>
         HasField "config_t_user_data" (Ptr Config_t) (Ptr ty)
    where getField = fromPtr (Proxy @"config_t_user_data")
instance HasCField Config_t "config_t_user_data"
    where type CFieldType Config_t "config_t_user_data" = Ptr Void
          offset# = \_ -> \_ -> 80
{-| Enumeration with documented values.

    This enum shows different status codes.

    __C declaration:__ @enum status_code_t@

    __defined at:__ @documentation\/doxygen_docs.h 264:9@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
newtype Status_code_t
    = Status_code_t {unwrapStatus_code_t :: CInt}
    deriving stock (Eq, Generic, Ord)
    deriving newtype HasFFIType
instance StaticSize Status_code_t
    where staticSizeOf = \_ -> 4 :: Int
          staticAlignment = \_ -> 4 :: Int
instance ReadRaw Status_code_t
    where readRaw = \ptr_0 -> pure Status_code_t <*> readRawByteOff ptr_0 (0 :: Int)
instance WriteRaw Status_code_t
    where writeRaw = \ptr_0 -> \s_1 -> case s_1 of
                                       Status_code_t unwrapStatus_code_t_2 -> writeRawByteOff ptr_0 (0 :: Int) unwrapStatus_code_t_2
deriving via (EquivStorable Status_code_t) instance Storable Status_code_t
deriving via CInt instance Prim Status_code_t
instance CEnum Status_code_t
    where type CEnumZ Status_code_t = CInt
          toCEnum = Status_code_t
          fromCEnum = getField @"unwrapStatus_code_t"
          declaredValues = \_ -> declaredValuesFromList [(-99,
                                                          singleton "STATUS_ERROR"),
                                                         (-3, singleton "STATUS_TIMEOUT"),
                                                         (-2, singleton "STATUS_NO_MEMORY"),
                                                         (-1, singleton "STATUS_INVALID_PARAM"),
                                                         (0, singleton "STATUS_OK")]
          showsUndeclared = showsWrappedUndeclared "Status_code_t"
          readPrecUndeclared = readPrecWrappedUndeclared "Status_code_t"
instance Show Status_code_t
    where showsPrec = shows
instance Read Status_code_t
    where readPrec = readPrec
          readList = readListDefault
          readListPrec = readListPrecDefault
instance (~) ty CInt =>
         HasField "unwrapStatus_code_t" Status_code_t ty
    where hasField = \x_0 -> (\y_1 -> Status_code_t{unwrapStatus_code_t = y_1},
                              getField @"unwrapStatus_code_t" x_0)
instance (~) ty CInt =>
         HasField "unwrapStatus_code_t" (Ptr Status_code_t) (Ptr ty)
    where getField = fromPtr (Proxy @"unwrapStatus_code_t")
instance HasCField Status_code_t "unwrapStatus_code_t"
    where type CFieldType Status_code_t "unwrapStatus_code_t" = CInt
          offset# = \_ -> \_ -> 0
{-| Operation successful.

    __C declaration:__ @STATUS_OK@

    __defined at:__ @documentation\/doxygen_docs.h 266:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
pattern STATUS_OK :: Status_code_t
pattern STATUS_OK = Status_code_t 0
{-| Invalid parameter provided.

    __C declaration:__ @STATUS_INVALID_PARAM@

    __defined at:__ @documentation\/doxygen_docs.h 269:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
pattern STATUS_INVALID_PARAM :: Status_code_t
pattern STATUS_INVALID_PARAM = Status_code_t (-1)
{-| Memory allocation failed.

    __C declaration:__ @STATUS_NO_MEMORY@

    __defined at:__ @documentation\/doxygen_docs.h 272:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
pattern STATUS_NO_MEMORY :: Status_code_t
pattern STATUS_NO_MEMORY = Status_code_t (-2)
{-| Operation timed out.

    __C declaration:__ @STATUS_TIMEOUT@

    __defined at:__ @documentation\/doxygen_docs.h 275:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
pattern STATUS_TIMEOUT :: Status_code_t
pattern STATUS_TIMEOUT = Status_code_t (-3)
{-| Generic error.

    __C declaration:__ @STATUS_ERROR@

    __defined at:__ @documentation\/doxygen_docs.h 278:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
pattern STATUS_ERROR :: Status_code_t
pattern STATUS_ERROR = Status_code_t (-99)
{-| __C declaration:__ @struct \@data_union_t_as_parts@

    __defined at:__ @documentation\/doxygen_docs.h 296:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
data Data_union_t_as_parts
    = Data_union_t_as_parts {data_union_t_as_parts_low :: HsBindgen.Runtime.LibC.Word16
                             {- ^ Low 16 bits.

                                  __C declaration:__ @low@

                                  __defined at:__ @documentation\/doxygen_docs.h 297:18@

                                  __exported by:__ @documentation\/doxygen_docs.h@
                             -},
                             data_union_t_as_parts_high :: HsBindgen.Runtime.LibC.Word16
                             {- ^ High 16 bits.

                                  __C declaration:__ @high@

                                  __defined at:__ @documentation\/doxygen_docs.h 298:18@

                                  __exported by:__ @documentation\/doxygen_docs.h@
                             -}}
    deriving stock (Eq, Generic, Show)
instance StaticSize Data_union_t_as_parts
    where staticSizeOf = \_ -> 4 :: Int
          staticAlignment = \_ -> 2 :: Int
instance ReadRaw Data_union_t_as_parts
    where readRaw = \ptr_0 -> (pure Data_union_t_as_parts <*> readRaw (Proxy @"data_union_t_as_parts_low") ptr_0) <*> readRaw (Proxy @"data_union_t_as_parts_high") ptr_0
instance WriteRaw Data_union_t_as_parts
    where writeRaw = \ptr_0 -> \s_1 -> case s_1 of
                                       Data_union_t_as_parts data_union_t_as_parts_low_2
                                                             data_union_t_as_parts_high_3 -> writeRaw (Proxy @"data_union_t_as_parts_low") ptr_0 data_union_t_as_parts_low_2 >> writeRaw (Proxy @"data_union_t_as_parts_high") ptr_0 data_union_t_as_parts_high_3
deriving via (EquivStorable Data_union_t_as_parts) instance Storable Data_union_t_as_parts
deriving via (IsStructViaReadRaw Data_union_t_as_parts) instance IsStruct Data_union_t_as_parts
instance (~) ty HsBindgen.Runtime.LibC.Word16 =>
         HasField "data_union_t_as_parts_low" Data_union_t_as_parts ty
    where hasField = \x_0 -> (\y_1 -> Data_union_t_as_parts{data_union_t_as_parts_low = y_1,
                                                            data_union_t_as_parts_high = getField @"data_union_t_as_parts_high" x_0},
                              getField @"data_union_t_as_parts_low" x_0)
instance (~) ty HsBindgen.Runtime.LibC.Word16 =>
         HasField "data_union_t_as_parts_low"
                  (Ptr Data_union_t_as_parts)
                  (Ptr ty)
    where getField = fromPtr (Proxy @"data_union_t_as_parts_low")
instance HasCField Data_union_t_as_parts
                   "data_union_t_as_parts_low"
    where type CFieldType Data_union_t_as_parts
                          "data_union_t_as_parts_low" = HsBindgen.Runtime.LibC.Word16
          offset# = \_ -> \_ -> 0
instance (~) ty HsBindgen.Runtime.LibC.Word16 =>
         HasField "data_union_t_as_parts_high" Data_union_t_as_parts ty
    where hasField = \x_0 -> (\y_1 -> Data_union_t_as_parts{data_union_t_as_parts_high = y_1,
                                                            data_union_t_as_parts_low = getField @"data_union_t_as_parts_low" x_0},
                              getField @"data_union_t_as_parts_high" x_0)
instance (~) ty HsBindgen.Runtime.LibC.Word16 =>
         HasField "data_union_t_as_parts_high"
                  (Ptr Data_union_t_as_parts)
                  (Ptr ty)
    where getField = fromPtr (Proxy @"data_union_t_as_parts_high")
instance HasCField Data_union_t_as_parts
                   "data_union_t_as_parts_high"
    where type CFieldType Data_union_t_as_parts
                          "data_union_t_as_parts_high" = HsBindgen.Runtime.LibC.Word16
          offset# = \_ -> \_ -> 2
{-| Union with documented fields.

    This union demonstrates different data representations.

    __C declaration:__ @union data_union_t@

    __defined at:__ @documentation\/doxygen_docs.h 287:9@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
newtype Data_union_t
    = Data_union_t {unwrapData_union_t :: ByteArray}
    deriving stock Generic
deriving via (SizedByteArray 4 4) instance StaticSize Data_union_t
deriving via (SizedByteArray 4 4) instance ReadRaw Data_union_t
deriving via (SizedByteArray 4 4) instance WriteRaw Data_union_t
deriving via (EquivStorable Data_union_t) instance Storable Data_union_t
deriving via (SizedByteArray 4 4) instance IsUnion Data_union_t
instance (~) ty HsBindgen.Runtime.LibC.Int32 =>
         HasField "data_union_t_as_int" Data_union_t ty
    where getField = getUnionPayload
instance (~) ty HsBindgen.Runtime.LibC.Int32 =>
         HasField "data_union_t_as_int" Data_union_t ty
    where hasField = \x_0 -> (\y_1 -> setUnionPayload y_1 x_0,
                              getField @"data_union_t_as_int" x_0)
instance (~) ty HsBindgen.Runtime.LibC.Int32 =>
         HasField "data_union_t_as_int" (Ptr Data_union_t) (Ptr ty)
    where getField = fromPtr (Proxy @"data_union_t_as_int")
instance HasCField Data_union_t "data_union_t_as_int"
    where type CFieldType Data_union_t
                          "data_union_t_as_int" = HsBindgen.Runtime.LibC.Int32
          offset# = \_ -> \_ -> 0
instance (~) ty CFloat =>
         HasField "data_union_t_as_float" Data_union_t ty
    where getField = getUnionPayload
instance (~) ty CFloat =>
         HasField "data_union_t_as_float" Data_union_t ty
    where hasField = \x_0 -> (\y_1 -> setUnionPayload y_1 x_0,
                              getField @"data_union_t_as_float" x_0)
instance (~) ty CFloat =>
         HasField "data_union_t_as_float" (Ptr Data_union_t) (Ptr ty)
    where getField = fromPtr (Proxy @"data_union_t_as_float")
instance HasCField Data_union_t "data_union_t_as_float"
    where type CFieldType Data_union_t "data_union_t_as_float" = CFloat
          offset# = \_ -> \_ -> 0
instance (~) ty (ConstantArray 4 HsBindgen.Runtime.LibC.Word8) =>
         HasField "data_union_t_as_bytes" Data_union_t ty
    where getField = getUnionPayload
instance (~) ty (ConstantArray 4 HsBindgen.Runtime.LibC.Word8) =>
         HasField "data_union_t_as_bytes" Data_union_t ty
    where hasField = \x_0 -> (\y_1 -> setUnionPayload y_1 x_0,
                              getField @"data_union_t_as_bytes" x_0)
instance (~) ty (ConstantArray 4 HsBindgen.Runtime.LibC.Word8) =>
         HasField "data_union_t_as_bytes" (Ptr Data_union_t) (Ptr ty)
    where getField = fromPtr (Proxy @"data_union_t_as_bytes")
instance HasCField Data_union_t "data_union_t_as_bytes"
    where type CFieldType Data_union_t
                          "data_union_t_as_bytes" = ConstantArray 4
                                                                  HsBindgen.Runtime.LibC.Word8
          offset# = \_ -> \_ -> 0
instance (~) ty Data_union_t_as_parts =>
         HasField "data_union_t_as_parts" Data_union_t ty
    where getField = getUnionPayload
instance (~) ty Data_union_t_as_parts =>
         HasField "data_union_t_as_parts" Data_union_t ty
    where hasField = \x_0 -> (\y_1 -> setUnionPayload y_1 x_0,
                              getField @"data_union_t_as_parts" x_0)
instance (~) ty Data_union_t_as_parts =>
         HasField "data_union_t_as_parts" (Ptr Data_union_t) (Ptr ty)
    where getField = fromPtr (Proxy @"data_union_t_as_parts")
instance HasCField Data_union_t "data_union_t_as_parts"
    where type CFieldType Data_union_t
                          "data_union_t_as_parts" = Data_union_t_as_parts
          offset# = \_ -> \_ -> 0
{-| Bit field structure.

    Demonstrates bit field documentation.

    __C declaration:__ @struct bitfield_t@

    __defined at:__ @documentation\/doxygen_docs.h 308:9@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
data Bitfield_t
    = Bitfield_t {bitfield_t_flag1 :: CUInt
                  {- ^ First flag (1 bit).

                       __C declaration:__ @flag1@

                       __defined at:__ @documentation\/doxygen_docs.h 309:14@

                       __exported by:__ @documentation\/doxygen_docs.h@
                  -},
                  bitfield_t_flag2 :: CUInt
                  {- ^ Second flag (1 bit).

                       __C declaration:__ @flag2@

                       __defined at:__ @documentation\/doxygen_docs.h 310:14@

                       __exported by:__ @documentation\/doxygen_docs.h@
                  -},
                  bitfield_t_counter :: CUInt
                  {- ^ Counter value (6 bits).

                       __C declaration:__ @counter@

                       __defined at:__ @documentation\/doxygen_docs.h 311:14@

                       __exported by:__ @documentation\/doxygen_docs.h@
                  -},
                  bitfield_t_reserved :: CUInt
                  {- ^ Reserved bits (24 bits).

                       __C declaration:__ @reserved@

                       __defined at:__ @documentation\/doxygen_docs.h 312:14@

                       __exported by:__ @documentation\/doxygen_docs.h@
                  -}}
    deriving stock (Eq, Generic, Show)
instance StaticSize Bitfield_t
    where staticSizeOf = \_ -> 4 :: Int
          staticAlignment = \_ -> 4 :: Int
instance ReadRaw Bitfield_t
    where readRaw = \ptr_0 -> (((pure Bitfield_t <*> peek (Proxy @"bitfield_t_flag1") ptr_0) <*> peek (Proxy @"bitfield_t_flag2") ptr_0) <*> peek (Proxy @"bitfield_t_counter") ptr_0) <*> peek (Proxy @"bitfield_t_reserved") ptr_0
instance WriteRaw Bitfield_t
    where writeRaw = \ptr_0 -> \s_1 -> case s_1 of
                                       Bitfield_t bitfield_t_flag1_2
                                                  bitfield_t_flag2_3
                                                  bitfield_t_counter_4
                                                  bitfield_t_reserved_5 -> poke (Proxy @"bitfield_t_flag1") ptr_0 bitfield_t_flag1_2 >> (poke (Proxy @"bitfield_t_flag2") ptr_0 bitfield_t_flag2_3 >> (poke (Proxy @"bitfield_t_counter") ptr_0 bitfield_t_counter_4 >> poke (Proxy @"bitfield_t_reserved") ptr_0 bitfield_t_reserved_5))
deriving via (EquivStorable Bitfield_t) instance Storable Bitfield_t
deriving via (IsStructViaReadRaw Bitfield_t) instance IsStruct Bitfield_t
instance (~) ty CUInt => HasField "bitfield_t_flag1" Bitfield_t ty
    where hasField = \x_0 -> (\y_1 -> Bitfield_t{bitfield_t_flag1 = y_1,
                                                 bitfield_t_flag2 = getField @"bitfield_t_flag2" x_0,
                                                 bitfield_t_counter = getField @"bitfield_t_counter" x_0,
                                                 bitfield_t_reserved = getField @"bitfield_t_reserved" x_0},
                              getField @"bitfield_t_flag1" x_0)
instance (~) ty CUInt =>
         HasField "bitfield_t_flag1" (Ptr Bitfield_t) (BitfieldPtr ty)
    where getField = toPtr (Proxy @"bitfield_t_flag1")
instance HasCBitfield Bitfield_t "bitfield_t_flag1"
    where type CBitfieldType Bitfield_t "bitfield_t_flag1" = CUInt
          bitfieldOffset# = \_ -> \_ -> 0
          bitfieldWidth# = \_ -> \_ -> 1
instance (~) ty CUInt => HasField "bitfield_t_flag2" Bitfield_t ty
    where hasField = \x_0 -> (\y_1 -> Bitfield_t{bitfield_t_flag2 = y_1,
                                                 bitfield_t_flag1 = getField @"bitfield_t_flag1" x_0,
                                                 bitfield_t_counter = getField @"bitfield_t_counter" x_0,
                                                 bitfield_t_reserved = getField @"bitfield_t_reserved" x_0},
                              getField @"bitfield_t_flag2" x_0)
instance (~) ty CUInt =>
         HasField "bitfield_t_flag2" (Ptr Bitfield_t) (BitfieldPtr ty)
    where getField = toPtr (Proxy @"bitfield_t_flag2")
instance HasCBitfield Bitfield_t "bitfield_t_flag2"
    where type CBitfieldType Bitfield_t "bitfield_t_flag2" = CUInt
          bitfieldOffset# = \_ -> \_ -> 1
          bitfieldWidth# = \_ -> \_ -> 1
instance (~) ty CUInt =>
         HasField "bitfield_t_counter" Bitfield_t ty
    where hasField = \x_0 -> (\y_1 -> Bitfield_t{bitfield_t_counter = y_1,
                                                 bitfield_t_flag1 = getField @"bitfield_t_flag1" x_0,
                                                 bitfield_t_flag2 = getField @"bitfield_t_flag2" x_0,
                                                 bitfield_t_reserved = getField @"bitfield_t_reserved" x_0},
                              getField @"bitfield_t_counter" x_0)
instance (~) ty CUInt =>
         HasField "bitfield_t_counter" (Ptr Bitfield_t) (BitfieldPtr ty)
    where getField = toPtr (Proxy @"bitfield_t_counter")
instance HasCBitfield Bitfield_t "bitfield_t_counter"
    where type CBitfieldType Bitfield_t "bitfield_t_counter" = CUInt
          bitfieldOffset# = \_ -> \_ -> 2
          bitfieldWidth# = \_ -> \_ -> 6
instance (~) ty CUInt =>
         HasField "bitfield_t_reserved" Bitfield_t ty
    where hasField = \x_0 -> (\y_1 -> Bitfield_t{bitfield_t_reserved = y_1,
                                                 bitfield_t_flag1 = getField @"bitfield_t_flag1" x_0,
                                                 bitfield_t_flag2 = getField @"bitfield_t_flag2" x_0,
                                                 bitfield_t_counter = getField @"bitfield_t_counter" x_0},
                              getField @"bitfield_t_reserved" x_0)
instance (~) ty CUInt =>
         HasField "bitfield_t_reserved" (Ptr Bitfield_t) (BitfieldPtr ty)
    where getField = toPtr (Proxy @"bitfield_t_reserved")
instance HasCBitfield Bitfield_t "bitfield_t_reserved"
    where type CBitfieldType Bitfield_t "bitfield_t_reserved" = CUInt
          bitfieldOffset# = \_ -> \_ -> 8
          bitfieldWidth# = \_ -> \_ -> 24
{-| Auxiliary type used by 'Processor_fn_t'

    __C declaration:__ @processor_fn_t@

    __defined at:__ @documentation\/doxygen_docs.h 323:15@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
newtype Processor_fn_t_Aux
    = Processor_fn_t_Aux {unwrapProcessor_fn_t_Aux :: (CInt ->
                                                       Ptr Void -> IO CInt)}
    deriving stock Generic
-- __unique:__ @toProcessor_fn_t_Aux@
foreign import ccall safe "wrapper" hs_bindgen_d4e16471c82d5df0_base ::
    CInt -> Ptr Void -> IO CInt
 -> IO (FunPtr (CInt -> Ptr Void -> IO CInt))
-- __unique:__ @toProcessor_fn_t_Aux@
hs_bindgen_d4e16471c82d5df0 :: Processor_fn_t_Aux ->
                               IO (FunPtr Processor_fn_t_Aux)
-- __unique:__ @toProcessor_fn_t_Aux@
hs_bindgen_d4e16471c82d5df0 = \fun_0 -> fmap castFunPtr (hs_bindgen_d4e16471c82d5df0_base (\x_1 -> \x_2 -> fmap toFFIType (getField @"unwrapProcessor_fn_t_Aux" fun_0 (fromFFIType x_1) (fromFFIType x_2))))
-- __unique:__ @fromProcessor_fn_t_Aux@
foreign import ccall safe "dynamic" hs_bindgen_0d4b3d0461629423_base ::
    FunPtr (CInt -> Ptr Void -> IO CInt)
 -> CInt
 -> Ptr Void
 -> IO CInt
-- __unique:__ @fromProcessor_fn_t_Aux@
hs_bindgen_0d4b3d0461629423 :: FunPtr Processor_fn_t_Aux ->
                               Processor_fn_t_Aux
-- __unique:__ @fromProcessor_fn_t_Aux@
hs_bindgen_0d4b3d0461629423 = \funPtr_0 -> Processor_fn_t_Aux (\x_1 -> \x_2 -> fmap fromFFIType (hs_bindgen_0d4b3d0461629423_base (castFunPtr funPtr_0) (toFFIType x_1) (toFFIType x_2)))
instance ToFunPtr Processor_fn_t_Aux
    where toFunPtr = hs_bindgen_d4e16471c82d5df0
instance FromFunPtr Processor_fn_t_Aux
    where fromFunPtr = hs_bindgen_0d4b3d0461629423
instance (~) ty (CInt -> Ptr Void -> IO CInt) =>
         HasField "unwrapProcessor_fn_t_Aux" Processor_fn_t_Aux ty
    where hasField = \x_0 -> (\y_1 -> Processor_fn_t_Aux{unwrapProcessor_fn_t_Aux = y_1},
                              getField @"unwrapProcessor_fn_t_Aux" x_0)
instance (~) ty (CInt -> Ptr Void -> IO CInt) =>
         HasField "unwrapProcessor_fn_t_Aux"
                  (Ptr Processor_fn_t_Aux)
                  (Ptr ty)
    where getField = fromPtr (Proxy @"unwrapProcessor_fn_t_Aux")
instance HasCField Processor_fn_t_Aux "unwrapProcessor_fn_t_Aux"
    where type CFieldType Processor_fn_t_Aux
                          "unwrapProcessor_fn_t_Aux" = CInt -> Ptr Void -> IO CInt
          offset# = \_ -> \_ -> 0
{-| Function pointer typedef.

    [__@input@__]: Input value

    [__@context@__]: Context pointer

    __Returns:__ Processed value

    __C declaration:__ @processor_fn_t@

    __defined at:__ @documentation\/doxygen_docs.h 323:15@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
newtype Processor_fn_t
    = Processor_fn_t {unwrapProcessor_fn_t :: (FunPtr Processor_fn_t_Aux)}
    deriving stock (Eq, Generic, Ord, Show)
    deriving newtype (HasFFIType,
                      ReadRaw,
                      StaticSize,
                      Storable,
                      WriteRaw)
instance (~) ty (FunPtr Processor_fn_t_Aux) =>
         HasField "unwrapProcessor_fn_t" Processor_fn_t ty
    where hasField = \x_0 -> (\y_1 -> Processor_fn_t{unwrapProcessor_fn_t = y_1},
                              getField @"unwrapProcessor_fn_t" x_0)
instance (~) ty (FunPtr Processor_fn_t_Aux) =>
         HasField "unwrapProcessor_fn_t" (Ptr Processor_fn_t) (Ptr ty)
    where getField = fromPtr (Proxy @"unwrapProcessor_fn_t")
instance HasCField Processor_fn_t "unwrapProcessor_fn_t"
    where type CFieldType Processor_fn_t
                          "unwrapProcessor_fn_t" = FunPtr Processor_fn_t_Aux
          offset# = \_ -> \_ -> 0
{-| Array typedef with size.

    __C declaration:__ @filename_t@

    __defined at:__ @documentation\/doxygen_docs.h 329:14@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
newtype Filename_t
    = Filename_t {unwrapFilename_t :: (ConstantArray 256 CChar)}
    deriving stock (Eq, Generic, Show)
    deriving newtype (IsArray, ReadRaw, StaticSize, Storable, WriteRaw)
instance (~) ty (ConstantArray 256 CChar) =>
         HasField "unwrapFilename_t" Filename_t ty
    where hasField = \x_0 -> (\y_1 -> Filename_t{unwrapFilename_t = y_1},
                              getField @"unwrapFilename_t" x_0)
instance (~) ty (ConstantArray 256 CChar) =>
         HasField "unwrapFilename_t" (Ptr Filename_t) (Ptr ty)
    where getField = fromPtr (Proxy @"unwrapFilename_t")
instance HasCField Filename_t "unwrapFilename_t"
    where type CFieldType Filename_t
                          "unwrapFilename_t" = ConstantArray 256 CChar
          offset# = \_ -> \_ -> 0
{-| Structure with flexible array member.

    Used for variable-length data buffers.

    __C declaration:__ @struct flexible_array@

    __defined at:__ @documentation\/doxygen_docs.h 365:8@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
data Flexible_array_Aux
    = Flexible_array {flexible_array_count :: HsBindgen.Runtime.LibC.CSize
                      {- ^ Number of elements.

                           __C declaration:__ @count@

                           __defined at:__ @documentation\/doxygen_docs.h 366:12@

                           __exported by:__ @documentation\/doxygen_docs.h@
                      -}}
    deriving stock (Eq, Generic, Show)
instance StaticSize Flexible_array_Aux
    where staticSizeOf = \_ -> 8 :: Int
          staticAlignment = \_ -> 8 :: Int
instance ReadRaw Flexible_array_Aux
    where readRaw = \ptr_0 -> pure Flexible_array <*> readRaw (Proxy @"flexible_array_count") ptr_0
instance WriteRaw Flexible_array_Aux
    where writeRaw = \ptr_0 -> \s_1 -> case s_1 of
                                       Flexible_array flexible_array_count_2 -> writeRaw (Proxy @"flexible_array_count") ptr_0 flexible_array_count_2
deriving via (EquivStorable Flexible_array_Aux) instance Storable Flexible_array_Aux
deriving via (IsStructViaReadRaw Flexible_array_Aux) instance IsStruct Flexible_array_Aux
instance (~) ty HsBindgen.Runtime.LibC.CSize =>
         HasField "flexible_array_count" Flexible_array_Aux ty
    where hasField = \x_0 -> (\y_1 -> Flexible_array{flexible_array_count = y_1},
                              getField @"flexible_array_count" x_0)
instance (~) ty HsBindgen.Runtime.LibC.CSize =>
         HasField "flexible_array_count" (Ptr Flexible_array_Aux) (Ptr ty)
    where getField = fromPtr (Proxy @"flexible_array_count")
instance HasCField Flexible_array_Aux "flexible_array_count"
    where type CFieldType Flexible_array_Aux
                          "flexible_array_count" = HsBindgen.Runtime.LibC.CSize
          offset# = \_ -> \_ -> 0
instance Offset CInt Flexible_array_Aux
    where offset = \_proxy_0 -> 8
type Flexible_array = WithFlam CInt Flexible_array_Aux
{-| Struct with invariant.

    __Invariant:__ capacity >= size at all times

    __C declaration:__ @struct dyn_array_t@

    __defined at:__ @documentation\/doxygen_docs.h 523:9@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
data Dyn_array_t
    = Dyn_array_t {dyn_array_t_data :: (Ptr CInt)
                   {- ^ Pointer to data.

                        __C declaration:__ @data@

                        __defined at:__ @documentation\/doxygen_docs.h 524:10@

                        __exported by:__ @documentation\/doxygen_docs.h@
                   -},
                   dyn_array_t_size :: HsBindgen.Runtime.LibC.CSize
                   {- ^ Current number of elements.

                        __C declaration:__ @size@

                        __defined at:__ @documentation\/doxygen_docs.h 525:12@

                        __exported by:__ @documentation\/doxygen_docs.h@
                   -},
                   dyn_array_t_capacity :: HsBindgen.Runtime.LibC.CSize
                   {- ^ Allocated capacity.

                        __C declaration:__ @capacity@

                        __defined at:__ @documentation\/doxygen_docs.h 526:12@

                        __exported by:__ @documentation\/doxygen_docs.h@
                   -}}
    deriving stock (Eq, Generic, Show)
instance StaticSize Dyn_array_t
    where staticSizeOf = \_ -> 24 :: Int
          staticAlignment = \_ -> 8 :: Int
instance ReadRaw Dyn_array_t
    where readRaw = \ptr_0 -> ((pure Dyn_array_t <*> readRaw (Proxy @"dyn_array_t_data") ptr_0) <*> readRaw (Proxy @"dyn_array_t_size") ptr_0) <*> readRaw (Proxy @"dyn_array_t_capacity") ptr_0
instance WriteRaw Dyn_array_t
    where writeRaw = \ptr_0 -> \s_1 -> case s_1 of
                                       Dyn_array_t dyn_array_t_data_2
                                                   dyn_array_t_size_3
                                                   dyn_array_t_capacity_4 -> writeRaw (Proxy @"dyn_array_t_data") ptr_0 dyn_array_t_data_2 >> (writeRaw (Proxy @"dyn_array_t_size") ptr_0 dyn_array_t_size_3 >> writeRaw (Proxy @"dyn_array_t_capacity") ptr_0 dyn_array_t_capacity_4)
deriving via (EquivStorable Dyn_array_t) instance Storable Dyn_array_t
deriving via (IsStructViaReadRaw Dyn_array_t) instance IsStruct Dyn_array_t
instance (~) ty (Ptr CInt) =>
         HasField "dyn_array_t_data" Dyn_array_t ty
    where hasField = \x_0 -> (\y_1 -> Dyn_array_t{dyn_array_t_data = y_1,
                                                  dyn_array_t_size = getField @"dyn_array_t_size" x_0,
                                                  dyn_array_t_capacity = getField @"dyn_array_t_capacity" x_0},
                              getField @"dyn_array_t_data" x_0)
instance (~) ty (Ptr CInt) =>
         HasField "dyn_array_t_data" (Ptr Dyn_array_t) (Ptr ty)
    where getField = fromPtr (Proxy @"dyn_array_t_data")
instance HasCField Dyn_array_t "dyn_array_t_data"
    where type CFieldType Dyn_array_t "dyn_array_t_data" = Ptr CInt
          offset# = \_ -> \_ -> 0
instance (~) ty HsBindgen.Runtime.LibC.CSize =>
         HasField "dyn_array_t_size" Dyn_array_t ty
    where hasField = \x_0 -> (\y_1 -> Dyn_array_t{dyn_array_t_size = y_1,
                                                  dyn_array_t_data = getField @"dyn_array_t_data" x_0,
                                                  dyn_array_t_capacity = getField @"dyn_array_t_capacity" x_0},
                              getField @"dyn_array_t_size" x_0)
instance (~) ty HsBindgen.Runtime.LibC.CSize =>
         HasField "dyn_array_t_size" (Ptr Dyn_array_t) (Ptr ty)
    where getField = fromPtr (Proxy @"dyn_array_t_size")
instance HasCField Dyn_array_t "dyn_array_t_size"
    where type CFieldType Dyn_array_t
                          "dyn_array_t_size" = HsBindgen.Runtime.LibC.CSize
          offset# = \_ -> \_ -> 8
instance (~) ty HsBindgen.Runtime.LibC.CSize =>
         HasField "dyn_array_t_capacity" Dyn_array_t ty
    where hasField = \x_0 -> (\y_1 -> Dyn_array_t{dyn_array_t_capacity = y_1,
                                                  dyn_array_t_data = getField @"dyn_array_t_data" x_0,
                                                  dyn_array_t_size = getField @"dyn_array_t_size" x_0},
                              getField @"dyn_array_t_capacity" x_0)
instance (~) ty HsBindgen.Runtime.LibC.CSize =>
         HasField "dyn_array_t_capacity" (Ptr Dyn_array_t) (Ptr ty)
    where getField = fromPtr (Proxy @"dyn_array_t_capacity")
instance HasCField Dyn_array_t "dyn_array_t_capacity"
    where type CFieldType Dyn_array_t
                          "dyn_array_t_capacity" = HsBindgen.Runtime.LibC.CSize
          offset# = \_ -> \_ -> 16
{-| __C declaration:__ @struct \@multi_untagged_t_pos@

    __defined at:__ @documentation\/doxygen_docs.h 586:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
data Multi_untagged_t_pos
    = Multi_untagged_t_pos {multi_untagged_t_pos_x :: CFloat
                            {- ^ X coordinate.

                                 __C declaration:__ @x@

                                 __defined at:__ @documentation\/doxygen_docs.h 587:15@

                                 __exported by:__ @documentation\/doxygen_docs.h@
                            -},
                            multi_untagged_t_pos_y :: CFloat
                            {- ^ Y coordinate.

                                 __C declaration:__ @y@

                                 __defined at:__ @documentation\/doxygen_docs.h 588:15@

                                 __exported by:__ @documentation\/doxygen_docs.h@
                            -}}
    deriving stock (Eq, Generic, Show)
instance StaticSize Multi_untagged_t_pos
    where staticSizeOf = \_ -> 8 :: Int
          staticAlignment = \_ -> 4 :: Int
instance ReadRaw Multi_untagged_t_pos
    where readRaw = \ptr_0 -> (pure Multi_untagged_t_pos <*> readRaw (Proxy @"multi_untagged_t_pos_x") ptr_0) <*> readRaw (Proxy @"multi_untagged_t_pos_y") ptr_0
instance WriteRaw Multi_untagged_t_pos
    where writeRaw = \ptr_0 -> \s_1 -> case s_1 of
                                       Multi_untagged_t_pos multi_untagged_t_pos_x_2
                                                            multi_untagged_t_pos_y_3 -> writeRaw (Proxy @"multi_untagged_t_pos_x") ptr_0 multi_untagged_t_pos_x_2 >> writeRaw (Proxy @"multi_untagged_t_pos_y") ptr_0 multi_untagged_t_pos_y_3
deriving via (EquivStorable Multi_untagged_t_pos) instance Storable Multi_untagged_t_pos
deriving via (IsStructViaReadRaw Multi_untagged_t_pos) instance IsStruct Multi_untagged_t_pos
instance (~) ty CFloat =>
         HasField "multi_untagged_t_pos_x" Multi_untagged_t_pos ty
    where hasField = \x_0 -> (\y_1 -> Multi_untagged_t_pos{multi_untagged_t_pos_x = y_1,
                                                           multi_untagged_t_pos_y = getField @"multi_untagged_t_pos_y" x_0},
                              getField @"multi_untagged_t_pos_x" x_0)
instance (~) ty CFloat =>
         HasField "multi_untagged_t_pos_x"
                  (Ptr Multi_untagged_t_pos)
                  (Ptr ty)
    where getField = fromPtr (Proxy @"multi_untagged_t_pos_x")
instance HasCField Multi_untagged_t_pos "multi_untagged_t_pos_x"
    where type CFieldType Multi_untagged_t_pos
                          "multi_untagged_t_pos_x" = CFloat
          offset# = \_ -> \_ -> 0
instance (~) ty CFloat =>
         HasField "multi_untagged_t_pos_y" Multi_untagged_t_pos ty
    where hasField = \x_0 -> (\y_1 -> Multi_untagged_t_pos{multi_untagged_t_pos_y = y_1,
                                                           multi_untagged_t_pos_x = getField @"multi_untagged_t_pos_x" x_0},
                              getField @"multi_untagged_t_pos_y" x_0)
instance (~) ty CFloat =>
         HasField "multi_untagged_t_pos_y"
                  (Ptr Multi_untagged_t_pos)
                  (Ptr ty)
    where getField = fromPtr (Proxy @"multi_untagged_t_pos_y")
instance HasCField Multi_untagged_t_pos "multi_untagged_t_pos_y"
    where type CFieldType Multi_untagged_t_pos
                          "multi_untagged_t_pos_y" = CFloat
          offset# = \_ -> \_ -> 4
{-| __C declaration:__ @struct \@multi_untagged_t_dim@

    __defined at:__ @documentation\/doxygen_docs.h 594:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
data Multi_untagged_t_dim
    = Multi_untagged_t_dim {multi_untagged_t_dim_w :: CFloat
                            {- ^ Width.

                                 __C declaration:__ @w@

                                 __defined at:__ @documentation\/doxygen_docs.h 595:15@

                                 __exported by:__ @documentation\/doxygen_docs.h@
                            -},
                            multi_untagged_t_dim_h :: CFloat
                            {- ^ Height.

                                 __C declaration:__ @h@

                                 __defined at:__ @documentation\/doxygen_docs.h 596:15@

                                 __exported by:__ @documentation\/doxygen_docs.h@
                            -}}
    deriving stock (Eq, Generic, Show)
instance StaticSize Multi_untagged_t_dim
    where staticSizeOf = \_ -> 8 :: Int
          staticAlignment = \_ -> 4 :: Int
instance ReadRaw Multi_untagged_t_dim
    where readRaw = \ptr_0 -> (pure Multi_untagged_t_dim <*> readRaw (Proxy @"multi_untagged_t_dim_w") ptr_0) <*> readRaw (Proxy @"multi_untagged_t_dim_h") ptr_0
instance WriteRaw Multi_untagged_t_dim
    where writeRaw = \ptr_0 -> \s_1 -> case s_1 of
                                       Multi_untagged_t_dim multi_untagged_t_dim_w_2
                                                            multi_untagged_t_dim_h_3 -> writeRaw (Proxy @"multi_untagged_t_dim_w") ptr_0 multi_untagged_t_dim_w_2 >> writeRaw (Proxy @"multi_untagged_t_dim_h") ptr_0 multi_untagged_t_dim_h_3
deriving via (EquivStorable Multi_untagged_t_dim) instance Storable Multi_untagged_t_dim
deriving via (IsStructViaReadRaw Multi_untagged_t_dim) instance IsStruct Multi_untagged_t_dim
instance (~) ty CFloat =>
         HasField "multi_untagged_t_dim_w" Multi_untagged_t_dim ty
    where hasField = \x_0 -> (\y_1 -> Multi_untagged_t_dim{multi_untagged_t_dim_w = y_1,
                                                           multi_untagged_t_dim_h = getField @"multi_untagged_t_dim_h" x_0},
                              getField @"multi_untagged_t_dim_w" x_0)
instance (~) ty CFloat =>
         HasField "multi_untagged_t_dim_w"
                  (Ptr Multi_untagged_t_dim)
                  (Ptr ty)
    where getField = fromPtr (Proxy @"multi_untagged_t_dim_w")
instance HasCField Multi_untagged_t_dim "multi_untagged_t_dim_w"
    where type CFieldType Multi_untagged_t_dim
                          "multi_untagged_t_dim_w" = CFloat
          offset# = \_ -> \_ -> 0
instance (~) ty CFloat =>
         HasField "multi_untagged_t_dim_h" Multi_untagged_t_dim ty
    where hasField = \x_0 -> (\y_1 -> Multi_untagged_t_dim{multi_untagged_t_dim_h = y_1,
                                                           multi_untagged_t_dim_w = getField @"multi_untagged_t_dim_w" x_0},
                              getField @"multi_untagged_t_dim_h" x_0)
instance (~) ty CFloat =>
         HasField "multi_untagged_t_dim_h"
                  (Ptr Multi_untagged_t_dim)
                  (Ptr ty)
    where getField = fromPtr (Proxy @"multi_untagged_t_dim_h")
instance HasCField Multi_untagged_t_dim "multi_untagged_t_dim_h"
    where type CFieldType Multi_untagged_t_dim
                          "multi_untagged_t_dim_h" = CFloat
          offset# = \_ -> \_ -> 4
{-| Struct with multiple untagged inner structs.

    Tests that doxygen comment enrichment correctly associates field comments with untagged inner structs at multiple nesting levels.

    __C declaration:__ @struct multi_untagged_t@

    __defined at:__ @documentation\/doxygen_docs.h 582:9@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
data Multi_untagged_t
    = Multi_untagged_t {multi_untagged_t_pos :: Multi_untagged_t_pos
                        {- ^ Position in 2D space.

                             Position fields

                             __C declaration:__ @pos@

                             __defined at:__ @documentation\/doxygen_docs.h 589:30@

                             __exported by:__ @documentation\/doxygen_docs.h@
                        -},
                        multi_untagged_t_dim :: Multi_untagged_t_dim
                        {- ^ Dimensions.

                             Dimension fields

                             __C declaration:__ @dim@

                             __defined at:__ @documentation\/doxygen_docs.h 597:31@

                             __exported by:__ @documentation\/doxygen_docs.h@
                        -}}
    deriving stock (Eq, Generic, Show)
instance StaticSize Multi_untagged_t
    where staticSizeOf = \_ -> 16 :: Int
          staticAlignment = \_ -> 4 :: Int
instance ReadRaw Multi_untagged_t
    where readRaw = \ptr_0 -> (pure Multi_untagged_t <*> readRaw (Proxy @"multi_untagged_t_pos") ptr_0) <*> readRaw (Proxy @"multi_untagged_t_dim") ptr_0
instance WriteRaw Multi_untagged_t
    where writeRaw = \ptr_0 -> \s_1 -> case s_1 of
                                       Multi_untagged_t multi_untagged_t_pos_2
                                                        multi_untagged_t_dim_3 -> writeRaw (Proxy @"multi_untagged_t_pos") ptr_0 multi_untagged_t_pos_2 >> writeRaw (Proxy @"multi_untagged_t_dim") ptr_0 multi_untagged_t_dim_3
deriving via (EquivStorable Multi_untagged_t) instance Storable Multi_untagged_t
deriving via (IsStructViaReadRaw Multi_untagged_t) instance IsStruct Multi_untagged_t
instance (~) ty Multi_untagged_t_pos =>
         HasField "multi_untagged_t_pos" Multi_untagged_t ty
    where hasField = \x_0 -> (\y_1 -> Multi_untagged_t{multi_untagged_t_pos = y_1,
                                                       multi_untagged_t_dim = getField @"multi_untagged_t_dim" x_0},
                              getField @"multi_untagged_t_pos" x_0)
instance (~) ty Multi_untagged_t_pos =>
         HasField "multi_untagged_t_pos" (Ptr Multi_untagged_t) (Ptr ty)
    where getField = fromPtr (Proxy @"multi_untagged_t_pos")
instance HasCField Multi_untagged_t "multi_untagged_t_pos"
    where type CFieldType Multi_untagged_t
                          "multi_untagged_t_pos" = Multi_untagged_t_pos
          offset# = \_ -> \_ -> 0
instance (~) ty Multi_untagged_t_dim =>
         HasField "multi_untagged_t_dim" Multi_untagged_t ty
    where hasField = \x_0 -> (\y_1 -> Multi_untagged_t{multi_untagged_t_dim = y_1,
                                                       multi_untagged_t_pos = getField @"multi_untagged_t_pos" x_0},
                              getField @"multi_untagged_t_dim" x_0)
instance (~) ty Multi_untagged_t_dim =>
         HasField "multi_untagged_t_dim" (Ptr Multi_untagged_t) (Ptr ty)
    where getField = fromPtr (Proxy @"multi_untagged_t_dim")
instance HasCField Multi_untagged_t "multi_untagged_t_dim"
    where type CFieldType Multi_untagged_t
                          "multi_untagged_t_dim" = Multi_untagged_t_dim
          offset# = \_ -> \_ -> 8
{-| Named inner struct

    __C declaration:__ @struct named_inner@

    __defined at:__ @documentation\/doxygen_docs.h 608:12@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
data Named_inner
    = Named_inner {named_inner_nx :: CInt
                   {- ^ Inner field nx

                        __C declaration:__ @nx@

                        __defined at:__ @documentation\/doxygen_docs.h 610:13@

                        __exported by:__ @documentation\/doxygen_docs.h@
                   -},
                   named_inner_ny :: CInt
                   {- ^ Inner field ny

                        __C declaration:__ @ny@

                        __defined at:__ @documentation\/doxygen_docs.h 612:13@

                        __exported by:__ @documentation\/doxygen_docs.h@
                   -}}
    deriving stock (Eq, Generic, Show)
instance StaticSize Named_inner
    where staticSizeOf = \_ -> 8 :: Int
          staticAlignment = \_ -> 4 :: Int
instance ReadRaw Named_inner
    where readRaw = \ptr_0 -> (pure Named_inner <*> readRaw (Proxy @"named_inner_nx") ptr_0) <*> readRaw (Proxy @"named_inner_ny") ptr_0
instance WriteRaw Named_inner
    where writeRaw = \ptr_0 -> \s_1 -> case s_1 of
                                       Named_inner named_inner_nx_2
                                                   named_inner_ny_3 -> writeRaw (Proxy @"named_inner_nx") ptr_0 named_inner_nx_2 >> writeRaw (Proxy @"named_inner_ny") ptr_0 named_inner_ny_3
deriving via (EquivStorable Named_inner) instance Storable Named_inner
deriving via (IsStructViaReadRaw Named_inner) instance IsStruct Named_inner
instance (~) ty CInt => HasField "named_inner_nx" Named_inner ty
    where hasField = \x_0 -> (\y_1 -> Named_inner{named_inner_nx = y_1,
                                                  named_inner_ny = getField @"named_inner_ny" x_0},
                              getField @"named_inner_nx" x_0)
instance (~) ty CInt =>
         HasField "named_inner_nx" (Ptr Named_inner) (Ptr ty)
    where getField = fromPtr (Proxy @"named_inner_nx")
instance HasCField Named_inner "named_inner_nx"
    where type CFieldType Named_inner "named_inner_nx" = CInt
          offset# = \_ -> \_ -> 0
instance (~) ty CInt => HasField "named_inner_ny" Named_inner ty
    where hasField = \x_0 -> (\y_1 -> Named_inner{named_inner_ny = y_1,
                                                  named_inner_nx = getField @"named_inner_nx" x_0},
                              getField @"named_inner_ny" x_0)
instance (~) ty CInt =>
         HasField "named_inner_ny" (Ptr Named_inner) (Ptr ty)
    where getField = fromPtr (Proxy @"named_inner_ny")
instance HasCField Named_inner "named_inner_ny"
    where type CFieldType Named_inner "named_inner_ny" = CInt
          offset# = \_ -> \_ -> 4
{-| Struct with a named inner struct.

    Tests that doxygen comment enrichment uses the qualified name "named_outer::named_inner" for lookups.

    __C declaration:__ @struct named_outer@

    __defined at:__ @documentation\/doxygen_docs.h 606:8@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
data Named_outer
    = Named_outer {named_outer_inner_field :: Named_inner
                   {- ^ __C declaration:__ @inner_field@

                        __defined at:__ @documentation\/doxygen_docs.h 613:7@

                        __exported by:__ @documentation\/doxygen_docs.h@
                   -},
                   named_outer_nz :: CInt
                   {- ^ Outer field nz

                        __C declaration:__ @nz@

                        __defined at:__ @documentation\/doxygen_docs.h 615:9@

                        __exported by:__ @documentation\/doxygen_docs.h@
                   -}}
    deriving stock (Eq, Generic, Show)
instance StaticSize Named_outer
    where staticSizeOf = \_ -> 12 :: Int
          staticAlignment = \_ -> 4 :: Int
instance ReadRaw Named_outer
    where readRaw = \ptr_0 -> (pure Named_outer <*> readRaw (Proxy @"named_outer_inner_field") ptr_0) <*> readRaw (Proxy @"named_outer_nz") ptr_0
instance WriteRaw Named_outer
    where writeRaw = \ptr_0 -> \s_1 -> case s_1 of
                                       Named_outer named_outer_inner_field_2
                                                   named_outer_nz_3 -> writeRaw (Proxy @"named_outer_inner_field") ptr_0 named_outer_inner_field_2 >> writeRaw (Proxy @"named_outer_nz") ptr_0 named_outer_nz_3
deriving via (EquivStorable Named_outer) instance Storable Named_outer
deriving via (IsStructViaReadRaw Named_outer) instance IsStruct Named_outer
instance (~) ty Named_inner =>
         HasField "named_outer_inner_field" Named_outer ty
    where hasField = \x_0 -> (\y_1 -> Named_outer{named_outer_inner_field = y_1,
                                                  named_outer_nz = getField @"named_outer_nz" x_0},
                              getField @"named_outer_inner_field" x_0)
instance (~) ty Named_inner =>
         HasField "named_outer_inner_field" (Ptr Named_outer) (Ptr ty)
    where getField = fromPtr (Proxy @"named_outer_inner_field")
instance HasCField Named_outer "named_outer_inner_field"
    where type CFieldType Named_outer
                          "named_outer_inner_field" = Named_inner
          offset# = \_ -> \_ -> 0
instance (~) ty CInt => HasField "named_outer_nz" Named_outer ty
    where hasField = \x_0 -> (\y_1 -> Named_outer{named_outer_nz = y_1,
                                                  named_outer_inner_field = getField @"named_outer_inner_field" x_0},
                              getField @"named_outer_nz" x_0)
instance (~) ty CInt =>
         HasField "named_outer_nz" (Ptr Named_outer) (Ptr ty)
    where getField = fromPtr (Proxy @"named_outer_nz")
instance HasCField Named_outer "named_outer_nz"
    where type CFieldType Named_outer "named_outer_nz" = CInt
          offset# = \_ -> \_ -> 8
{-| __C declaration:__ @struct \@deep_mid_untagged_field@

    __defined at:__ @documentation\/doxygen_docs.h 629:9@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
data Deep_mid_untagged_field
    = Deep_mid_untagged_field {deep_mid_untagged_field_deep_a :: CInt
                               {- ^ Deep field

                                    __C declaration:__ @deep_a@

                                    __defined at:__ @documentation\/doxygen_docs.h 631:17@

                                    __exported by:__ @documentation\/doxygen_docs.h@
                               -}}
    deriving stock (Eq, Generic, Show)
instance StaticSize Deep_mid_untagged_field
    where staticSizeOf = \_ -> 4 :: Int
          staticAlignment = \_ -> 4 :: Int
instance ReadRaw Deep_mid_untagged_field
    where readRaw = \ptr_0 -> pure Deep_mid_untagged_field <*> readRaw (Proxy @"deep_mid_untagged_field_deep_a") ptr_0
instance WriteRaw Deep_mid_untagged_field
    where writeRaw = \ptr_0 -> \s_1 -> case s_1 of
                                       Deep_mid_untagged_field deep_mid_untagged_field_deep_a_2 -> writeRaw (Proxy @"deep_mid_untagged_field_deep_a") ptr_0 deep_mid_untagged_field_deep_a_2
deriving via (EquivStorable Deep_mid_untagged_field) instance Storable Deep_mid_untagged_field
deriving via (IsStructViaReadRaw Deep_mid_untagged_field) instance IsStruct Deep_mid_untagged_field
instance (~) ty CInt =>
         HasField "deep_mid_untagged_field_deep_a"
                  Deep_mid_untagged_field
                  ty
    where hasField = \x_0 -> (\y_1 -> Deep_mid_untagged_field{deep_mid_untagged_field_deep_a = y_1},
                              getField @"deep_mid_untagged_field_deep_a" x_0)
instance (~) ty CInt =>
         HasField "deep_mid_untagged_field_deep_a"
                  (Ptr Deep_mid_untagged_field)
                  (Ptr ty)
    where getField = fromPtr (Proxy @"deep_mid_untagged_field_deep_a")
instance HasCField Deep_mid_untagged_field
                   "deep_mid_untagged_field_deep_a"
    where type CFieldType Deep_mid_untagged_field
                          "deep_mid_untagged_field_deep_a" = CInt
          offset# = \_ -> \_ -> 0
{-| The named mid-level struct

    __C declaration:__ @struct deep_mid@

    __defined at:__ @documentation\/doxygen_docs.h 625:12@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
data Deep_mid
    = Deep_mid {deep_mid_m :: CInt
                {- ^ Mid-level field

                     __C declaration:__ @m@

                     __defined at:__ @documentation\/doxygen_docs.h 627:13@

                     __exported by:__ @documentation\/doxygen_docs.h@
                -},
                deep_mid_untagged_field :: Deep_mid_untagged_field
                {- ^ Untagged struct inside named mid

                     __C declaration:__ @untagged_field@

                     __defined at:__ @documentation\/doxygen_docs.h 632:11@

                     __exported by:__ @documentation\/doxygen_docs.h@
                -}}
    deriving stock (Eq, Generic, Show)
instance StaticSize Deep_mid
    where staticSizeOf = \_ -> 8 :: Int
          staticAlignment = \_ -> 4 :: Int
instance ReadRaw Deep_mid
    where readRaw = \ptr_0 -> (pure Deep_mid <*> readRaw (Proxy @"deep_mid_m") ptr_0) <*> readRaw (Proxy @"deep_mid_untagged_field") ptr_0
instance WriteRaw Deep_mid
    where writeRaw = \ptr_0 -> \s_1 -> case s_1 of
                                       Deep_mid deep_mid_m_2
                                                deep_mid_untagged_field_3 -> writeRaw (Proxy @"deep_mid_m") ptr_0 deep_mid_m_2 >> writeRaw (Proxy @"deep_mid_untagged_field") ptr_0 deep_mid_untagged_field_3
deriving via (EquivStorable Deep_mid) instance Storable Deep_mid
deriving via (IsStructViaReadRaw Deep_mid) instance IsStruct Deep_mid
instance (~) ty CInt => HasField "deep_mid_m" Deep_mid ty
    where hasField = \x_0 -> (\y_1 -> Deep_mid{deep_mid_m = y_1,
                                               deep_mid_untagged_field = getField @"deep_mid_untagged_field" x_0},
                              getField @"deep_mid_m" x_0)
instance (~) ty CInt =>
         HasField "deep_mid_m" (Ptr Deep_mid) (Ptr ty)
    where getField = fromPtr (Proxy @"deep_mid_m")
instance HasCField Deep_mid "deep_mid_m"
    where type CFieldType Deep_mid "deep_mid_m" = CInt
          offset# = \_ -> \_ -> 0
instance (~) ty Deep_mid_untagged_field =>
         HasField "deep_mid_untagged_field" Deep_mid ty
    where hasField = \x_0 -> (\y_1 -> Deep_mid{deep_mid_untagged_field = y_1,
                                               deep_mid_m = getField @"deep_mid_m" x_0},
                              getField @"deep_mid_untagged_field" x_0)
instance (~) ty Deep_mid_untagged_field =>
         HasField "deep_mid_untagged_field" (Ptr Deep_mid) (Ptr ty)
    where getField = fromPtr (Proxy @"deep_mid_untagged_field")
instance HasCField Deep_mid "deep_mid_untagged_field"
    where type CFieldType Deep_mid
                          "deep_mid_untagged_field" = Deep_mid_untagged_field
          offset# = \_ -> \_ -> 4
{-| Deeply nested mix of tagged and untagged structs.

    Tests the full genealogy walk through mixed tagged/untagged nesting.

    __C declaration:__ @struct deep_outer@

    __defined at:__ @documentation\/doxygen_docs.h 623:8@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
data Deep_outer
    = Deep_outer {deep_outer_mid_field :: Deep_mid
                  {- ^ __C declaration:__ @mid_field@

                       __defined at:__ @documentation\/doxygen_docs.h 633:7@

                       __exported by:__ @documentation\/doxygen_docs.h@
                  -},
                  deep_outer_o :: CInt
                  {- ^ Outer-only field

                       __C declaration:__ @o@

                       __defined at:__ @documentation\/doxygen_docs.h 635:9@

                       __exported by:__ @documentation\/doxygen_docs.h@
                  -}}
    deriving stock (Eq, Generic, Show)
instance StaticSize Deep_outer
    where staticSizeOf = \_ -> 12 :: Int
          staticAlignment = \_ -> 4 :: Int
instance ReadRaw Deep_outer
    where readRaw = \ptr_0 -> (pure Deep_outer <*> readRaw (Proxy @"deep_outer_mid_field") ptr_0) <*> readRaw (Proxy @"deep_outer_o") ptr_0
instance WriteRaw Deep_outer
    where writeRaw = \ptr_0 -> \s_1 -> case s_1 of
                                       Deep_outer deep_outer_mid_field_2
                                                  deep_outer_o_3 -> writeRaw (Proxy @"deep_outer_mid_field") ptr_0 deep_outer_mid_field_2 >> writeRaw (Proxy @"deep_outer_o") ptr_0 deep_outer_o_3
deriving via (EquivStorable Deep_outer) instance Storable Deep_outer
deriving via (IsStructViaReadRaw Deep_outer) instance IsStruct Deep_outer
instance (~) ty Deep_mid =>
         HasField "deep_outer_mid_field" Deep_outer ty
    where hasField = \x_0 -> (\y_1 -> Deep_outer{deep_outer_mid_field = y_1,
                                                 deep_outer_o = getField @"deep_outer_o" x_0},
                              getField @"deep_outer_mid_field" x_0)
instance (~) ty Deep_mid =>
         HasField "deep_outer_mid_field" (Ptr Deep_outer) (Ptr ty)
    where getField = fromPtr (Proxy @"deep_outer_mid_field")
instance HasCField Deep_outer "deep_outer_mid_field"
    where type CFieldType Deep_outer "deep_outer_mid_field" = Deep_mid
          offset# = \_ -> \_ -> 0
instance (~) ty CInt => HasField "deep_outer_o" Deep_outer ty
    where hasField = \x_0 -> (\y_1 -> Deep_outer{deep_outer_o = y_1,
                                                 deep_outer_mid_field = getField @"deep_outer_mid_field" x_0},
                              getField @"deep_outer_o" x_0)
instance (~) ty CInt =>
         HasField "deep_outer_o" (Ptr Deep_outer) (Ptr ty)
    where getField = fromPtr (Proxy @"deep_outer_o")
instance HasCField Deep_outer "deep_outer_o"
    where type CFieldType Deep_outer "deep_outer_o" = CInt
          offset# = \_ -> \_ -> 8
{-| __C declaration:__ @struct \@unnamed_field_t_anon\'ua@

    __defined at:__ @documentation\/doxygen_docs.h 647:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
data Unnamed_field_t_anon'ua
    = Unnamed_field_t_anon'ua {unnamed_field_t_anon'ua_ua :: CInt
                               {- ^ Unnamed inner a

                                    __C declaration:__ @ua@

                                    __defined at:__ @documentation\/doxygen_docs.h 649:13@

                                    __exported by:__ @documentation\/doxygen_docs.h@
                               -},
                               unnamed_field_t_anon'ua_ub :: CInt
                               {- ^ Unnamed inner b

                                    __C declaration:__ @ub@

                                    __defined at:__ @documentation\/doxygen_docs.h 651:13@

                                    __exported by:__ @documentation\/doxygen_docs.h@
                               -}}
    deriving stock (Eq, Generic, Show)
instance StaticSize Unnamed_field_t_anon'ua
    where staticSizeOf = \_ -> 8 :: Int
          staticAlignment = \_ -> 4 :: Int
instance ReadRaw Unnamed_field_t_anon'ua
    where readRaw = \ptr_0 -> (pure Unnamed_field_t_anon'ua <*> readRaw (Proxy @"unnamed_field_t_anon'ua_ua") ptr_0) <*> readRaw (Proxy @"unnamed_field_t_anon'ua_ub") ptr_0
instance WriteRaw Unnamed_field_t_anon'ua
    where writeRaw = \ptr_0 -> \s_1 -> case s_1 of
                                       Unnamed_field_t_anon'ua unnamed_field_t_anon'ua_ua_2
                                                               unnamed_field_t_anon'ua_ub_3 -> writeRaw (Proxy @"unnamed_field_t_anon'ua_ua") ptr_0 unnamed_field_t_anon'ua_ua_2 >> writeRaw (Proxy @"unnamed_field_t_anon'ua_ub") ptr_0 unnamed_field_t_anon'ua_ub_3
deriving via (EquivStorable Unnamed_field_t_anon'ua) instance Storable Unnamed_field_t_anon'ua
deriving via (IsStructViaReadRaw Unnamed_field_t_anon'ua) instance IsStruct Unnamed_field_t_anon'ua
instance (~) ty CInt =>
         HasField "unnamed_field_t_anon'ua_ua" Unnamed_field_t_anon'ua ty
    where hasField = \x_0 -> (\y_1 -> Unnamed_field_t_anon'ua{unnamed_field_t_anon'ua_ua = y_1,
                                                              unnamed_field_t_anon'ua_ub = getField @"unnamed_field_t_anon'ua_ub" x_0},
                              getField @"unnamed_field_t_anon'ua_ua" x_0)
instance (~) ty CInt =>
         HasField "unnamed_field_t_anon'ua_ua"
                  (Ptr Unnamed_field_t_anon'ua)
                  (Ptr ty)
    where getField = fromPtr (Proxy @"unnamed_field_t_anon'ua_ua")
instance HasCField Unnamed_field_t_anon'ua
                   "unnamed_field_t_anon'ua_ua"
    where type CFieldType Unnamed_field_t_anon'ua
                          "unnamed_field_t_anon'ua_ua" = CInt
          offset# = \_ -> \_ -> 0
instance (~) ty CInt =>
         HasField "unnamed_field_t_anon'ua_ub" Unnamed_field_t_anon'ua ty
    where hasField = \x_0 -> (\y_1 -> Unnamed_field_t_anon'ua{unnamed_field_t_anon'ua_ub = y_1,
                                                              unnamed_field_t_anon'ua_ua = getField @"unnamed_field_t_anon'ua_ua" x_0},
                              getField @"unnamed_field_t_anon'ua_ub" x_0)
instance (~) ty CInt =>
         HasField "unnamed_field_t_anon'ua_ub"
                  (Ptr Unnamed_field_t_anon'ua)
                  (Ptr ty)
    where getField = fromPtr (Proxy @"unnamed_field_t_anon'ua_ub")
instance HasCField Unnamed_field_t_anon'ua
                   "unnamed_field_t_anon'ua_ub"
    where type CFieldType Unnamed_field_t_anon'ua
                          "unnamed_field_t_anon'ua_ub" = CInt
          offset# = \_ -> \_ -> 4
{-| Struct with anonymous struct.

    Tests the case where the inner struct is anonymous: no struct tag and no field name. The inner fields are flattened directly into the parent.

    __C declaration:__ @struct unnamed_field_t@

    __defined at:__ @documentation\/doxygen_docs.h 644:9@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
data Unnamed_field_t
    = Unnamed_field_t {unnamed_field_t_before :: CInt
                       {- ^ Before field

                            __C declaration:__ @before@

                            __defined at:__ @documentation\/doxygen_docs.h 646:9@

                            __exported by:__ @documentation\/doxygen_docs.h@
                       -},
                       unnamed_field_t_anon'ua :: Unnamed_field_t_anon'ua
                       {- ^ __C declaration:__ @anon\'ua@

                            __defined at:__ @documentation\/doxygen_docs.h 647:5@

                            __exported by:__ @documentation\/doxygen_docs.h@
                       -},
                       unnamed_field_t_after :: CInt
                       {- ^ After field

                            __C declaration:__ @after@

                            __defined at:__ @documentation\/doxygen_docs.h 654:9@

                            __exported by:__ @documentation\/doxygen_docs.h@
                       -}}
    deriving stock (Eq, Generic, Show)
instance StaticSize Unnamed_field_t
    where staticSizeOf = \_ -> 16 :: Int
          staticAlignment = \_ -> 4 :: Int
instance ReadRaw Unnamed_field_t
    where readRaw = \ptr_0 -> ((pure Unnamed_field_t <*> readRaw (Proxy @"unnamed_field_t_before") ptr_0) <*> readRaw (Proxy @"unnamed_field_t_anon'ua") ptr_0) <*> readRaw (Proxy @"unnamed_field_t_after") ptr_0
instance WriteRaw Unnamed_field_t
    where writeRaw = \ptr_0 -> \s_1 -> case s_1 of
                                       Unnamed_field_t unnamed_field_t_before_2
                                                       unnamed_field_t_anon'ua_3
                                                       unnamed_field_t_after_4 -> writeRaw (Proxy @"unnamed_field_t_before") ptr_0 unnamed_field_t_before_2 >> (writeRaw (Proxy @"unnamed_field_t_anon'ua") ptr_0 unnamed_field_t_anon'ua_3 >> writeRaw (Proxy @"unnamed_field_t_after") ptr_0 unnamed_field_t_after_4)
deriving via (EquivStorable Unnamed_field_t) instance Storable Unnamed_field_t
deriving via (IsStructViaReadRaw Unnamed_field_t) instance IsStruct Unnamed_field_t
instance (~) ty CInt =>
         HasField "unnamed_field_t_before" Unnamed_field_t ty
    where hasField = \x_0 -> (\y_1 -> Unnamed_field_t{unnamed_field_t_before = y_1,
                                                      unnamed_field_t_anon'ua = getField @"unnamed_field_t_anon'ua" x_0,
                                                      unnamed_field_t_after = getField @"unnamed_field_t_after" x_0},
                              getField @"unnamed_field_t_before" x_0)
instance (~) ty CInt =>
         HasField "unnamed_field_t_before" (Ptr Unnamed_field_t) (Ptr ty)
    where getField = fromPtr (Proxy @"unnamed_field_t_before")
instance HasCField Unnamed_field_t "unnamed_field_t_before"
    where type CFieldType Unnamed_field_t
                          "unnamed_field_t_before" = CInt
          offset# = \_ -> \_ -> 0
instance (~) ty Unnamed_field_t_anon'ua =>
         HasField "unnamed_field_t_anon'ua" Unnamed_field_t ty
    where hasField = \x_0 -> (\y_1 -> Unnamed_field_t{unnamed_field_t_anon'ua = y_1,
                                                      unnamed_field_t_before = getField @"unnamed_field_t_before" x_0,
                                                      unnamed_field_t_after = getField @"unnamed_field_t_after" x_0},
                              getField @"unnamed_field_t_anon'ua" x_0)
instance (~) ty Unnamed_field_t_anon'ua =>
         HasField "unnamed_field_t_anon'ua" (Ptr Unnamed_field_t) (Ptr ty)
    where getField = fromPtr (Proxy @"unnamed_field_t_anon'ua")
instance HasCField Unnamed_field_t "unnamed_field_t_anon'ua"
    where type CFieldType Unnamed_field_t
                          "unnamed_field_t_anon'ua" = Unnamed_field_t_anon'ua
          offset# = \_ -> \_ -> 4
instance (~) ty CInt =>
         HasField "unnamed_field_t_ua" Unnamed_field_t ty
    where getField = \x_0 -> getField @"unnamed_field_t_anon'ua_ua" (getField @"unnamed_field_t_anon'ua" x_0)
instance (~) ty CInt =>
         HasField "unnamed_field_t_ua" Unnamed_field_t ty
    where hasField = \x_0 -> (\y_1 -> modifyField @"unnamed_field_t_anon'ua" x_0 (\z_2 -> setField @"unnamed_field_t_anon'ua_ua" z_2 y_1),
                              getField @"unnamed_field_t_ua" x_0)
instance (~) ty CInt =>
         HasField "unnamed_field_t_ua" (Ptr Unnamed_field_t) (Ptr ty)
    where getField = fromPtr (Proxy @"unnamed_field_t_ua")
instance HasCField Unnamed_field_t "unnamed_field_t_ua"
    where type CFieldType Unnamed_field_t "unnamed_field_t_ua" = CInt
          offset# = \_ -> \_ -> 4
instance (~) ty CInt =>
         HasField "unnamed_field_t_ub" Unnamed_field_t ty
    where getField = \x_0 -> getField @"unnamed_field_t_anon'ua_ub" (getField @"unnamed_field_t_anon'ua" x_0)
instance (~) ty CInt =>
         HasField "unnamed_field_t_ub" Unnamed_field_t ty
    where hasField = \x_0 -> (\y_1 -> modifyField @"unnamed_field_t_anon'ua" x_0 (\z_2 -> setField @"unnamed_field_t_anon'ua_ub" z_2 y_1),
                              getField @"unnamed_field_t_ub" x_0)
instance (~) ty CInt =>
         HasField "unnamed_field_t_ub" (Ptr Unnamed_field_t) (Ptr ty)
    where getField = fromPtr (Proxy @"unnamed_field_t_ub")
instance HasCField Unnamed_field_t "unnamed_field_t_ub"
    where type CFieldType Unnamed_field_t "unnamed_field_t_ub" = CInt
          offset# = \_ -> \_ -> 8
instance (~) ty CInt =>
         HasField "unnamed_field_t_after" Unnamed_field_t ty
    where hasField = \x_0 -> (\y_1 -> Unnamed_field_t{unnamed_field_t_after = y_1,
                                                      unnamed_field_t_before = getField @"unnamed_field_t_before" x_0,
                                                      unnamed_field_t_anon'ua = getField @"unnamed_field_t_anon'ua" x_0},
                              getField @"unnamed_field_t_after" x_0)
instance (~) ty CInt =>
         HasField "unnamed_field_t_after" (Ptr Unnamed_field_t) (Ptr ty)
    where getField = fromPtr (Proxy @"unnamed_field_t_after")
instance HasCField Unnamed_field_t "unnamed_field_t_after"
    where type CFieldType Unnamed_field_t
                          "unnamed_field_t_after" = CInt
          offset# = \_ -> \_ -> 12
{-| API version number (not in any group).

    __C declaration:__ @api_version_t@

    __defined at:__ @documentation\/doxygen_docs.h 662:13@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
newtype Api_version_t
    = Api_version_t {unwrapApi_version_t :: CInt}
    deriving stock (Eq, Generic, Ord, Read, Show)
    deriving newtype (Bitfield,
                      Bits,
                      Bounded,
                      Enum,
                      FiniteBits,
                      HasFFIType,
                      Integral,
                      Ix,
                      Num,
                      Prim,
                      ReadRaw,
                      Real,
                      StaticSize,
                      Storable,
                      WriteRaw)
instance (~) ty CInt =>
         HasField "unwrapApi_version_t" Api_version_t ty
    where hasField = \x_0 -> (\y_1 -> Api_version_t{unwrapApi_version_t = y_1},
                              getField @"unwrapApi_version_t" x_0)
instance (~) ty CInt =>
         HasField "unwrapApi_version_t" (Ptr Api_version_t) (Ptr ty)
    where getField = fromPtr (Proxy @"unwrapApi_version_t")
instance HasCField Api_version_t "unwrapApi_version_t"
    where type CFieldType Api_version_t "unwrapApi_version_t" = CInt
          offset# = \_ -> \_ -> 0
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_process_data@
foreign import ccall safe "hs_bindgen_7eada9f65d982412" hs_bindgen_7eada9f65d982412_base ::
    Ptr Void
 -> Ptr Void
 -> Ptr Void
 -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_process_data@
hs_bindgen_7eada9f65d982412 :: PtrConst HsBindgen.Runtime.LibC.Word8 ->
                               Ptr HsBindgen.Runtime.LibC.Word8 ->
                               Ptr HsBindgen.Runtime.LibC.CSize -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_process_data@
hs_bindgen_7eada9f65d982412 = \x_0 -> \x_1 -> \x_2 -> fmap fromFFIType (hs_bindgen_7eada9f65d982412_base (toFFIType x_0) (toFFIType x_1) (toFFIType x_2))
{-| Function with detailed parameter documentation.

    This function shows different parameter directions and types.

    [__@input_data@ /(input)/__]: Input data buffer

    [__@output_data@ /(output)/__]: Output data buffer

    [__@size@ /(input,output)/__]: Size of data, updated on return

    __Returns:__ Status code (0 = success, -1 = error)

    __C declaration:__ @process_data@

    __defined at:__ @documentation\/doxygen_docs.h 111:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
process_data_safe :: PtrConst HsBindgen.Runtime.LibC.Word8 ->
                     Ptr HsBindgen.Runtime.LibC.Word8 ->
                     Ptr HsBindgen.Runtime.LibC.CSize -> IO CInt
{-| Function with detailed parameter documentation.

    This function shows different parameter directions and types.

    [__@input_data@ /(input)/__]: Input data buffer

    [__@output_data@ /(output)/__]: Output data buffer

    [__@size@ /(input,output)/__]: Size of data, updated on return

    __Returns:__ Status code (0 = success, -1 = error)

    __C declaration:__ @process_data@

    __defined at:__ @documentation\/doxygen_docs.h 111:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
process_data_safe = hs_bindgen_7eada9f65d982412
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_process_file@
foreign import ccall safe "hs_bindgen_fb85499c501da1a7" hs_bindgen_fb85499c501da1a7_base ::
    Ptr Void
 -> IO CBool
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_process_file@
hs_bindgen_fb85499c501da1a7 :: PtrConst CChar -> IO CBool
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_process_file@
hs_bindgen_fb85499c501da1a7 = \x_0 -> fmap fromFFIType (hs_bindgen_fb85499c501da1a7_base (toFFIType x_0))
{-| Function with inline commands and formatting.

    This function uses @inline@ @code@ formatting and __bold__ text. It also demonstrates /emphasized/ text.

    [__@filename@__]: The @char*@ filename to process

    __Returns:__ @true@ if successful, @false@ otherwise

    __C declaration:__ @process_file@

    __defined at:__ @documentation\/doxygen_docs.h 122:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
process_file_safe :: PtrConst CChar -> IO CBool
{-| Function with inline commands and formatting.

    This function uses @inline@ @code@ formatting and __bold__ text. It also demonstrates /emphasized/ text.

    [__@filename@__]: The @char*@ filename to process

    __Returns:__ @true@ if successful, @false@ otherwise

    __C declaration:__ @process_file@

    __defined at:__ @documentation\/doxygen_docs.h 122:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
process_file_safe = hs_bindgen_fb85499c501da1a7
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_calculate_value@
foreign import ccall safe "hs_bindgen_a73fc7b108035c5c" hs_bindgen_a73fc7b108035c5c_base ::
    CInt
 -> CInt
 -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_calculate_value@
hs_bindgen_a73fc7b108035c5c :: CInt -> CInt -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_calculate_value@
hs_bindgen_a73fc7b108035c5c = \x_0 -> \x_1 -> fmap fromFFIType (hs_bindgen_a73fc7b108035c5c_base (toFFIType x_0) (toFFIType x_1))
{-| Function with verbatim code blocks.

    Example usage:

    @
    int result = calculate_value(10, 20);
    printf("Result: %d\n", result);
    @

    [__@base@__]: Base value

    [__@multiplier@__]: Multiplier value

    __Returns:__ Calculated result

    __C declaration:__ @calculate_value@

    __defined at:__ @documentation\/doxygen_docs.h 137:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
calculate_value_safe :: CInt -> CInt -> IO CInt
{-| Function with verbatim code blocks.

    Example usage:

    @
    int result = calculate_value(10, 20);
    printf("Result: %d\n", result);
    @

    [__@base@__]: Base value

    [__@multiplier@__]: Multiplier value

    __Returns:__ Calculated result

    __C declaration:__ @calculate_value@

    __defined at:__ @documentation\/doxygen_docs.h 137:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
calculate_value_safe = hs_bindgen_a73fc7b108035c5c
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_html_example@
foreign import ccall safe "hs_bindgen_9b7f6745401b4652" hs_bindgen_9b7f6745401b4652_base ::
    CInt
 -> IO CBool
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_html_example@
hs_bindgen_9b7f6745401b4652 :: CInt -> IO CBool
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_html_example@
hs_bindgen_9b7f6745401b4652 = \x_0 -> fmap fromFFIType (hs_bindgen_9b7f6745401b4652_base (toFFIType x_0))
{-| Function with HTML formatting.

    This function demonstrates __HTML bold__ and /italic/ text. It also shows @HTML code@ formatting.

    Input

    Output

    0

    false

    1

    true

    [__@value@__]: Input value

    __Returns:__ Boolean result

    __C declaration:__ @html_example@

    __defined at:__ @documentation\/doxygen_docs.h 154:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
html_example_safe :: CInt -> IO CBool
{-| Function with HTML formatting.

    This function demonstrates __HTML bold__ and /italic/ text. It also shows @HTML code@ formatting.

    Input

    Output

    0

    false

    1

    true

    [__@value@__]: Input value

    __Returns:__ Boolean result

    __C declaration:__ @html_example@

    __defined at:__ @documentation\/doxygen_docs.h 154:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
html_example_safe = hs_bindgen_9b7f6745401b4652
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_list_example@
foreign import ccall safe "hs_bindgen_825411dc114e599b" hs_bindgen_825411dc114e599b_base ::
    Ptr Void
 -> HsBindgen.Runtime.LibC.CSize
 -> IO CBool
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_list_example@
hs_bindgen_825411dc114e599b :: Ptr (PtrConst CChar) ->
                               HsBindgen.Runtime.LibC.CSize -> IO CBool
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_list_example@
hs_bindgen_825411dc114e599b = \x_0 -> \x_1 -> fmap fromFFIType (hs_bindgen_825411dc114e599b_base (toFFIType x_0) (toFFIType x_1))
{-| Function with lists and special formatting.

    This function demonstrates:

    * Bullet point lists
      * Nested list item 1
      * Nested list item 2

    * Multiple items

    * Nested formatting

    Numbered list:

    1. First @item@ 1. item

    2. Second __item__

    3. Third item

    Other numbered list:

    1. A

    2. B

    3. C

    [__@items@__]: Array of items

    [__@count@__]: Number of items

    __Returns:__ Success status

    __C declaration:__ @list_example@

    __defined at:__ @documentation\/doxygen_docs.h 180:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
list_example_safe :: Ptr (PtrConst CChar) ->
                     HsBindgen.Runtime.LibC.CSize -> IO CBool
{-| Function with lists and special formatting.

    This function demonstrates:

    * Bullet point lists
      * Nested list item 1
      * Nested list item 2

    * Multiple items

    * Nested formatting

    Numbered list:

    1. First @item@ 1. item

    2. Second __item__

    3. Third item

    Other numbered list:

    1. A

    2. B

    3. C

    [__@items@__]: Array of items

    [__@count@__]: Number of items

    __Returns:__ Success status

    __C declaration:__ @list_example@

    __defined at:__ @documentation\/doxygen_docs.h 180:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
list_example_safe = hs_bindgen_825411dc114e599b
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_dangerous_function@
foreign import ccall safe "hs_bindgen_17264dcff7e9b698" hs_bindgen_17264dcff7e9b698_base ::
    Ptr Void
 -> IO (Ptr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_dangerous_function@
hs_bindgen_17264dcff7e9b698 :: Ptr Void -> IO (Ptr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_dangerous_function@
hs_bindgen_17264dcff7e9b698 = \x_0 -> fmap fromFFIType (hs_bindgen_17264dcff7e9b698_base (toFFIType x_0))
{-| Function with warnings and notes.

    __WARNING:__ This function may cause side effects

    __Note:__ Use with caution in multithreaded environments

    __See:__ related_function() for similar functionality

    [__@ptr@__]: Pointer to data

    __Returns:__ Modified pointer

    __C declaration:__ @dangerous_function@

    __defined at:__ @documentation\/doxygen_docs.h 192:7@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
dangerous_function_safe :: Ptr Void -> IO (Ptr Void)
{-| Function with warnings and notes.

    __WARNING:__ This function may cause side effects

    __Note:__ Use with caution in multithreaded environments

    __See:__ related_function() for similar functionality

    [__@ptr@__]: Pointer to data

    __Returns:__ Modified pointer

    __C declaration:__ @dangerous_function@

    __defined at:__ @documentation\/doxygen_docs.h 192:7@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
dangerous_function_safe = hs_bindgen_17264dcff7e9b698
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_detailed_return_codes@
foreign import ccall safe "hs_bindgen_c8ca619ec2e70d8d" hs_bindgen_c8ca619ec2e70d8d_base ::
    Ptr Void
 -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_detailed_return_codes@
hs_bindgen_c8ca619ec2e70d8d :: PtrConst CChar -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_detailed_return_codes@
hs_bindgen_c8ca619ec2e70d8d = \x_0 -> fmap fromFFIType (hs_bindgen_c8ca619ec2e70d8d_base (toFFIType x_0))
{-| Function with return value details.

    [__@input@__]: Input string

    [__@0@__]: Success

    [__@-1@__]: Invalid input

    [__@-2@__]: Memory allocation failed

    [__@-3@__]: Processing error

    __C declaration:__ @detailed_return_codes@

    __defined at:__ @documentation\/doxygen_docs.h 203:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
detailed_return_codes_safe :: PtrConst CChar -> IO CInt
{-| Function with return value details.

    [__@input@__]: Input string

    [__@0@__]: Success

    [__@-1@__]: Invalid input

    [__@-2@__]: Memory allocation failed

    [__@-3@__]: Processing error

    __C declaration:__ @detailed_return_codes@

    __defined at:__ @documentation\/doxygen_docs.h 203:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
detailed_return_codes_safe = hs_bindgen_c8ca619ec2e70d8d
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_old_function@
foreign import ccall safe "hs_bindgen_25e1070e2ce10048" hs_bindgen_25e1070e2ce10048_base ::
    CInt
 -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_old_function@
hs_bindgen_25e1070e2ce10048 :: CInt -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_old_function@
hs_bindgen_25e1070e2ce10048 = \x_0 -> fmap fromFFIType (hs_bindgen_25e1070e2ce10048_base (toFFIType x_0))
{-| Function with deprecated annotation.

    __Deprecated:__ Use new_function() instead

    [__@old_param@__]: Legacy parameter

    __Returns:__ Legacy result

    __C declaration:__ @old_function@

    __defined at:__ @documentation\/doxygen_docs.h 212:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
old_function_safe :: CInt -> IO CInt
{-| Function with deprecated annotation.

    __Deprecated:__ Use new_function() instead

    [__@old_param@__]: Legacy parameter

    __Returns:__ Legacy result

    __C declaration:__ @old_function@

    __defined at:__ @documentation\/doxygen_docs.h 212:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
old_function_safe = hs_bindgen_25e1070e2ce10048
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_versioned_function@
foreign import ccall safe "hs_bindgen_a9eeeb09808e71cc" hs_bindgen_a9eeeb09808e71cc_base ::
    CInt
 -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_versioned_function@
hs_bindgen_a9eeeb09808e71cc :: CInt -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_versioned_function@
hs_bindgen_a9eeeb09808e71cc = \x_0 -> fmap fromFFIType (hs_bindgen_a9eeeb09808e71cc_base (toFFIType x_0))
{-| Function with version information.

    @since 1.0

    __Version:__ 1.2

    [__@data@__]: Input data

    __Returns:__ Processed data

    __C declaration:__ @versioned_function@

    __defined at:__ @documentation\/doxygen_docs.h 222:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
versioned_function_safe :: CInt -> IO CInt
{-| Function with version information.

    @since 1.0

    __Version:__ 1.2

    [__@data@__]: Input data

    __Returns:__ Processed data

    __C declaration:__ @versioned_function@

    __defined at:__ @documentation\/doxygen_docs.h 222:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
versioned_function_safe = hs_bindgen_a9eeeb09808e71cc
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_process_buffer@
foreign import ccall safe "hs_bindgen_0c0057f1700372a7" hs_bindgen_0c0057f1700372a7_base ::
    Ptr Void
 -> HsBindgen.Runtime.LibC.CSize
 -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_process_buffer@
hs_bindgen_0c0057f1700372a7 :: Ptr (Elem (ConstantArray 64
                                                        CChar)) ->
                               HsBindgen.Runtime.LibC.CSize -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_process_buffer@
hs_bindgen_0c0057f1700372a7 = \x_0 -> \x_1 -> fmap fromFFIType (hs_bindgen_0c0057f1700372a7_base (toFFIType x_0) (toFFIType x_1))
{-| Static array parameter.

    [__@buffer@__]: Buffer with minimum size

    [__@size@__]: Actual buffer size

    __Returns:__ Number of bytes written

    __C declaration:__ @process_buffer@

    __defined at:__ @documentation\/doxygen_docs.h 338:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
process_buffer_safe :: Ptr (Elem (ConstantArray 64 CChar)) ->
                       HsBindgen.Runtime.LibC.CSize -> IO CInt
{-| Static array parameter.

    [__@buffer@__]: Buffer with minimum size

    [__@size@__]: Actual buffer size

    __Returns:__ Number of bytes written

    __C declaration:__ @process_buffer@

    __defined at:__ @documentation\/doxygen_docs.h 338:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
process_buffer_safe = hs_bindgen_0c0057f1700372a7
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_my_memcpy@
foreign import ccall safe "hs_bindgen_294db77671f95524" hs_bindgen_294db77671f95524_base ::
    Ptr Void
 -> Ptr Void
 -> HsBindgen.Runtime.LibC.CSize
 -> IO (Ptr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_my_memcpy@
hs_bindgen_294db77671f95524 :: Ptr Void ->
                               PtrConst Void -> HsBindgen.Runtime.LibC.CSize -> IO (Ptr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_my_memcpy@
hs_bindgen_294db77671f95524 = \x_0 -> \x_1 -> \x_2 -> fmap fromFFIType (hs_bindgen_294db77671f95524_base (toFFIType x_0) (toFFIType x_1) (toFFIType x_2))
{-| Function with restrict pointers.

    [__@dest@__]: Destination buffer (restrict)

    [__@src@__]: Source buffer (restrict)

    [__@n@__]: Number of bytes

    __Returns:__ Destination pointer

    __C declaration:__ @my_memcpy@

    __defined at:__ @documentation\/doxygen_docs.h 348:7@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
my_memcpy_safe :: Ptr Void ->
                  PtrConst Void -> HsBindgen.Runtime.LibC.CSize -> IO (Ptr Void)
{-| Function with restrict pointers.

    [__@dest@__]: Destination buffer (restrict)

    [__@src@__]: Source buffer (restrict)

    [__@n@__]: Number of bytes

    __Returns:__ Destination pointer

    __C declaration:__ @my_memcpy@

    __defined at:__ @documentation\/doxygen_docs.h 348:7@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
my_memcpy_safe = hs_bindgen_294db77671f95524
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_double_value@
foreign import ccall safe "hs_bindgen_f5bc63a9952c2618" hs_bindgen_f5bc63a9952c2618_base ::
    CInt
 -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_double_value@
hs_bindgen_f5bc63a9952c2618 :: CInt -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_double_value@
hs_bindgen_f5bc63a9952c2618 = \x_0 -> fmap fromFFIType (hs_bindgen_f5bc63a9952c2618_base (toFFIType x_0))
{-| Inline function.

    [__@x@__]: Input value

    __Returns:__ Doubled value

    __C declaration:__ @double_value@

    __defined at:__ @documentation\/doxygen_docs.h 356:19@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
double_value_safe :: CInt -> IO CInt
{-| Inline function.

    [__@x@__]: Input value

    __Returns:__ Doubled value

    __C declaration:__ @double_value@

    __defined at:__ @documentation\/doxygen_docs.h 356:19@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
double_value_safe = hs_bindgen_f5bc63a9952c2618
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_read_chunk@
foreign import ccall safe "hs_bindgen_3545f99d29c4fc53" hs_bindgen_3545f99d29c4fc53_base ::
    CInt
 -> Ptr Void
 -> HsBindgen.Runtime.LibC.CSize
 -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_read_chunk@
hs_bindgen_3545f99d29c4fc53 :: CInt ->
                               Ptr Void -> HsBindgen.Runtime.LibC.CSize -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_read_chunk@
hs_bindgen_3545f99d29c4fc53 = \x_0 -> \x_1 -> \x_2 -> fmap fromFFIType (hs_bindgen_3545f99d29c4fc53_base (toFFIType x_0) (toFFIType x_1) (toFFIType x_2))
{-| Read a chunk of bytes into the provided buffer.

    Demonstrates a section nested inside @functions@ .

    [__@fd@__]: File descriptor

    [__@buf@__]: Output buffer

    [__@count@__]: Number of bytes to read

    __Returns:__ Number of bytes read

    __C declaration:__ @read_chunk@

    __defined at:__ @documentation\/doxygen_docs.h 387:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
read_chunk_safe :: CInt ->
                   Ptr Void -> HsBindgen.Runtime.LibC.CSize -> IO CInt
{-| Read a chunk of bytes into the provided buffer.

    Demonstrates a section nested inside @functions@ .

    [__@fd@__]: File descriptor

    [__@buf@__]: Output buffer

    [__@count@__]: Number of bytes to read

    __Returns:__ Number of bytes read

    __C declaration:__ @read_chunk@

    __defined at:__ @documentation\/doxygen_docs.h 387:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
read_chunk_safe = hs_bindgen_3545f99d29c4fc53
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_write_chunk@
foreign import ccall safe "hs_bindgen_839c1d19dfe95042" hs_bindgen_839c1d19dfe95042_base ::
    CInt
 -> Ptr Void
 -> HsBindgen.Runtime.LibC.CSize
 -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_write_chunk@
hs_bindgen_839c1d19dfe95042 :: CInt ->
                               PtrConst Void -> HsBindgen.Runtime.LibC.CSize -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_write_chunk@
hs_bindgen_839c1d19dfe95042 = \x_0 -> \x_1 -> \x_2 -> fmap fromFFIType (hs_bindgen_839c1d19dfe95042_base (toFFIType x_0) (toFFIType x_1) (toFFIType x_2))
{-| Write a chunk of bytes from the provided buffer.

    [__@fd@__]: File descriptor

    [__@buf@__]: Input buffer

    [__@count@__]: Number of bytes to write

    __Returns:__ Number of bytes written

    __C declaration:__ @write_chunk@

    __defined at:__ @documentation\/doxygen_docs.h 397:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
write_chunk_safe :: CInt ->
                    PtrConst Void -> HsBindgen.Runtime.LibC.CSize -> IO CInt
{-| Write a chunk of bytes from the provided buffer.

    [__@fd@__]: File descriptor

    [__@buf@__]: Input buffer

    [__@count@__]: Number of bytes to write

    __Returns:__ Number of bytes written

    __C declaration:__ @write_chunk@

    __defined at:__ @documentation\/doxygen_docs.h 397:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
write_chunk_safe = hs_bindgen_839c1d19dfe95042
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_complex_function@
foreign import ccall safe "hs_bindgen_c4e7e99dba20204d" hs_bindgen_c4e7e99dba20204d_base ::
    Ptr Void
 -> Ptr Void
 -> HsBindgen.Runtime.LibC.CSize
 -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_complex_function@
hs_bindgen_c4e7e99dba20204d :: Ptr Config_t ->
                               PtrConst HsBindgen.Runtime.LibC.Word8 ->
                               HsBindgen.Runtime.LibC.CSize -> IO Status_code_t
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_complex_function@
hs_bindgen_c4e7e99dba20204d = \x_0 -> \x_1 -> \x_2 -> fmap fromFFIType (hs_bindgen_c4e7e99dba20204d_base (toFFIType x_0) (toFFIType x_1) (toFFIType x_2))
{-| Function with complex documentation.

    This function demonstrates multiple documentation features:

    __Description:__

    Performs complex data processing with multiple steps.

    __Algorithm:__

    1. Validate input parameters

    2. Allocate temporary buffers

    3. Process data in chunks

    4. Clean up resources

    __Algorithm2:__

    * Validate input parameters

    * Allocate temporary buffers

    * Process data in chunks

    * Clean up resources

    __Example:__

    @
    config_t cfg = {
        .id = 1,
        .name = "test",
        .flags = 0,
        .callback = my_callback,
        .user_data = NULL
    };

    status_code_t result = complex_function(&cfg, data, size);
    if (result != STATUS_OK) {
        handle_error(result);
    }
    @

    [__@config@__]: Configuration structure (see 'Config_t' )

    [__@data@__]: Input data buffer

    [__@size@__]: Size of input data

    __Returns:__ Status code indicating success or failure

    __Precondition:__ config must not be NULL

    __Precondition:__ data must not be NULL if size > 0

    __Postcondition:__ Output data is written to config->user_data

    __WARNING:__ May return NULL if memory allocation fails

    __WARNING:__ Sets errno to EINVAL if parameters are invalid

    __C declaration:__ @complex_function@

    __defined at:__ @documentation\/doxygen_docs.h 459:15@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
complex_function_safe :: Ptr Config_t ->
                         PtrConst HsBindgen.Runtime.LibC.Word8 ->
                         HsBindgen.Runtime.LibC.CSize -> IO Status_code_t
{-| Function with complex documentation.

    This function demonstrates multiple documentation features:

    __Description:__

    Performs complex data processing with multiple steps.

    __Algorithm:__

    1. Validate input parameters

    2. Allocate temporary buffers

    3. Process data in chunks

    4. Clean up resources

    __Algorithm2:__

    * Validate input parameters

    * Allocate temporary buffers

    * Process data in chunks

    * Clean up resources

    __Example:__

    @
    config_t cfg = {
        .id = 1,
        .name = "test",
        .flags = 0,
        .callback = my_callback,
        .user_data = NULL
    };

    status_code_t result = complex_function(&cfg, data, size);
    if (result != STATUS_OK) {
        handle_error(result);
    }
    @

    [__@config@__]: Configuration structure (see 'Config_t' )

    [__@data@__]: Input data buffer

    [__@size@__]: Size of input data

    __Returns:__ Status code indicating success or failure

    __Precondition:__ config must not be NULL

    __Precondition:__ data must not be NULL if size > 0

    __Postcondition:__ Output data is written to config->user_data

    __WARNING:__ May return NULL if memory allocation fails

    __WARNING:__ Sets errno to EINVAL if parameters are invalid

    __C declaration:__ @complex_function@

    __defined at:__ @documentation\/doxygen_docs.h 459:15@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
complex_function_safe = hs_bindgen_c4e7e99dba20204d
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_hash@
foreign import ccall safe "hs_bindgen_935f2aead358d9ef" hs_bindgen_935f2aead358d9ef_base ::
    Ptr Void
 -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_hash@
hs_bindgen_935f2aead358d9ef :: Ptr CChar -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_hash@
hs_bindgen_935f2aead358d9ef = \x_0 -> fmap fromFFIType (hs_bindgen_935f2aead358d9ef_base (toFFIType x_0))
{-|

    Marked @__attribute((pure))__@

    __C declaration:__ @hash@

    __defined at:__ @documentation\/doxygen_docs.h 463:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
hash_safe :: Ptr CChar -> IO CInt
{-|

    Marked @__attribute((pure))__@

    __C declaration:__ @hash@

    __defined at:__ @documentation\/doxygen_docs.h 463:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
hash_safe = hs_bindgen_935f2aead358d9ef
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_square@
foreign import ccall safe "hs_bindgen_39fef54c23d4e1ee" hs_bindgen_39fef54c23d4e1ee_base ::
    CInt
 -> CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_square@
hs_bindgen_39fef54c23d4e1ee :: CInt -> CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_square@
hs_bindgen_39fef54c23d4e1ee = \x_0 -> fromFFIType (hs_bindgen_39fef54c23d4e1ee_base (toFFIType x_0))
{-|

    Marked @__attribute((const))__@

    __C declaration:__ @square@

    __defined at:__ @documentation\/doxygen_docs.h 465:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
square_safe :: CInt -> CInt
{-|

    Marked @__attribute((const))__@

    __C declaration:__ @square@

    __defined at:__ @documentation\/doxygen_docs.h 465:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
square_safe = hs_bindgen_39fef54c23d4e1ee
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_auto_brief_func@
foreign import ccall safe "hs_bindgen_29749932a4449f10" hs_bindgen_29749932a4449f10_base ::
    CInt
 -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_auto_brief_func@
hs_bindgen_29749932a4449f10 :: CInt -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_auto_brief_func@
hs_bindgen_29749932a4449f10 = \x_0 -> fmap fromFFIType (hs_bindgen_29749932a4449f10_base (toFFIType x_0))
{-| Auto-brief function without explicit @brief tag.

    This tests that the first sentence is used as the brief description when no explicit @brief is present.

    [__@x@__]: The input value

    __Returns:__ The negated value

    __C declaration:__ @auto_brief_func@

    __defined at:__ @documentation\/doxygen_docs.h 486:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
auto_brief_func_safe :: CInt -> IO CInt
{-| Auto-brief function without explicit @brief tag.

    This tests that the first sentence is used as the brief description when no explicit @brief is present.

    [__@x@__]: The input value

    __Returns:__ The negated value

    __C declaration:__ @auto_brief_func@

    __defined at:__ @documentation\/doxygen_docs.h 486:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
auto_brief_func_safe = hs_bindgen_29749932a4449f10
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_multi_paragraph_details@
foreign import ccall safe "hs_bindgen_03f0269c9296b8c0" hs_bindgen_03f0269c9296b8c0_base ::
    Ptr Void
 -> HsBindgen.Runtime.LibC.CSize
 -> IO ()
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_multi_paragraph_details@
hs_bindgen_03f0269c9296b8c0 :: Ptr CChar ->
                               HsBindgen.Runtime.LibC.CSize -> IO ()
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_multi_paragraph_details@
hs_bindgen_03f0269c9296b8c0 = \x_0 -> \x_1 -> hs_bindgen_03f0269c9296b8c0_base (toFFIType x_0) (toFFIType x_1)
{-| Multi-paragraph details.

    First paragraph of the detailed description. This explains the basic purpose of the function.

    Second paragraph with more context. This includes information about the algorithm and its complexity, which is O(n) in the input size.

    Third paragraph with usage notes. Callers should ensure that the buffer is large enough before calling this function.

    [__@buf@__]: Output buffer

    [__@len@__]: Buffer length

    __C declaration:__ @multi_paragraph_details@

    __defined at:__ @documentation\/doxygen_docs.h 503:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
multi_paragraph_details_safe :: Ptr CChar ->
                                HsBindgen.Runtime.LibC.CSize -> IO ()
{-| Multi-paragraph details.

    First paragraph of the detailed description. This explains the basic purpose of the function.

    Second paragraph with more context. This includes information about the algorithm and its complexity, which is O(n) in the input size.

    Third paragraph with usage notes. Callers should ensure that the buffer is large enough before calling this function.

    [__@buf@__]: Output buffer

    [__@len@__]: Buffer length

    __C declaration:__ @multi_paragraph_details@

    __defined at:__ @documentation\/doxygen_docs.h 503:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
multi_paragraph_details_safe = hs_bindgen_03f0269c9296b8c0
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_todo_remark_attention@
foreign import ccall safe "hs_bindgen_0446a821eb966f46" hs_bindgen_0446a821eb966f46_base ::
    CInt
 -> IO (Ptr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_todo_remark_attention@
hs_bindgen_0446a821eb966f46 :: CInt -> IO (Ptr CInt)
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_todo_remark_attention@
hs_bindgen_0446a821eb966f46 = \x_0 -> fmap fromFFIType (hs_bindgen_0446a821eb966f46_base (toFFIType x_0))
{-| Function with @todo and @remark.

    __Todo:__ Optimize this function for large inputs

    Add support for negative values

    __Remark:__ This function is thread-safe

    __ATTENTION:__ The caller must free the returned pointer

    [__@n@__]: Input count

    __Returns:__ Allocated array

    __C declaration:__ @todo_remark_attention@

    __defined at:__ @documentation\/doxygen_docs.h 516:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
todo_remark_attention_safe :: CInt -> IO (Ptr CInt)
{-| Function with @todo and @remark.

    __Todo:__ Optimize this function for large inputs

    Add support for negative values

    __Remark:__ This function is thread-safe

    __ATTENTION:__ The caller must free the returned pointer

    [__@n@__]: Input count

    __Returns:__ Allocated array

    __C declaration:__ @todo_remark_attention@

    __defined at:__ @documentation\/doxygen_docs.h 516:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
todo_remark_attention_safe = hs_bindgen_0446a821eb966f46
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_html_entities_func@
foreign import ccall safe "hs_bindgen_25a9ea376bb793e9" hs_bindgen_25a9ea376bb793e9_base ::
    CInt
 -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_html_entities_func@
hs_bindgen_25a9ea376bb793e9 :: CInt -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_html_entities_func@
hs_bindgen_25a9ea376bb793e9 = \x_0 -> fmap fromFFIType (hs_bindgen_25a9ea376bb793e9_base (toFFIType x_0))
{-| HTML entities: & means AND, <tag> is a tag.

    Handles values < 0 and values > 100 differently. Copyright 2025.

    [__@x@__]: Input (> 0 required)

    __Returns:__ Result code

    __C declaration:__ @html_entities_func@

    __defined at:__ @documentation\/doxygen_docs.h 538:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
html_entities_func_safe :: CInt -> IO CInt
{-| HTML entities: & means AND, <tag> is a tag.

    Handles values < 0 and values > 100 differently. Copyright 2025.

    [__@x@__]: Input (> 0 required)

    __Returns:__ Result code

    __C declaration:__ @html_entities_func@

    __defined at:__ @documentation\/doxygen_docs.h 538:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
html_entities_func_safe = hs_bindgen_25a9ea376bb793e9
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_nested_inline_format@
foreign import ccall safe "hs_bindgen_6f311771e5e063e6" hs_bindgen_6f311771e5e063e6_base ::
    CInt
 -> IO ()
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_nested_inline_format@
hs_bindgen_6f311771e5e063e6 :: CInt -> IO ()
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_nested_inline_format@
hs_bindgen_6f311771e5e063e6 = \x_0 -> hs_bindgen_6f311771e5e063e6_base (toFFIType x_0)
{-| Nested inline: __bold__ , @code@ , __@bold_code@ ,__ /__emph_bold__ ./

    [__@x@__]: Input value

    __C declaration:__ @nested_inline_format@

    __defined at:__ @documentation\/doxygen_docs.h 545:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
nested_inline_format_safe :: CInt -> IO ()
{-| Nested inline: __bold__ , @code@ , __@bold_code@ ,__ /__emph_bold__ ./

    [__@x@__]: Input value

    __C declaration:__ @nested_inline_format@

    __defined at:__ @documentation\/doxygen_docs.h 545:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
nested_inline_format_safe = hs_bindgen_6f311771e5e063e6
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_tagged_code_example@
foreign import ccall safe "hs_bindgen_34473a588f1157e4" hs_bindgen_34473a588f1157e4_base ::
    CInt
 -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_tagged_code_example@
hs_bindgen_34473a588f1157e4 :: CInt -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_tagged_code_example@
hs_bindgen_34473a588f1157e4 = \x_0 -> fmap fromFFIType (hs_bindgen_34473a588f1157e4_base (toFFIType x_0))
{-| Language-tagged code block.

    Example usage:

    @
    int result = tagged_code_example(42);
    printf("Result: %d\n", result);
    @

    [__@x@__]: Input value

    __Returns:__ Processed value

    __C declaration:__ @tagged_code_example@

    __defined at:__ @documentation\/doxygen_docs.h 559:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
tagged_code_example_safe :: CInt -> IO CInt
{-| Language-tagged code block.

    Example usage:

    @
    int result = tagged_code_example(42);
    printf("Result: %d\n", result);
    @

    [__@x@__]: Input value

    __Returns:__ Processed value

    __C declaration:__ @tagged_code_example@

    __defined at:__ @documentation\/doxygen_docs.h 559:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
tagged_code_example_safe = hs_bindgen_34473a588f1157e4
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_backslash_syntax@
foreign import ccall safe "hs_bindgen_471f4a3c2db31252" hs_bindgen_471f4a3c2db31252_base ::
    Ptr Void
 -> Ptr Void
 -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_backslash_syntax@
hs_bindgen_471f4a3c2db31252 :: PtrConst CChar ->
                               Ptr CChar -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Safe_backslash_syntax@
hs_bindgen_471f4a3c2db31252 = \x_0 -> \x_1 -> fmap fromFFIType (hs_bindgen_471f4a3c2db31252_base (toFFIType x_0) (toFFIType x_1))
{-| Function documented with backslash syntax.

    This function uses backslash commands instead of @ commands to verify both syntaxes are handled equivalently.

    [__@input@__]: The input string

    [__@output@__]: The output buffer

    __Returns:__ Number of bytes written

    __See:__ 'auto_brief_func'

    @since 2.0

    __C declaration:__ @backslash_syntax@

    __defined at:__ @documentation\/doxygen_docs.h 574:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
backslash_syntax_safe :: PtrConst CChar -> Ptr CChar -> IO CInt
{-| Function documented with backslash syntax.

    This function uses backslash commands instead of @ commands to verify both syntaxes are handled equivalently.

    [__@input@__]: The input string

    [__@output@__]: The output buffer

    __Returns:__ Number of bytes written

    __See:__ 'auto_brief_func'

    @since 2.0

    __C declaration:__ @backslash_syntax@

    __defined at:__ @documentation\/doxygen_docs.h 574:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
backslash_syntax_safe = hs_bindgen_471f4a3c2db31252
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_process_data@
foreign import ccall unsafe "hs_bindgen_e6085a910ba41ecb" hs_bindgen_e6085a910ba41ecb_base ::
    Ptr Void
 -> Ptr Void
 -> Ptr Void
 -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_process_data@
hs_bindgen_e6085a910ba41ecb :: PtrConst HsBindgen.Runtime.LibC.Word8 ->
                               Ptr HsBindgen.Runtime.LibC.Word8 ->
                               Ptr HsBindgen.Runtime.LibC.CSize -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_process_data@
hs_bindgen_e6085a910ba41ecb = \x_0 -> \x_1 -> \x_2 -> fmap fromFFIType (hs_bindgen_e6085a910ba41ecb_base (toFFIType x_0) (toFFIType x_1) (toFFIType x_2))
{-| Function with detailed parameter documentation.

    This function shows different parameter directions and types.

    [__@input_data@ /(input)/__]: Input data buffer

    [__@output_data@ /(output)/__]: Output data buffer

    [__@size@ /(input,output)/__]: Size of data, updated on return

    __Returns:__ Status code (0 = success, -1 = error)

    __C declaration:__ @process_data@

    __defined at:__ @documentation\/doxygen_docs.h 111:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
process_data_unsafe :: PtrConst HsBindgen.Runtime.LibC.Word8 ->
                       Ptr HsBindgen.Runtime.LibC.Word8 ->
                       Ptr HsBindgen.Runtime.LibC.CSize -> IO CInt
{-| Function with detailed parameter documentation.

    This function shows different parameter directions and types.

    [__@input_data@ /(input)/__]: Input data buffer

    [__@output_data@ /(output)/__]: Output data buffer

    [__@size@ /(input,output)/__]: Size of data, updated on return

    __Returns:__ Status code (0 = success, -1 = error)

    __C declaration:__ @process_data@

    __defined at:__ @documentation\/doxygen_docs.h 111:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
process_data_unsafe = hs_bindgen_e6085a910ba41ecb
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_process_file@
foreign import ccall unsafe "hs_bindgen_c27e893aea0b0a77" hs_bindgen_c27e893aea0b0a77_base ::
    Ptr Void
 -> IO CBool
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_process_file@
hs_bindgen_c27e893aea0b0a77 :: PtrConst CChar -> IO CBool
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_process_file@
hs_bindgen_c27e893aea0b0a77 = \x_0 -> fmap fromFFIType (hs_bindgen_c27e893aea0b0a77_base (toFFIType x_0))
{-| Function with inline commands and formatting.

    This function uses @inline@ @code@ formatting and __bold__ text. It also demonstrates /emphasized/ text.

    [__@filename@__]: The @char*@ filename to process

    __Returns:__ @true@ if successful, @false@ otherwise

    __C declaration:__ @process_file@

    __defined at:__ @documentation\/doxygen_docs.h 122:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
process_file_unsafe :: PtrConst CChar -> IO CBool
{-| Function with inline commands and formatting.

    This function uses @inline@ @code@ formatting and __bold__ text. It also demonstrates /emphasized/ text.

    [__@filename@__]: The @char*@ filename to process

    __Returns:__ @true@ if successful, @false@ otherwise

    __C declaration:__ @process_file@

    __defined at:__ @documentation\/doxygen_docs.h 122:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
process_file_unsafe = hs_bindgen_c27e893aea0b0a77
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_calculate_value@
foreign import ccall unsafe "hs_bindgen_bc1b0e25a72f4ec0" hs_bindgen_bc1b0e25a72f4ec0_base ::
    CInt
 -> CInt
 -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_calculate_value@
hs_bindgen_bc1b0e25a72f4ec0 :: CInt -> CInt -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_calculate_value@
hs_bindgen_bc1b0e25a72f4ec0 = \x_0 -> \x_1 -> fmap fromFFIType (hs_bindgen_bc1b0e25a72f4ec0_base (toFFIType x_0) (toFFIType x_1))
{-| Function with verbatim code blocks.

    Example usage:

    @
    int result = calculate_value(10, 20);
    printf("Result: %d\n", result);
    @

    [__@base@__]: Base value

    [__@multiplier@__]: Multiplier value

    __Returns:__ Calculated result

    __C declaration:__ @calculate_value@

    __defined at:__ @documentation\/doxygen_docs.h 137:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
calculate_value_unsafe :: CInt -> CInt -> IO CInt
{-| Function with verbatim code blocks.

    Example usage:

    @
    int result = calculate_value(10, 20);
    printf("Result: %d\n", result);
    @

    [__@base@__]: Base value

    [__@multiplier@__]: Multiplier value

    __Returns:__ Calculated result

    __C declaration:__ @calculate_value@

    __defined at:__ @documentation\/doxygen_docs.h 137:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
calculate_value_unsafe = hs_bindgen_bc1b0e25a72f4ec0
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_html_example@
foreign import ccall unsafe "hs_bindgen_09abc3cb74562964" hs_bindgen_09abc3cb74562964_base ::
    CInt
 -> IO CBool
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_html_example@
hs_bindgen_09abc3cb74562964 :: CInt -> IO CBool
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_html_example@
hs_bindgen_09abc3cb74562964 = \x_0 -> fmap fromFFIType (hs_bindgen_09abc3cb74562964_base (toFFIType x_0))
{-| Function with HTML formatting.

    This function demonstrates __HTML bold__ and /italic/ text. It also shows @HTML code@ formatting.

    Input

    Output

    0

    false

    1

    true

    [__@value@__]: Input value

    __Returns:__ Boolean result

    __C declaration:__ @html_example@

    __defined at:__ @documentation\/doxygen_docs.h 154:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
html_example_unsafe :: CInt -> IO CBool
{-| Function with HTML formatting.

    This function demonstrates __HTML bold__ and /italic/ text. It also shows @HTML code@ formatting.

    Input

    Output

    0

    false

    1

    true

    [__@value@__]: Input value

    __Returns:__ Boolean result

    __C declaration:__ @html_example@

    __defined at:__ @documentation\/doxygen_docs.h 154:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
html_example_unsafe = hs_bindgen_09abc3cb74562964
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_list_example@
foreign import ccall unsafe "hs_bindgen_47cba1a95d265f84" hs_bindgen_47cba1a95d265f84_base ::
    Ptr Void
 -> HsBindgen.Runtime.LibC.CSize
 -> IO CBool
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_list_example@
hs_bindgen_47cba1a95d265f84 :: Ptr (PtrConst CChar) ->
                               HsBindgen.Runtime.LibC.CSize -> IO CBool
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_list_example@
hs_bindgen_47cba1a95d265f84 = \x_0 -> \x_1 -> fmap fromFFIType (hs_bindgen_47cba1a95d265f84_base (toFFIType x_0) (toFFIType x_1))
{-| Function with lists and special formatting.

    This function demonstrates:

    * Bullet point lists
      * Nested list item 1
      * Nested list item 2

    * Multiple items

    * Nested formatting

    Numbered list:

    1. First @item@ 1. item

    2. Second __item__

    3. Third item

    Other numbered list:

    1. A

    2. B

    3. C

    [__@items@__]: Array of items

    [__@count@__]: Number of items

    __Returns:__ Success status

    __C declaration:__ @list_example@

    __defined at:__ @documentation\/doxygen_docs.h 180:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
list_example_unsafe :: Ptr (PtrConst CChar) ->
                       HsBindgen.Runtime.LibC.CSize -> IO CBool
{-| Function with lists and special formatting.

    This function demonstrates:

    * Bullet point lists
      * Nested list item 1
      * Nested list item 2

    * Multiple items

    * Nested formatting

    Numbered list:

    1. First @item@ 1. item

    2. Second __item__

    3. Third item

    Other numbered list:

    1. A

    2. B

    3. C

    [__@items@__]: Array of items

    [__@count@__]: Number of items

    __Returns:__ Success status

    __C declaration:__ @list_example@

    __defined at:__ @documentation\/doxygen_docs.h 180:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
list_example_unsafe = hs_bindgen_47cba1a95d265f84
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_dangerous_function@
foreign import ccall unsafe "hs_bindgen_e065fc013e4eccd6" hs_bindgen_e065fc013e4eccd6_base ::
    Ptr Void
 -> IO (Ptr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_dangerous_function@
hs_bindgen_e065fc013e4eccd6 :: Ptr Void -> IO (Ptr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_dangerous_function@
hs_bindgen_e065fc013e4eccd6 = \x_0 -> fmap fromFFIType (hs_bindgen_e065fc013e4eccd6_base (toFFIType x_0))
{-| Function with warnings and notes.

    __WARNING:__ This function may cause side effects

    __Note:__ Use with caution in multithreaded environments

    __See:__ related_function() for similar functionality

    [__@ptr@__]: Pointer to data

    __Returns:__ Modified pointer

    __C declaration:__ @dangerous_function@

    __defined at:__ @documentation\/doxygen_docs.h 192:7@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
dangerous_function_unsafe :: Ptr Void -> IO (Ptr Void)
{-| Function with warnings and notes.

    __WARNING:__ This function may cause side effects

    __Note:__ Use with caution in multithreaded environments

    __See:__ related_function() for similar functionality

    [__@ptr@__]: Pointer to data

    __Returns:__ Modified pointer

    __C declaration:__ @dangerous_function@

    __defined at:__ @documentation\/doxygen_docs.h 192:7@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
dangerous_function_unsafe = hs_bindgen_e065fc013e4eccd6
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_detailed_return_codes@
foreign import ccall unsafe "hs_bindgen_bc4f7e24b2ad4ace" hs_bindgen_bc4f7e24b2ad4ace_base ::
    Ptr Void
 -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_detailed_return_codes@
hs_bindgen_bc4f7e24b2ad4ace :: PtrConst CChar -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_detailed_return_codes@
hs_bindgen_bc4f7e24b2ad4ace = \x_0 -> fmap fromFFIType (hs_bindgen_bc4f7e24b2ad4ace_base (toFFIType x_0))
{-| Function with return value details.

    [__@input@__]: Input string

    [__@0@__]: Success

    [__@-1@__]: Invalid input

    [__@-2@__]: Memory allocation failed

    [__@-3@__]: Processing error

    __C declaration:__ @detailed_return_codes@

    __defined at:__ @documentation\/doxygen_docs.h 203:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
detailed_return_codes_unsafe :: PtrConst CChar -> IO CInt
{-| Function with return value details.

    [__@input@__]: Input string

    [__@0@__]: Success

    [__@-1@__]: Invalid input

    [__@-2@__]: Memory allocation failed

    [__@-3@__]: Processing error

    __C declaration:__ @detailed_return_codes@

    __defined at:__ @documentation\/doxygen_docs.h 203:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
detailed_return_codes_unsafe = hs_bindgen_bc4f7e24b2ad4ace
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_old_function@
foreign import ccall unsafe "hs_bindgen_8deec146389ae8b3" hs_bindgen_8deec146389ae8b3_base ::
    CInt
 -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_old_function@
hs_bindgen_8deec146389ae8b3 :: CInt -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_old_function@
hs_bindgen_8deec146389ae8b3 = \x_0 -> fmap fromFFIType (hs_bindgen_8deec146389ae8b3_base (toFFIType x_0))
{-| Function with deprecated annotation.

    __Deprecated:__ Use new_function() instead

    [__@old_param@__]: Legacy parameter

    __Returns:__ Legacy result

    __C declaration:__ @old_function@

    __defined at:__ @documentation\/doxygen_docs.h 212:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
old_function_unsafe :: CInt -> IO CInt
{-| Function with deprecated annotation.

    __Deprecated:__ Use new_function() instead

    [__@old_param@__]: Legacy parameter

    __Returns:__ Legacy result

    __C declaration:__ @old_function@

    __defined at:__ @documentation\/doxygen_docs.h 212:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
old_function_unsafe = hs_bindgen_8deec146389ae8b3
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_versioned_function@
foreign import ccall unsafe "hs_bindgen_da2dcc1473935665" hs_bindgen_da2dcc1473935665_base ::
    CInt
 -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_versioned_function@
hs_bindgen_da2dcc1473935665 :: CInt -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_versioned_function@
hs_bindgen_da2dcc1473935665 = \x_0 -> fmap fromFFIType (hs_bindgen_da2dcc1473935665_base (toFFIType x_0))
{-| Function with version information.

    @since 1.0

    __Version:__ 1.2

    [__@data@__]: Input data

    __Returns:__ Processed data

    __C declaration:__ @versioned_function@

    __defined at:__ @documentation\/doxygen_docs.h 222:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
versioned_function_unsafe :: CInt -> IO CInt
{-| Function with version information.

    @since 1.0

    __Version:__ 1.2

    [__@data@__]: Input data

    __Returns:__ Processed data

    __C declaration:__ @versioned_function@

    __defined at:__ @documentation\/doxygen_docs.h 222:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
versioned_function_unsafe = hs_bindgen_da2dcc1473935665
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_process_buffer@
foreign import ccall unsafe "hs_bindgen_97c1191917e6eece" hs_bindgen_97c1191917e6eece_base ::
    Ptr Void
 -> HsBindgen.Runtime.LibC.CSize
 -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_process_buffer@
hs_bindgen_97c1191917e6eece :: Ptr (Elem (ConstantArray 64
                                                        CChar)) ->
                               HsBindgen.Runtime.LibC.CSize -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_process_buffer@
hs_bindgen_97c1191917e6eece = \x_0 -> \x_1 -> fmap fromFFIType (hs_bindgen_97c1191917e6eece_base (toFFIType x_0) (toFFIType x_1))
{-| Static array parameter.

    [__@buffer@__]: Buffer with minimum size

    [__@size@__]: Actual buffer size

    __Returns:__ Number of bytes written

    __C declaration:__ @process_buffer@

    __defined at:__ @documentation\/doxygen_docs.h 338:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
process_buffer_unsafe :: Ptr (Elem (ConstantArray 64 CChar)) ->
                         HsBindgen.Runtime.LibC.CSize -> IO CInt
{-| Static array parameter.

    [__@buffer@__]: Buffer with minimum size

    [__@size@__]: Actual buffer size

    __Returns:__ Number of bytes written

    __C declaration:__ @process_buffer@

    __defined at:__ @documentation\/doxygen_docs.h 338:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
process_buffer_unsafe = hs_bindgen_97c1191917e6eece
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_my_memcpy@
foreign import ccall unsafe "hs_bindgen_58253bb560dc3eb3" hs_bindgen_58253bb560dc3eb3_base ::
    Ptr Void
 -> Ptr Void
 -> HsBindgen.Runtime.LibC.CSize
 -> IO (Ptr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_my_memcpy@
hs_bindgen_58253bb560dc3eb3 :: Ptr Void ->
                               PtrConst Void -> HsBindgen.Runtime.LibC.CSize -> IO (Ptr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_my_memcpy@
hs_bindgen_58253bb560dc3eb3 = \x_0 -> \x_1 -> \x_2 -> fmap fromFFIType (hs_bindgen_58253bb560dc3eb3_base (toFFIType x_0) (toFFIType x_1) (toFFIType x_2))
{-| Function with restrict pointers.

    [__@dest@__]: Destination buffer (restrict)

    [__@src@__]: Source buffer (restrict)

    [__@n@__]: Number of bytes

    __Returns:__ Destination pointer

    __C declaration:__ @my_memcpy@

    __defined at:__ @documentation\/doxygen_docs.h 348:7@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
my_memcpy_unsafe :: Ptr Void ->
                    PtrConst Void -> HsBindgen.Runtime.LibC.CSize -> IO (Ptr Void)
{-| Function with restrict pointers.

    [__@dest@__]: Destination buffer (restrict)

    [__@src@__]: Source buffer (restrict)

    [__@n@__]: Number of bytes

    __Returns:__ Destination pointer

    __C declaration:__ @my_memcpy@

    __defined at:__ @documentation\/doxygen_docs.h 348:7@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
my_memcpy_unsafe = hs_bindgen_58253bb560dc3eb3
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_double_value@
foreign import ccall unsafe "hs_bindgen_44dd19b16ee38e5b" hs_bindgen_44dd19b16ee38e5b_base ::
    CInt
 -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_double_value@
hs_bindgen_44dd19b16ee38e5b :: CInt -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_double_value@
hs_bindgen_44dd19b16ee38e5b = \x_0 -> fmap fromFFIType (hs_bindgen_44dd19b16ee38e5b_base (toFFIType x_0))
{-| Inline function.

    [__@x@__]: Input value

    __Returns:__ Doubled value

    __C declaration:__ @double_value@

    __defined at:__ @documentation\/doxygen_docs.h 356:19@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
double_value_unsafe :: CInt -> IO CInt
{-| Inline function.

    [__@x@__]: Input value

    __Returns:__ Doubled value

    __C declaration:__ @double_value@

    __defined at:__ @documentation\/doxygen_docs.h 356:19@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
double_value_unsafe = hs_bindgen_44dd19b16ee38e5b
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_read_chunk@
foreign import ccall unsafe "hs_bindgen_a7d2e6fe1e9b3164" hs_bindgen_a7d2e6fe1e9b3164_base ::
    CInt
 -> Ptr Void
 -> HsBindgen.Runtime.LibC.CSize
 -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_read_chunk@
hs_bindgen_a7d2e6fe1e9b3164 :: CInt ->
                               Ptr Void -> HsBindgen.Runtime.LibC.CSize -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_read_chunk@
hs_bindgen_a7d2e6fe1e9b3164 = \x_0 -> \x_1 -> \x_2 -> fmap fromFFIType (hs_bindgen_a7d2e6fe1e9b3164_base (toFFIType x_0) (toFFIType x_1) (toFFIType x_2))
{-| Read a chunk of bytes into the provided buffer.

    Demonstrates a section nested inside @functions@ .

    [__@fd@__]: File descriptor

    [__@buf@__]: Output buffer

    [__@count@__]: Number of bytes to read

    __Returns:__ Number of bytes read

    __C declaration:__ @read_chunk@

    __defined at:__ @documentation\/doxygen_docs.h 387:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
read_chunk_unsafe :: CInt ->
                     Ptr Void -> HsBindgen.Runtime.LibC.CSize -> IO CInt
{-| Read a chunk of bytes into the provided buffer.

    Demonstrates a section nested inside @functions@ .

    [__@fd@__]: File descriptor

    [__@buf@__]: Output buffer

    [__@count@__]: Number of bytes to read

    __Returns:__ Number of bytes read

    __C declaration:__ @read_chunk@

    __defined at:__ @documentation\/doxygen_docs.h 387:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
read_chunk_unsafe = hs_bindgen_a7d2e6fe1e9b3164
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_write_chunk@
foreign import ccall unsafe "hs_bindgen_59f0c5ef262c5f3b" hs_bindgen_59f0c5ef262c5f3b_base ::
    CInt
 -> Ptr Void
 -> HsBindgen.Runtime.LibC.CSize
 -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_write_chunk@
hs_bindgen_59f0c5ef262c5f3b :: CInt ->
                               PtrConst Void -> HsBindgen.Runtime.LibC.CSize -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_write_chunk@
hs_bindgen_59f0c5ef262c5f3b = \x_0 -> \x_1 -> \x_2 -> fmap fromFFIType (hs_bindgen_59f0c5ef262c5f3b_base (toFFIType x_0) (toFFIType x_1) (toFFIType x_2))
{-| Write a chunk of bytes from the provided buffer.

    [__@fd@__]: File descriptor

    [__@buf@__]: Input buffer

    [__@count@__]: Number of bytes to write

    __Returns:__ Number of bytes written

    __C declaration:__ @write_chunk@

    __defined at:__ @documentation\/doxygen_docs.h 397:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
write_chunk_unsafe :: CInt ->
                      PtrConst Void -> HsBindgen.Runtime.LibC.CSize -> IO CInt
{-| Write a chunk of bytes from the provided buffer.

    [__@fd@__]: File descriptor

    [__@buf@__]: Input buffer

    [__@count@__]: Number of bytes to write

    __Returns:__ Number of bytes written

    __C declaration:__ @write_chunk@

    __defined at:__ @documentation\/doxygen_docs.h 397:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
write_chunk_unsafe = hs_bindgen_59f0c5ef262c5f3b
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_complex_function@
foreign import ccall unsafe "hs_bindgen_fd6fce7c8d8b2f79" hs_bindgen_fd6fce7c8d8b2f79_base ::
    Ptr Void
 -> Ptr Void
 -> HsBindgen.Runtime.LibC.CSize
 -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_complex_function@
hs_bindgen_fd6fce7c8d8b2f79 :: Ptr Config_t ->
                               PtrConst HsBindgen.Runtime.LibC.Word8 ->
                               HsBindgen.Runtime.LibC.CSize -> IO Status_code_t
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_complex_function@
hs_bindgen_fd6fce7c8d8b2f79 = \x_0 -> \x_1 -> \x_2 -> fmap fromFFIType (hs_bindgen_fd6fce7c8d8b2f79_base (toFFIType x_0) (toFFIType x_1) (toFFIType x_2))
{-| Function with complex documentation.

    This function demonstrates multiple documentation features:

    __Description:__

    Performs complex data processing with multiple steps.

    __Algorithm:__

    1. Validate input parameters

    2. Allocate temporary buffers

    3. Process data in chunks

    4. Clean up resources

    __Algorithm2:__

    * Validate input parameters

    * Allocate temporary buffers

    * Process data in chunks

    * Clean up resources

    __Example:__

    @
    config_t cfg = {
        .id = 1,
        .name = "test",
        .flags = 0,
        .callback = my_callback,
        .user_data = NULL
    };

    status_code_t result = complex_function(&cfg, data, size);
    if (result != STATUS_OK) {
        handle_error(result);
    }
    @

    [__@config@__]: Configuration structure (see 'Config_t' )

    [__@data@__]: Input data buffer

    [__@size@__]: Size of input data

    __Returns:__ Status code indicating success or failure

    __Precondition:__ config must not be NULL

    __Precondition:__ data must not be NULL if size > 0

    __Postcondition:__ Output data is written to config->user_data

    __WARNING:__ May return NULL if memory allocation fails

    __WARNING:__ Sets errno to EINVAL if parameters are invalid

    __C declaration:__ @complex_function@

    __defined at:__ @documentation\/doxygen_docs.h 459:15@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
complex_function_unsafe :: Ptr Config_t ->
                           PtrConst HsBindgen.Runtime.LibC.Word8 ->
                           HsBindgen.Runtime.LibC.CSize -> IO Status_code_t
{-| Function with complex documentation.

    This function demonstrates multiple documentation features:

    __Description:__

    Performs complex data processing with multiple steps.

    __Algorithm:__

    1. Validate input parameters

    2. Allocate temporary buffers

    3. Process data in chunks

    4. Clean up resources

    __Algorithm2:__

    * Validate input parameters

    * Allocate temporary buffers

    * Process data in chunks

    * Clean up resources

    __Example:__

    @
    config_t cfg = {
        .id = 1,
        .name = "test",
        .flags = 0,
        .callback = my_callback,
        .user_data = NULL
    };

    status_code_t result = complex_function(&cfg, data, size);
    if (result != STATUS_OK) {
        handle_error(result);
    }
    @

    [__@config@__]: Configuration structure (see 'Config_t' )

    [__@data@__]: Input data buffer

    [__@size@__]: Size of input data

    __Returns:__ Status code indicating success or failure

    __Precondition:__ config must not be NULL

    __Precondition:__ data must not be NULL if size > 0

    __Postcondition:__ Output data is written to config->user_data

    __WARNING:__ May return NULL if memory allocation fails

    __WARNING:__ Sets errno to EINVAL if parameters are invalid

    __C declaration:__ @complex_function@

    __defined at:__ @documentation\/doxygen_docs.h 459:15@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
complex_function_unsafe = hs_bindgen_fd6fce7c8d8b2f79
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_hash@
foreign import ccall unsafe "hs_bindgen_dd36c8b317ccfcc4" hs_bindgen_dd36c8b317ccfcc4_base ::
    Ptr Void
 -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_hash@
hs_bindgen_dd36c8b317ccfcc4 :: Ptr CChar -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_hash@
hs_bindgen_dd36c8b317ccfcc4 = \x_0 -> fmap fromFFIType (hs_bindgen_dd36c8b317ccfcc4_base (toFFIType x_0))
{-|

    Marked @__attribute((pure))__@

    __C declaration:__ @hash@

    __defined at:__ @documentation\/doxygen_docs.h 463:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
hash_unsafe :: Ptr CChar -> IO CInt
{-|

    Marked @__attribute((pure))__@

    __C declaration:__ @hash@

    __defined at:__ @documentation\/doxygen_docs.h 463:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
hash_unsafe = hs_bindgen_dd36c8b317ccfcc4
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_square@
foreign import ccall unsafe "hs_bindgen_6875e30a7fe8d30a" hs_bindgen_6875e30a7fe8d30a_base ::
    CInt
 -> CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_square@
hs_bindgen_6875e30a7fe8d30a :: CInt -> CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_square@
hs_bindgen_6875e30a7fe8d30a = \x_0 -> fromFFIType (hs_bindgen_6875e30a7fe8d30a_base (toFFIType x_0))
{-|

    Marked @__attribute((const))__@

    __C declaration:__ @square@

    __defined at:__ @documentation\/doxygen_docs.h 465:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
square_unsafe :: CInt -> CInt
{-|

    Marked @__attribute((const))__@

    __C declaration:__ @square@

    __defined at:__ @documentation\/doxygen_docs.h 465:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
square_unsafe = hs_bindgen_6875e30a7fe8d30a
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_auto_brief_func@
foreign import ccall unsafe "hs_bindgen_3094fd32a3eedd49" hs_bindgen_3094fd32a3eedd49_base ::
    CInt
 -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_auto_brief_func@
hs_bindgen_3094fd32a3eedd49 :: CInt -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_auto_brief_func@
hs_bindgen_3094fd32a3eedd49 = \x_0 -> fmap fromFFIType (hs_bindgen_3094fd32a3eedd49_base (toFFIType x_0))
{-| Auto-brief function without explicit @brief tag.

    This tests that the first sentence is used as the brief description when no explicit @brief is present.

    [__@x@__]: The input value

    __Returns:__ The negated value

    __C declaration:__ @auto_brief_func@

    __defined at:__ @documentation\/doxygen_docs.h 486:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
auto_brief_func_unsafe :: CInt -> IO CInt
{-| Auto-brief function without explicit @brief tag.

    This tests that the first sentence is used as the brief description when no explicit @brief is present.

    [__@x@__]: The input value

    __Returns:__ The negated value

    __C declaration:__ @auto_brief_func@

    __defined at:__ @documentation\/doxygen_docs.h 486:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
auto_brief_func_unsafe = hs_bindgen_3094fd32a3eedd49
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_multi_paragraph_details@
foreign import ccall unsafe "hs_bindgen_73270d34a2bf31b5" hs_bindgen_73270d34a2bf31b5_base ::
    Ptr Void
 -> HsBindgen.Runtime.LibC.CSize
 -> IO ()
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_multi_paragraph_details@
hs_bindgen_73270d34a2bf31b5 :: Ptr CChar ->
                               HsBindgen.Runtime.LibC.CSize -> IO ()
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_multi_paragraph_details@
hs_bindgen_73270d34a2bf31b5 = \x_0 -> \x_1 -> hs_bindgen_73270d34a2bf31b5_base (toFFIType x_0) (toFFIType x_1)
{-| Multi-paragraph details.

    First paragraph of the detailed description. This explains the basic purpose of the function.

    Second paragraph with more context. This includes information about the algorithm and its complexity, which is O(n) in the input size.

    Third paragraph with usage notes. Callers should ensure that the buffer is large enough before calling this function.

    [__@buf@__]: Output buffer

    [__@len@__]: Buffer length

    __C declaration:__ @multi_paragraph_details@

    __defined at:__ @documentation\/doxygen_docs.h 503:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
multi_paragraph_details_unsafe :: Ptr CChar ->
                                  HsBindgen.Runtime.LibC.CSize -> IO ()
{-| Multi-paragraph details.

    First paragraph of the detailed description. This explains the basic purpose of the function.

    Second paragraph with more context. This includes information about the algorithm and its complexity, which is O(n) in the input size.

    Third paragraph with usage notes. Callers should ensure that the buffer is large enough before calling this function.

    [__@buf@__]: Output buffer

    [__@len@__]: Buffer length

    __C declaration:__ @multi_paragraph_details@

    __defined at:__ @documentation\/doxygen_docs.h 503:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
multi_paragraph_details_unsafe = hs_bindgen_73270d34a2bf31b5
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_todo_remark_attention@
foreign import ccall unsafe "hs_bindgen_836de64a94d7bf03" hs_bindgen_836de64a94d7bf03_base ::
    CInt
 -> IO (Ptr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_todo_remark_attention@
hs_bindgen_836de64a94d7bf03 :: CInt -> IO (Ptr CInt)
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_todo_remark_attention@
hs_bindgen_836de64a94d7bf03 = \x_0 -> fmap fromFFIType (hs_bindgen_836de64a94d7bf03_base (toFFIType x_0))
{-| Function with @todo and @remark.

    __Todo:__ Optimize this function for large inputs

    Add support for negative values

    __Remark:__ This function is thread-safe

    __ATTENTION:__ The caller must free the returned pointer

    [__@n@__]: Input count

    __Returns:__ Allocated array

    __C declaration:__ @todo_remark_attention@

    __defined at:__ @documentation\/doxygen_docs.h 516:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
todo_remark_attention_unsafe :: CInt -> IO (Ptr CInt)
{-| Function with @todo and @remark.

    __Todo:__ Optimize this function for large inputs

    Add support for negative values

    __Remark:__ This function is thread-safe

    __ATTENTION:__ The caller must free the returned pointer

    [__@n@__]: Input count

    __Returns:__ Allocated array

    __C declaration:__ @todo_remark_attention@

    __defined at:__ @documentation\/doxygen_docs.h 516:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
todo_remark_attention_unsafe = hs_bindgen_836de64a94d7bf03
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_html_entities_func@
foreign import ccall unsafe "hs_bindgen_aa0467b9d3b1a48d" hs_bindgen_aa0467b9d3b1a48d_base ::
    CInt
 -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_html_entities_func@
hs_bindgen_aa0467b9d3b1a48d :: CInt -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_html_entities_func@
hs_bindgen_aa0467b9d3b1a48d = \x_0 -> fmap fromFFIType (hs_bindgen_aa0467b9d3b1a48d_base (toFFIType x_0))
{-| HTML entities: & means AND, <tag> is a tag.

    Handles values < 0 and values > 100 differently. Copyright 2025.

    [__@x@__]: Input (> 0 required)

    __Returns:__ Result code

    __C declaration:__ @html_entities_func@

    __defined at:__ @documentation\/doxygen_docs.h 538:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
html_entities_func_unsafe :: CInt -> IO CInt
{-| HTML entities: & means AND, <tag> is a tag.

    Handles values < 0 and values > 100 differently. Copyright 2025.

    [__@x@__]: Input (> 0 required)

    __Returns:__ Result code

    __C declaration:__ @html_entities_func@

    __defined at:__ @documentation\/doxygen_docs.h 538:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
html_entities_func_unsafe = hs_bindgen_aa0467b9d3b1a48d
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_nested_inline_format@
foreign import ccall unsafe "hs_bindgen_b654d8047edfed77" hs_bindgen_b654d8047edfed77_base ::
    CInt
 -> IO ()
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_nested_inline_format@
hs_bindgen_b654d8047edfed77 :: CInt -> IO ()
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_nested_inline_format@
hs_bindgen_b654d8047edfed77 = \x_0 -> hs_bindgen_b654d8047edfed77_base (toFFIType x_0)
{-| Nested inline: __bold__ , @code@ , __@bold_code@ ,__ /__emph_bold__ ./

    [__@x@__]: Input value

    __C declaration:__ @nested_inline_format@

    __defined at:__ @documentation\/doxygen_docs.h 545:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
nested_inline_format_unsafe :: CInt -> IO ()
{-| Nested inline: __bold__ , @code@ , __@bold_code@ ,__ /__emph_bold__ ./

    [__@x@__]: Input value

    __C declaration:__ @nested_inline_format@

    __defined at:__ @documentation\/doxygen_docs.h 545:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
nested_inline_format_unsafe = hs_bindgen_b654d8047edfed77
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_tagged_code_example@
foreign import ccall unsafe "hs_bindgen_aeb274aded3470e5" hs_bindgen_aeb274aded3470e5_base ::
    CInt
 -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_tagged_code_example@
hs_bindgen_aeb274aded3470e5 :: CInt -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_tagged_code_example@
hs_bindgen_aeb274aded3470e5 = \x_0 -> fmap fromFFIType (hs_bindgen_aeb274aded3470e5_base (toFFIType x_0))
{-| Language-tagged code block.

    Example usage:

    @
    int result = tagged_code_example(42);
    printf("Result: %d\n", result);
    @

    [__@x@__]: Input value

    __Returns:__ Processed value

    __C declaration:__ @tagged_code_example@

    __defined at:__ @documentation\/doxygen_docs.h 559:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
tagged_code_example_unsafe :: CInt -> IO CInt
{-| Language-tagged code block.

    Example usage:

    @
    int result = tagged_code_example(42);
    printf("Result: %d\n", result);
    @

    [__@x@__]: Input value

    __Returns:__ Processed value

    __C declaration:__ @tagged_code_example@

    __defined at:__ @documentation\/doxygen_docs.h 559:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
tagged_code_example_unsafe = hs_bindgen_aeb274aded3470e5
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_backslash_syntax@
foreign import ccall unsafe "hs_bindgen_907720dffab9442a" hs_bindgen_907720dffab9442a_base ::
    Ptr Void
 -> Ptr Void
 -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_backslash_syntax@
hs_bindgen_907720dffab9442a :: PtrConst CChar ->
                               Ptr CChar -> IO CInt
-- __unique:__ @test_documentationdoxygen_docs_Example_Unsafe_backslash_syntax@
hs_bindgen_907720dffab9442a = \x_0 -> \x_1 -> fmap fromFFIType (hs_bindgen_907720dffab9442a_base (toFFIType x_0) (toFFIType x_1))
{-| Function documented with backslash syntax.

    This function uses backslash commands instead of @ commands to verify both syntaxes are handled equivalently.

    [__@input@__]: The input string

    [__@output@__]: The output buffer

    __Returns:__ Number of bytes written

    __See:__ 'auto_brief_func'

    @since 2.0

    __C declaration:__ @backslash_syntax@

    __defined at:__ @documentation\/doxygen_docs.h 574:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
backslash_syntax_unsafe :: PtrConst CChar -> Ptr CChar -> IO CInt
{-| Function documented with backslash syntax.

    This function uses backslash commands instead of @ commands to verify both syntaxes are handled equivalently.

    [__@input@__]: The input string

    [__@output@__]: The output buffer

    __Returns:__ Number of bytes written

    __See:__ 'auto_brief_func'

    @since 2.0

    __C declaration:__ @backslash_syntax@

    __defined at:__ @documentation\/doxygen_docs.h 574:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
backslash_syntax_unsafe = hs_bindgen_907720dffab9442a
-- __unique:__ @test_documentationdoxygen_docs_Example_get_process_data@
foreign import ccall unsafe "hs_bindgen_4a5cd66a4f26f8d5" hs_bindgen_4a5cd66a4f26f8d5_base ::
    IO (FunPtr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_get_process_data@
hs_bindgen_4a5cd66a4f26f8d5 :: IO (FunPtr (PtrConst HsBindgen.Runtime.LibC.Word8 ->
                                           Ptr HsBindgen.Runtime.LibC.Word8 ->
                                           Ptr HsBindgen.Runtime.LibC.CSize -> IO CInt))
-- __unique:__ @test_documentationdoxygen_docs_Example_get_process_data@
hs_bindgen_4a5cd66a4f26f8d5 = fmap fromFFIType hs_bindgen_4a5cd66a4f26f8d5_base
{-# NOINLINE process_data_funptr #-}
{-| Function with detailed parameter documentation.

    This function shows different parameter directions and types.

    [__@input_data@ /(input)/__]: Input data buffer

    [__@output_data@ /(output)/__]: Output data buffer

    [__@size@ /(input,output)/__]: Size of data, updated on return

    __Returns:__ Status code (0 = success, -1 = error)

    __C declaration:__ @process_data@

    __defined at:__ @documentation\/doxygen_docs.h 111:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
process_data_funptr :: FunPtr (PtrConst HsBindgen.Runtime.LibC.Word8 ->
                               Ptr HsBindgen.Runtime.LibC.Word8 ->
                               Ptr HsBindgen.Runtime.LibC.CSize -> IO CInt)
{-| Function with detailed parameter documentation.

    This function shows different parameter directions and types.

    [__@input_data@ /(input)/__]: Input data buffer

    [__@output_data@ /(output)/__]: Output data buffer

    [__@size@ /(input,output)/__]: Size of data, updated on return

    __Returns:__ Status code (0 = success, -1 = error)

    __C declaration:__ @process_data@

    __defined at:__ @documentation\/doxygen_docs.h 111:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
process_data_funptr = unsafePerformIO hs_bindgen_4a5cd66a4f26f8d5
-- __unique:__ @test_documentationdoxygen_docs_Example_get_process_file@
foreign import ccall unsafe "hs_bindgen_c8a059c65f18fea9" hs_bindgen_c8a059c65f18fea9_base ::
    IO (FunPtr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_get_process_file@
hs_bindgen_c8a059c65f18fea9 :: IO (FunPtr (PtrConst CChar ->
                                           IO CBool))
-- __unique:__ @test_documentationdoxygen_docs_Example_get_process_file@
hs_bindgen_c8a059c65f18fea9 = fmap fromFFIType hs_bindgen_c8a059c65f18fea9_base
{-# NOINLINE process_file_funptr #-}
{-| Function with inline commands and formatting.

    This function uses @inline@ @code@ formatting and __bold__ text. It also demonstrates /emphasized/ text.

    [__@filename@__]: The @char*@ filename to process

    __Returns:__ @true@ if successful, @false@ otherwise

    __C declaration:__ @process_file@

    __defined at:__ @documentation\/doxygen_docs.h 122:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
process_file_funptr :: FunPtr (PtrConst CChar -> IO CBool)
{-| Function with inline commands and formatting.

    This function uses @inline@ @code@ formatting and __bold__ text. It also demonstrates /emphasized/ text.

    [__@filename@__]: The @char*@ filename to process

    __Returns:__ @true@ if successful, @false@ otherwise

    __C declaration:__ @process_file@

    __defined at:__ @documentation\/doxygen_docs.h 122:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
process_file_funptr = unsafePerformIO hs_bindgen_c8a059c65f18fea9
-- __unique:__ @test_documentationdoxygen_docs_Example_get_calculate_value@
foreign import ccall unsafe "hs_bindgen_5ab7e06724867ab3" hs_bindgen_5ab7e06724867ab3_base ::
    IO (FunPtr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_get_calculate_value@
hs_bindgen_5ab7e06724867ab3 :: IO (FunPtr (CInt ->
                                           CInt -> IO CInt))
-- __unique:__ @test_documentationdoxygen_docs_Example_get_calculate_value@
hs_bindgen_5ab7e06724867ab3 = fmap fromFFIType hs_bindgen_5ab7e06724867ab3_base
{-# NOINLINE calculate_value_funptr #-}
{-| Function with verbatim code blocks.

    Example usage:

    @
    int result = calculate_value(10, 20);
    printf("Result: %d\n", result);
    @

    [__@base@__]: Base value

    [__@multiplier@__]: Multiplier value

    __Returns:__ Calculated result

    __C declaration:__ @calculate_value@

    __defined at:__ @documentation\/doxygen_docs.h 137:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
calculate_value_funptr :: FunPtr (CInt -> CInt -> IO CInt)
{-| Function with verbatim code blocks.

    Example usage:

    @
    int result = calculate_value(10, 20);
    printf("Result: %d\n", result);
    @

    [__@base@__]: Base value

    [__@multiplier@__]: Multiplier value

    __Returns:__ Calculated result

    __C declaration:__ @calculate_value@

    __defined at:__ @documentation\/doxygen_docs.h 137:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
calculate_value_funptr = unsafePerformIO hs_bindgen_5ab7e06724867ab3
-- __unique:__ @test_documentationdoxygen_docs_Example_get_html_example@
foreign import ccall unsafe "hs_bindgen_3f74fb834b0cd46b" hs_bindgen_3f74fb834b0cd46b_base ::
    IO (FunPtr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_get_html_example@
hs_bindgen_3f74fb834b0cd46b :: IO (FunPtr (CInt -> IO CBool))
-- __unique:__ @test_documentationdoxygen_docs_Example_get_html_example@
hs_bindgen_3f74fb834b0cd46b = fmap fromFFIType hs_bindgen_3f74fb834b0cd46b_base
{-# NOINLINE html_example_funptr #-}
{-| Function with HTML formatting.

    This function demonstrates __HTML bold__ and /italic/ text. It also shows @HTML code@ formatting.

    Input

    Output

    0

    false

    1

    true

    [__@value@__]: Input value

    __Returns:__ Boolean result

    __C declaration:__ @html_example@

    __defined at:__ @documentation\/doxygen_docs.h 154:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
html_example_funptr :: FunPtr (CInt -> IO CBool)
{-| Function with HTML formatting.

    This function demonstrates __HTML bold__ and /italic/ text. It also shows @HTML code@ formatting.

    Input

    Output

    0

    false

    1

    true

    [__@value@__]: Input value

    __Returns:__ Boolean result

    __C declaration:__ @html_example@

    __defined at:__ @documentation\/doxygen_docs.h 154:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
html_example_funptr = unsafePerformIO hs_bindgen_3f74fb834b0cd46b
-- __unique:__ @test_documentationdoxygen_docs_Example_get_list_example@
foreign import ccall unsafe "hs_bindgen_2175b3c627db39cf" hs_bindgen_2175b3c627db39cf_base ::
    IO (FunPtr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_get_list_example@
hs_bindgen_2175b3c627db39cf :: IO (FunPtr (Ptr (PtrConst CChar) ->
                                           HsBindgen.Runtime.LibC.CSize -> IO CBool))
-- __unique:__ @test_documentationdoxygen_docs_Example_get_list_example@
hs_bindgen_2175b3c627db39cf = fmap fromFFIType hs_bindgen_2175b3c627db39cf_base
{-# NOINLINE list_example_funptr #-}
{-| Function with lists and special formatting.

    This function demonstrates:

    * Bullet point lists
      * Nested list item 1
      * Nested list item 2

    * Multiple items

    * Nested formatting

    Numbered list:

    1. First @item@ 1. item

    2. Second __item__

    3. Third item

    Other numbered list:

    1. A

    2. B

    3. C

    [__@items@__]: Array of items

    [__@count@__]: Number of items

    __Returns:__ Success status

    __C declaration:__ @list_example@

    __defined at:__ @documentation\/doxygen_docs.h 180:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
list_example_funptr :: FunPtr (Ptr (PtrConst CChar) ->
                               HsBindgen.Runtime.LibC.CSize -> IO CBool)
{-| Function with lists and special formatting.

    This function demonstrates:

    * Bullet point lists
      * Nested list item 1
      * Nested list item 2

    * Multiple items

    * Nested formatting

    Numbered list:

    1. First @item@ 1. item

    2. Second __item__

    3. Third item

    Other numbered list:

    1. A

    2. B

    3. C

    [__@items@__]: Array of items

    [__@count@__]: Number of items

    __Returns:__ Success status

    __C declaration:__ @list_example@

    __defined at:__ @documentation\/doxygen_docs.h 180:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
list_example_funptr = unsafePerformIO hs_bindgen_2175b3c627db39cf
-- __unique:__ @test_documentationdoxygen_docs_Example_get_dangerous_function@
foreign import ccall unsafe "hs_bindgen_b7a4debd18827a19" hs_bindgen_b7a4debd18827a19_base ::
    IO (FunPtr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_get_dangerous_function@
hs_bindgen_b7a4debd18827a19 :: IO (FunPtr (Ptr Void ->
                                           IO (Ptr Void)))
-- __unique:__ @test_documentationdoxygen_docs_Example_get_dangerous_function@
hs_bindgen_b7a4debd18827a19 = fmap fromFFIType hs_bindgen_b7a4debd18827a19_base
{-# NOINLINE dangerous_function_funptr #-}
{-| Function with warnings and notes.

    __WARNING:__ This function may cause side effects

    __Note:__ Use with caution in multithreaded environments

    __See:__ related_function() for similar functionality

    [__@ptr@__]: Pointer to data

    __Returns:__ Modified pointer

    __C declaration:__ @dangerous_function@

    __defined at:__ @documentation\/doxygen_docs.h 192:7@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
dangerous_function_funptr :: FunPtr (Ptr Void -> IO (Ptr Void))
{-| Function with warnings and notes.

    __WARNING:__ This function may cause side effects

    __Note:__ Use with caution in multithreaded environments

    __See:__ related_function() for similar functionality

    [__@ptr@__]: Pointer to data

    __Returns:__ Modified pointer

    __C declaration:__ @dangerous_function@

    __defined at:__ @documentation\/doxygen_docs.h 192:7@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
dangerous_function_funptr = unsafePerformIO hs_bindgen_b7a4debd18827a19
-- __unique:__ @test_documentationdoxygen_docs_Example_get_detailed_return_codes@
foreign import ccall unsafe "hs_bindgen_9700b22f82eedafe" hs_bindgen_9700b22f82eedafe_base ::
    IO (FunPtr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_get_detailed_return_codes@
hs_bindgen_9700b22f82eedafe :: IO (FunPtr (PtrConst CChar ->
                                           IO CInt))
-- __unique:__ @test_documentationdoxygen_docs_Example_get_detailed_return_codes@
hs_bindgen_9700b22f82eedafe = fmap fromFFIType hs_bindgen_9700b22f82eedafe_base
{-# NOINLINE detailed_return_codes_funptr #-}
{-| Function with return value details.

    [__@input@__]: Input string

    [__@0@__]: Success

    [__@-1@__]: Invalid input

    [__@-2@__]: Memory allocation failed

    [__@-3@__]: Processing error

    __C declaration:__ @detailed_return_codes@

    __defined at:__ @documentation\/doxygen_docs.h 203:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
detailed_return_codes_funptr :: FunPtr (PtrConst CChar -> IO CInt)
{-| Function with return value details.

    [__@input@__]: Input string

    [__@0@__]: Success

    [__@-1@__]: Invalid input

    [__@-2@__]: Memory allocation failed

    [__@-3@__]: Processing error

    __C declaration:__ @detailed_return_codes@

    __defined at:__ @documentation\/doxygen_docs.h 203:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
detailed_return_codes_funptr = unsafePerformIO hs_bindgen_9700b22f82eedafe
-- __unique:__ @test_documentationdoxygen_docs_Example_get_old_function@
foreign import ccall unsafe "hs_bindgen_49e0d34a627c6c19" hs_bindgen_49e0d34a627c6c19_base ::
    IO (FunPtr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_get_old_function@
hs_bindgen_49e0d34a627c6c19 :: IO (FunPtr (CInt -> IO CInt))
-- __unique:__ @test_documentationdoxygen_docs_Example_get_old_function@
hs_bindgen_49e0d34a627c6c19 = fmap fromFFIType hs_bindgen_49e0d34a627c6c19_base
{-# NOINLINE old_function_funptr #-}
{-| Function with deprecated annotation.

    __Deprecated:__ Use new_function() instead

    [__@old_param@__]: Legacy parameter

    __Returns:__ Legacy result

    __C declaration:__ @old_function@

    __defined at:__ @documentation\/doxygen_docs.h 212:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
old_function_funptr :: FunPtr (CInt -> IO CInt)
{-| Function with deprecated annotation.

    __Deprecated:__ Use new_function() instead

    [__@old_param@__]: Legacy parameter

    __Returns:__ Legacy result

    __C declaration:__ @old_function@

    __defined at:__ @documentation\/doxygen_docs.h 212:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
old_function_funptr = unsafePerformIO hs_bindgen_49e0d34a627c6c19
-- __unique:__ @test_documentationdoxygen_docs_Example_get_versioned_function@
foreign import ccall unsafe "hs_bindgen_180cd7537e40ce99" hs_bindgen_180cd7537e40ce99_base ::
    IO (FunPtr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_get_versioned_function@
hs_bindgen_180cd7537e40ce99 :: IO (FunPtr (CInt -> IO CInt))
-- __unique:__ @test_documentationdoxygen_docs_Example_get_versioned_function@
hs_bindgen_180cd7537e40ce99 = fmap fromFFIType hs_bindgen_180cd7537e40ce99_base
{-# NOINLINE versioned_function_funptr #-}
{-| Function with version information.

    @since 1.0

    __Version:__ 1.2

    [__@data@__]: Input data

    __Returns:__ Processed data

    __C declaration:__ @versioned_function@

    __defined at:__ @documentation\/doxygen_docs.h 222:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
versioned_function_funptr :: FunPtr (CInt -> IO CInt)
{-| Function with version information.

    @since 1.0

    __Version:__ 1.2

    [__@data@__]: Input data

    __Returns:__ Processed data

    __C declaration:__ @versioned_function@

    __defined at:__ @documentation\/doxygen_docs.h 222:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
versioned_function_funptr = unsafePerformIO hs_bindgen_180cd7537e40ce99
-- __unique:__ @test_documentationdoxygen_docs_Example_get_process_buffer@
foreign import ccall unsafe "hs_bindgen_f4ccc6d90e8d3ebd" hs_bindgen_f4ccc6d90e8d3ebd_base ::
    IO (FunPtr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_get_process_buffer@
hs_bindgen_f4ccc6d90e8d3ebd :: IO (FunPtr (Ptr (Elem (ConstantArray 64
                                                                    CChar)) ->
                                           HsBindgen.Runtime.LibC.CSize -> IO CInt))
-- __unique:__ @test_documentationdoxygen_docs_Example_get_process_buffer@
hs_bindgen_f4ccc6d90e8d3ebd = fmap fromFFIType hs_bindgen_f4ccc6d90e8d3ebd_base
{-# NOINLINE process_buffer_funptr #-}
{-| Static array parameter.

    [__@buffer@__]: Buffer with minimum size

    [__@size@__]: Actual buffer size

    __Returns:__ Number of bytes written

    __C declaration:__ @process_buffer@

    __defined at:__ @documentation\/doxygen_docs.h 338:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
process_buffer_funptr :: FunPtr (Ptr (Elem (ConstantArray 64
                                                          CChar)) ->
                                 HsBindgen.Runtime.LibC.CSize -> IO CInt)
{-| Static array parameter.

    [__@buffer@__]: Buffer with minimum size

    [__@size@__]: Actual buffer size

    __Returns:__ Number of bytes written

    __C declaration:__ @process_buffer@

    __defined at:__ @documentation\/doxygen_docs.h 338:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
process_buffer_funptr = unsafePerformIO hs_bindgen_f4ccc6d90e8d3ebd
-- __unique:__ @test_documentationdoxygen_docs_Example_get_my_memcpy@
foreign import ccall unsafe "hs_bindgen_6a74d376c901b531" hs_bindgen_6a74d376c901b531_base ::
    IO (FunPtr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_get_my_memcpy@
hs_bindgen_6a74d376c901b531 :: IO (FunPtr (Ptr Void ->
                                           PtrConst Void ->
                                           HsBindgen.Runtime.LibC.CSize -> IO (Ptr Void)))
-- __unique:__ @test_documentationdoxygen_docs_Example_get_my_memcpy@
hs_bindgen_6a74d376c901b531 = fmap fromFFIType hs_bindgen_6a74d376c901b531_base
{-# NOINLINE my_memcpy_funptr #-}
{-| Function with restrict pointers.

    [__@dest@__]: Destination buffer (restrict)

    [__@src@__]: Source buffer (restrict)

    [__@n@__]: Number of bytes

    __Returns:__ Destination pointer

    __C declaration:__ @my_memcpy@

    __defined at:__ @documentation\/doxygen_docs.h 348:7@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
my_memcpy_funptr :: FunPtr (Ptr Void ->
                            PtrConst Void -> HsBindgen.Runtime.LibC.CSize -> IO (Ptr Void))
{-| Function with restrict pointers.

    [__@dest@__]: Destination buffer (restrict)

    [__@src@__]: Source buffer (restrict)

    [__@n@__]: Number of bytes

    __Returns:__ Destination pointer

    __C declaration:__ @my_memcpy@

    __defined at:__ @documentation\/doxygen_docs.h 348:7@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
my_memcpy_funptr = unsafePerformIO hs_bindgen_6a74d376c901b531
-- __unique:__ @test_documentationdoxygen_docs_Example_get_double_value@
foreign import ccall unsafe "hs_bindgen_156a92f3c5176105" hs_bindgen_156a92f3c5176105_base ::
    IO (FunPtr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_get_double_value@
hs_bindgen_156a92f3c5176105 :: IO (FunPtr (CInt -> IO CInt))
-- __unique:__ @test_documentationdoxygen_docs_Example_get_double_value@
hs_bindgen_156a92f3c5176105 = fmap fromFFIType hs_bindgen_156a92f3c5176105_base
{-# NOINLINE double_value_funptr #-}
{-| Inline function.

    [__@x@__]: Input value

    __Returns:__ Doubled value

    __C declaration:__ @double_value@

    __defined at:__ @documentation\/doxygen_docs.h 356:19@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
double_value_funptr :: FunPtr (CInt -> IO CInt)
{-| Inline function.

    [__@x@__]: Input value

    __Returns:__ Doubled value

    __C declaration:__ @double_value@

    __defined at:__ @documentation\/doxygen_docs.h 356:19@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
double_value_funptr = unsafePerformIO hs_bindgen_156a92f3c5176105
-- __unique:__ @test_documentationdoxygen_docs_Example_get_read_chunk@
foreign import ccall unsafe "hs_bindgen_373de63fa8345f66" hs_bindgen_373de63fa8345f66_base ::
    IO (FunPtr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_get_read_chunk@
hs_bindgen_373de63fa8345f66 :: IO (FunPtr (CInt ->
                                           Ptr Void -> HsBindgen.Runtime.LibC.CSize -> IO CInt))
-- __unique:__ @test_documentationdoxygen_docs_Example_get_read_chunk@
hs_bindgen_373de63fa8345f66 = fmap fromFFIType hs_bindgen_373de63fa8345f66_base
{-# NOINLINE read_chunk_funptr #-}
{-| Read a chunk of bytes into the provided buffer.

    Demonstrates a section nested inside @functions@ .

    [__@fd@__]: File descriptor

    [__@buf@__]: Output buffer

    [__@count@__]: Number of bytes to read

    __Returns:__ Number of bytes read

    __C declaration:__ @read_chunk@

    __defined at:__ @documentation\/doxygen_docs.h 387:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
read_chunk_funptr :: FunPtr (CInt ->
                             Ptr Void -> HsBindgen.Runtime.LibC.CSize -> IO CInt)
{-| Read a chunk of bytes into the provided buffer.

    Demonstrates a section nested inside @functions@ .

    [__@fd@__]: File descriptor

    [__@buf@__]: Output buffer

    [__@count@__]: Number of bytes to read

    __Returns:__ Number of bytes read

    __C declaration:__ @read_chunk@

    __defined at:__ @documentation\/doxygen_docs.h 387:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
read_chunk_funptr = unsafePerformIO hs_bindgen_373de63fa8345f66
-- __unique:__ @test_documentationdoxygen_docs_Example_get_write_chunk@
foreign import ccall unsafe "hs_bindgen_78a029fc9807a27f" hs_bindgen_78a029fc9807a27f_base ::
    IO (FunPtr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_get_write_chunk@
hs_bindgen_78a029fc9807a27f :: IO (FunPtr (CInt ->
                                           PtrConst Void ->
                                           HsBindgen.Runtime.LibC.CSize -> IO CInt))
-- __unique:__ @test_documentationdoxygen_docs_Example_get_write_chunk@
hs_bindgen_78a029fc9807a27f = fmap fromFFIType hs_bindgen_78a029fc9807a27f_base
{-# NOINLINE write_chunk_funptr #-}
{-| Write a chunk of bytes from the provided buffer.

    [__@fd@__]: File descriptor

    [__@buf@__]: Input buffer

    [__@count@__]: Number of bytes to write

    __Returns:__ Number of bytes written

    __C declaration:__ @write_chunk@

    __defined at:__ @documentation\/doxygen_docs.h 397:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
write_chunk_funptr :: FunPtr (CInt ->
                              PtrConst Void -> HsBindgen.Runtime.LibC.CSize -> IO CInt)
{-| Write a chunk of bytes from the provided buffer.

    [__@fd@__]: File descriptor

    [__@buf@__]: Input buffer

    [__@count@__]: Number of bytes to write

    __Returns:__ Number of bytes written

    __C declaration:__ @write_chunk@

    __defined at:__ @documentation\/doxygen_docs.h 397:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
write_chunk_funptr = unsafePerformIO hs_bindgen_78a029fc9807a27f
-- __unique:__ @test_documentationdoxygen_docs_Example_get_complex_function@
foreign import ccall unsafe "hs_bindgen_dfa39b6be50cb2ca" hs_bindgen_dfa39b6be50cb2ca_base ::
    IO (FunPtr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_get_complex_function@
hs_bindgen_dfa39b6be50cb2ca :: IO (FunPtr (Ptr Config_t ->
                                           PtrConst HsBindgen.Runtime.LibC.Word8 ->
                                           HsBindgen.Runtime.LibC.CSize -> IO Status_code_t))
-- __unique:__ @test_documentationdoxygen_docs_Example_get_complex_function@
hs_bindgen_dfa39b6be50cb2ca = fmap fromFFIType hs_bindgen_dfa39b6be50cb2ca_base
{-# NOINLINE complex_function_funptr #-}
{-| Function with complex documentation.

    This function demonstrates multiple documentation features:

    __Description:__

    Performs complex data processing with multiple steps.

    __Algorithm:__

    1. Validate input parameters

    2. Allocate temporary buffers

    3. Process data in chunks

    4. Clean up resources

    __Algorithm2:__

    * Validate input parameters

    * Allocate temporary buffers

    * Process data in chunks

    * Clean up resources

    __Example:__

    @
    config_t cfg = {
        .id = 1,
        .name = "test",
        .flags = 0,
        .callback = my_callback,
        .user_data = NULL
    };

    status_code_t result = complex_function(&cfg, data, size);
    if (result != STATUS_OK) {
        handle_error(result);
    }
    @

    [__@config@__]: Configuration structure (see 'Config_t' )

    [__@data@__]: Input data buffer

    [__@size@__]: Size of input data

    __Returns:__ Status code indicating success or failure

    __Precondition:__ config must not be NULL

    __Precondition:__ data must not be NULL if size > 0

    __Postcondition:__ Output data is written to config->user_data

    __WARNING:__ May return NULL if memory allocation fails

    __WARNING:__ Sets errno to EINVAL if parameters are invalid

    __C declaration:__ @complex_function@

    __defined at:__ @documentation\/doxygen_docs.h 459:15@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
complex_function_funptr :: FunPtr (Ptr Config_t ->
                                   PtrConst HsBindgen.Runtime.LibC.Word8 ->
                                   HsBindgen.Runtime.LibC.CSize -> IO Status_code_t)
{-| Function with complex documentation.

    This function demonstrates multiple documentation features:

    __Description:__

    Performs complex data processing with multiple steps.

    __Algorithm:__

    1. Validate input parameters

    2. Allocate temporary buffers

    3. Process data in chunks

    4. Clean up resources

    __Algorithm2:__

    * Validate input parameters

    * Allocate temporary buffers

    * Process data in chunks

    * Clean up resources

    __Example:__

    @
    config_t cfg = {
        .id = 1,
        .name = "test",
        .flags = 0,
        .callback = my_callback,
        .user_data = NULL
    };

    status_code_t result = complex_function(&cfg, data, size);
    if (result != STATUS_OK) {
        handle_error(result);
    }
    @

    [__@config@__]: Configuration structure (see 'Config_t' )

    [__@data@__]: Input data buffer

    [__@size@__]: Size of input data

    __Returns:__ Status code indicating success or failure

    __Precondition:__ config must not be NULL

    __Precondition:__ data must not be NULL if size > 0

    __Postcondition:__ Output data is written to config->user_data

    __WARNING:__ May return NULL if memory allocation fails

    __WARNING:__ Sets errno to EINVAL if parameters are invalid

    __C declaration:__ @complex_function@

    __defined at:__ @documentation\/doxygen_docs.h 459:15@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
complex_function_funptr = unsafePerformIO hs_bindgen_dfa39b6be50cb2ca
-- __unique:__ @test_documentationdoxygen_docs_Example_get_hash@
foreign import ccall unsafe "hs_bindgen_8ad88b79fd71f9d4" hs_bindgen_8ad88b79fd71f9d4_base ::
    IO (FunPtr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_get_hash@
hs_bindgen_8ad88b79fd71f9d4 :: IO (FunPtr (Ptr CChar -> IO CInt))
-- __unique:__ @test_documentationdoxygen_docs_Example_get_hash@
hs_bindgen_8ad88b79fd71f9d4 = fmap fromFFIType hs_bindgen_8ad88b79fd71f9d4_base
{-# NOINLINE hash_funptr #-}
{-| __C declaration:__ @hash@

    __defined at:__ @documentation\/doxygen_docs.h 463:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
hash_funptr :: FunPtr (Ptr CChar -> IO CInt)
{-| __C declaration:__ @hash@

    __defined at:__ @documentation\/doxygen_docs.h 463:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
hash_funptr = unsafePerformIO hs_bindgen_8ad88b79fd71f9d4
-- __unique:__ @test_documentationdoxygen_docs_Example_get_square@
foreign import ccall unsafe "hs_bindgen_7ede0f7ec1b30650" hs_bindgen_7ede0f7ec1b30650_base ::
    IO (FunPtr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_get_square@
hs_bindgen_7ede0f7ec1b30650 :: IO (FunPtr (CInt -> IO CInt))
-- __unique:__ @test_documentationdoxygen_docs_Example_get_square@
hs_bindgen_7ede0f7ec1b30650 = fmap fromFFIType hs_bindgen_7ede0f7ec1b30650_base
{-# NOINLINE square_funptr #-}
{-| __C declaration:__ @square@

    __defined at:__ @documentation\/doxygen_docs.h 465:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
square_funptr :: FunPtr (CInt -> IO CInt)
{-| __C declaration:__ @square@

    __defined at:__ @documentation\/doxygen_docs.h 465:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
square_funptr = unsafePerformIO hs_bindgen_7ede0f7ec1b30650
-- __unique:__ @test_documentationdoxygen_docs_Example_get_auto_brief_func@
foreign import ccall unsafe "hs_bindgen_11a28326d5a28a43" hs_bindgen_11a28326d5a28a43_base ::
    IO (FunPtr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_get_auto_brief_func@
hs_bindgen_11a28326d5a28a43 :: IO (FunPtr (CInt -> IO CInt))
-- __unique:__ @test_documentationdoxygen_docs_Example_get_auto_brief_func@
hs_bindgen_11a28326d5a28a43 = fmap fromFFIType hs_bindgen_11a28326d5a28a43_base
{-# NOINLINE auto_brief_func_funptr #-}
{-| Auto-brief function without explicit @brief tag.

    This tests that the first sentence is used as the brief description when no explicit @brief is present.

    [__@x@__]: The input value

    __Returns:__ The negated value

    __C declaration:__ @auto_brief_func@

    __defined at:__ @documentation\/doxygen_docs.h 486:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
auto_brief_func_funptr :: FunPtr (CInt -> IO CInt)
{-| Auto-brief function without explicit @brief tag.

    This tests that the first sentence is used as the brief description when no explicit @brief is present.

    [__@x@__]: The input value

    __Returns:__ The negated value

    __C declaration:__ @auto_brief_func@

    __defined at:__ @documentation\/doxygen_docs.h 486:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
auto_brief_func_funptr = unsafePerformIO hs_bindgen_11a28326d5a28a43
-- __unique:__ @test_documentationdoxygen_docs_Example_get_multi_paragraph_details@
foreign import ccall unsafe "hs_bindgen_05c7a7832fb84e2e" hs_bindgen_05c7a7832fb84e2e_base ::
    IO (FunPtr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_get_multi_paragraph_details@
hs_bindgen_05c7a7832fb84e2e :: IO (FunPtr (Ptr CChar ->
                                           HsBindgen.Runtime.LibC.CSize -> IO ()))
-- __unique:__ @test_documentationdoxygen_docs_Example_get_multi_paragraph_details@
hs_bindgen_05c7a7832fb84e2e = fmap fromFFIType hs_bindgen_05c7a7832fb84e2e_base
{-# NOINLINE multi_paragraph_details_funptr #-}
{-| Multi-paragraph details.

    First paragraph of the detailed description. This explains the basic purpose of the function.

    Second paragraph with more context. This includes information about the algorithm and its complexity, which is O(n) in the input size.

    Third paragraph with usage notes. Callers should ensure that the buffer is large enough before calling this function.

    [__@buf@__]: Output buffer

    [__@len@__]: Buffer length

    __C declaration:__ @multi_paragraph_details@

    __defined at:__ @documentation\/doxygen_docs.h 503:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
multi_paragraph_details_funptr :: FunPtr (Ptr CChar ->
                                          HsBindgen.Runtime.LibC.CSize -> IO ())
{-| Multi-paragraph details.

    First paragraph of the detailed description. This explains the basic purpose of the function.

    Second paragraph with more context. This includes information about the algorithm and its complexity, which is O(n) in the input size.

    Third paragraph with usage notes. Callers should ensure that the buffer is large enough before calling this function.

    [__@buf@__]: Output buffer

    [__@len@__]: Buffer length

    __C declaration:__ @multi_paragraph_details@

    __defined at:__ @documentation\/doxygen_docs.h 503:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
multi_paragraph_details_funptr = unsafePerformIO hs_bindgen_05c7a7832fb84e2e
-- __unique:__ @test_documentationdoxygen_docs_Example_get_todo_remark_attention@
foreign import ccall unsafe "hs_bindgen_092b9697f2154ac5" hs_bindgen_092b9697f2154ac5_base ::
    IO (FunPtr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_get_todo_remark_attention@
hs_bindgen_092b9697f2154ac5 :: IO (FunPtr (CInt -> IO (Ptr CInt)))
-- __unique:__ @test_documentationdoxygen_docs_Example_get_todo_remark_attention@
hs_bindgen_092b9697f2154ac5 = fmap fromFFIType hs_bindgen_092b9697f2154ac5_base
{-# NOINLINE todo_remark_attention_funptr #-}
{-| Function with @todo and @remark.

    __Todo:__ Optimize this function for large inputs

    Add support for negative values

    __Remark:__ This function is thread-safe

    __ATTENTION:__ The caller must free the returned pointer

    [__@n@__]: Input count

    __Returns:__ Allocated array

    __C declaration:__ @todo_remark_attention@

    __defined at:__ @documentation\/doxygen_docs.h 516:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
todo_remark_attention_funptr :: FunPtr (CInt -> IO (Ptr CInt))
{-| Function with @todo and @remark.

    __Todo:__ Optimize this function for large inputs

    Add support for negative values

    __Remark:__ This function is thread-safe

    __ATTENTION:__ The caller must free the returned pointer

    [__@n@__]: Input count

    __Returns:__ Allocated array

    __C declaration:__ @todo_remark_attention@

    __defined at:__ @documentation\/doxygen_docs.h 516:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
todo_remark_attention_funptr = unsafePerformIO hs_bindgen_092b9697f2154ac5
-- __unique:__ @test_documentationdoxygen_docs_Example_get_html_entities_func@
foreign import ccall unsafe "hs_bindgen_2e8b5e895e58fc3d" hs_bindgen_2e8b5e895e58fc3d_base ::
    IO (FunPtr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_get_html_entities_func@
hs_bindgen_2e8b5e895e58fc3d :: IO (FunPtr (CInt -> IO CInt))
-- __unique:__ @test_documentationdoxygen_docs_Example_get_html_entities_func@
hs_bindgen_2e8b5e895e58fc3d = fmap fromFFIType hs_bindgen_2e8b5e895e58fc3d_base
{-# NOINLINE html_entities_func_funptr #-}
{-| HTML entities: & means AND, <tag> is a tag.

    Handles values < 0 and values > 100 differently. Copyright 2025.

    [__@x@__]: Input (> 0 required)

    __Returns:__ Result code

    __C declaration:__ @html_entities_func@

    __defined at:__ @documentation\/doxygen_docs.h 538:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
html_entities_func_funptr :: FunPtr (CInt -> IO CInt)
{-| HTML entities: & means AND, <tag> is a tag.

    Handles values < 0 and values > 100 differently. Copyright 2025.

    [__@x@__]: Input (> 0 required)

    __Returns:__ Result code

    __C declaration:__ @html_entities_func@

    __defined at:__ @documentation\/doxygen_docs.h 538:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
html_entities_func_funptr = unsafePerformIO hs_bindgen_2e8b5e895e58fc3d
-- __unique:__ @test_documentationdoxygen_docs_Example_get_nested_inline_format@
foreign import ccall unsafe "hs_bindgen_db292926f05c7b36" hs_bindgen_db292926f05c7b36_base ::
    IO (FunPtr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_get_nested_inline_format@
hs_bindgen_db292926f05c7b36 :: IO (FunPtr (CInt -> IO ()))
-- __unique:__ @test_documentationdoxygen_docs_Example_get_nested_inline_format@
hs_bindgen_db292926f05c7b36 = fmap fromFFIType hs_bindgen_db292926f05c7b36_base
{-# NOINLINE nested_inline_format_funptr #-}
{-| Nested inline: __bold__ , @code@ , __@bold_code@ ,__ /__emph_bold__ ./

    [__@x@__]: Input value

    __C declaration:__ @nested_inline_format@

    __defined at:__ @documentation\/doxygen_docs.h 545:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
nested_inline_format_funptr :: FunPtr (CInt -> IO ())
{-| Nested inline: __bold__ , @code@ , __@bold_code@ ,__ /__emph_bold__ ./

    [__@x@__]: Input value

    __C declaration:__ @nested_inline_format@

    __defined at:__ @documentation\/doxygen_docs.h 545:6@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
nested_inline_format_funptr = unsafePerformIO hs_bindgen_db292926f05c7b36
-- __unique:__ @test_documentationdoxygen_docs_Example_get_tagged_code_example@
foreign import ccall unsafe "hs_bindgen_492a4fd860afb02a" hs_bindgen_492a4fd860afb02a_base ::
    IO (FunPtr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_get_tagged_code_example@
hs_bindgen_492a4fd860afb02a :: IO (FunPtr (CInt -> IO CInt))
-- __unique:__ @test_documentationdoxygen_docs_Example_get_tagged_code_example@
hs_bindgen_492a4fd860afb02a = fmap fromFFIType hs_bindgen_492a4fd860afb02a_base
{-# NOINLINE tagged_code_example_funptr #-}
{-| Language-tagged code block.

    Example usage:

    @
    int result = tagged_code_example(42);
    printf("Result: %d\n", result);
    @

    [__@x@__]: Input value

    __Returns:__ Processed value

    __C declaration:__ @tagged_code_example@

    __defined at:__ @documentation\/doxygen_docs.h 559:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
tagged_code_example_funptr :: FunPtr (CInt -> IO CInt)
{-| Language-tagged code block.

    Example usage:

    @
    int result = tagged_code_example(42);
    printf("Result: %d\n", result);
    @

    [__@x@__]: Input value

    __Returns:__ Processed value

    __C declaration:__ @tagged_code_example@

    __defined at:__ @documentation\/doxygen_docs.h 559:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
tagged_code_example_funptr = unsafePerformIO hs_bindgen_492a4fd860afb02a
-- __unique:__ @test_documentationdoxygen_docs_Example_get_backslash_syntax@
foreign import ccall unsafe "hs_bindgen_9ef09ad63fac68e2" hs_bindgen_9ef09ad63fac68e2_base ::
    IO (FunPtr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_get_backslash_syntax@
hs_bindgen_9ef09ad63fac68e2 :: IO (FunPtr (PtrConst CChar ->
                                           Ptr CChar -> IO CInt))
-- __unique:__ @test_documentationdoxygen_docs_Example_get_backslash_syntax@
hs_bindgen_9ef09ad63fac68e2 = fmap fromFFIType hs_bindgen_9ef09ad63fac68e2_base
{-# NOINLINE backslash_syntax_funptr #-}
{-| Function documented with backslash syntax.

    This function uses backslash commands instead of @ commands to verify both syntaxes are handled equivalently.

    [__@input@__]: The input string

    [__@output@__]: The output buffer

    __Returns:__ Number of bytes written

    __See:__ 'auto_brief_func'

    @since 2.0

    __C declaration:__ @backslash_syntax@

    __defined at:__ @documentation\/doxygen_docs.h 574:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
backslash_syntax_funptr :: FunPtr (PtrConst CChar ->
                                   Ptr CChar -> IO CInt)
{-| Function documented with backslash syntax.

    This function uses backslash commands instead of @ commands to verify both syntaxes are handled equivalently.

    [__@input@__]: The input string

    [__@output@__]: The output buffer

    __Returns:__ Number of bytes written

    __See:__ 'auto_brief_func'

    @since 2.0

    __C declaration:__ @backslash_syntax@

    __defined at:__ @documentation\/doxygen_docs.h 574:5@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
backslash_syntax_funptr = unsafePerformIO hs_bindgen_9ef09ad63fac68e2
-- __unique:__ @test_documentationdoxygen_docs_Example_get_global_counter@
foreign import ccall unsafe "hs_bindgen_f9dede86496f59c9" hs_bindgen_f9dede86496f59c9_base ::
    IO (Ptr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_get_global_counter@
hs_bindgen_f9dede86496f59c9 :: IO (Ptr CInt)
-- __unique:__ @test_documentationdoxygen_docs_Example_get_global_counter@
hs_bindgen_f9dede86496f59c9 = fmap fromFFIType hs_bindgen_f9dede86496f59c9_base
{-# NOINLINE global_counter #-}
{-| Global counter variable.

    This variable tracks the number of operations performed.

    __C declaration:__ @global_counter@

    __defined at:__ @documentation\/doxygen_docs.h 63:12@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
global_counter :: Ptr CInt
{-| Global counter variable.

    This variable tracks the number of operations performed.

    __C declaration:__ @global_counter@

    __defined at:__ @documentation\/doxygen_docs.h 63:12@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
global_counter = unsafePerformIO hs_bindgen_f9dede86496f59c9
-- __unique:__ @test_documentationdoxygen_docs_Example_get_version_string@
foreign import ccall unsafe "hs_bindgen_a294be08386c9257" hs_bindgen_a294be08386c9257_base ::
    IO (Ptr Void)
-- __unique:__ @test_documentationdoxygen_docs_Example_get_version_string@
hs_bindgen_a294be08386c9257 :: IO (Ptr (PtrConst CChar))
-- __unique:__ @test_documentationdoxygen_docs_Example_get_version_string@
hs_bindgen_a294be08386c9257 = fmap fromFFIType hs_bindgen_a294be08386c9257_base
{-# NOINLINE version_string #-}
{-| Version string constant.

    __C declaration:__ @version_string@

    __defined at:__ @documentation\/doxygen_docs.h 69:20@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
version_string :: Ptr (PtrConst CChar)
{-| Version string constant.

    __C declaration:__ @version_string@

    __defined at:__ @documentation\/doxygen_docs.h 69:20@

    __exported by:__ @documentation\/doxygen_docs.h@
-}
version_string = unsafePerformIO hs_bindgen_a294be08386c9257