Skip to content

Commit

Permalink
cleanup: Remove Tox_System stuff for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphydf committed Mar 18, 2024
1 parent b4a3f2a commit 32e94b1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/FFI/Tox/Tox.hs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ instance MessagePack LogLevel
instance Arbitrary LogLevel where arbitrary = arbitraryBoundedEnum
type LogCb = ToxPtr -> CEnum LogLevel -> CString -> Word32 -> CString -> CString -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapLogCb :: LogCb -> IO (FunPtr LogCb)
data SystemStruct
type SystemPtr = Ptr SystemStruct
data OptionsStruct
type OptionsPtr = Ptr OptionsStruct
foreign import ccall tox_options_get_ipv6_enabled :: OptionsPtr -> IO Bool
Expand Down Expand Up @@ -109,8 +107,6 @@ foreign import ccall tox_options_get_log_user_data :: OptionsPtr -> IO (Ptr ())
foreign import ccall tox_options_set_log_user_data :: OptionsPtr -> Ptr () -> IO ()
foreign import ccall tox_options_get_experimental_thread_safety :: OptionsPtr -> IO Bool
foreign import ccall tox_options_set_experimental_thread_safety :: OptionsPtr -> Bool -> IO ()
foreign import ccall tox_options_get_operating_system :: OptionsPtr -> IO SystemPtr
foreign import ccall tox_options_set_operating_system :: OptionsPtr -> SystemPtr -> IO ()
foreign import ccall tox_options_default :: OptionsPtr -> IO ()
data ErrOptionsNew
= ErrOptionsNewMalloc
Expand All @@ -134,7 +130,6 @@ instance MessagePack ErrNew
instance Arbitrary ErrNew where arbitrary = arbitraryBoundedEnum
foreign import ccall tox_new :: OptionsPtr -> CErr ErrNew -> IO ToxPtr
foreign import ccall tox_kill :: ToxPtr -> IO ()
foreign import ccall tox_get_system :: ToxPtr -> IO SystemPtr
foreign import ccall tox_get_savedata_size :: ToxPtr -> IO CSize
foreign import ccall tox_get_savedata :: ToxPtr -> CString -> IO ()
data ErrBootstrap
Expand Down

0 comments on commit 32e94b1

Please sign in to comment.