Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data UserStatus Source #
Instances
data MessageType Source #
Instances
Instances
data SavedataType Source #
Instances
Instances
Bounded LogLevel Source # | |
Enum LogLevel Source # | |
Eq LogLevel Source # | |
Ord LogLevel Source # | |
Defined in FFI.Tox.Tox | |
Read LogLevel Source # | |
Show LogLevel Source # | |
Generic LogLevel Source # | |
Arbitrary LogLevel Source # | |
MessagePack LogLevel Source # | |
Defined in FFI.Tox.Tox toObject :: Config -> LogLevel -> Object # fromObjectWith :: (Applicative m, Monad m, MonadValidate DecodeError m) => Config -> Object -> m LogLevel # | |
type Rep LogLevel Source # | |
Defined in FFI.Tox.Tox type Rep LogLevel = D1 ('MetaData "LogLevel" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) ((C1 ('MetaCons "LogLevelTrace" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LogLevelDebug" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "LogLevelInfo" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LogLevelWarning" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LogLevelError" 'PrefixI 'False) (U1 :: Type -> Type)))) |
type LogCb = ToxPtr -> CEnum LogLevel -> CString -> Word32 -> CString -> CString -> Ptr () -> IO () Source #
data OptionsStruct Source #
type OptionsPtr = Ptr OptionsStruct Source #
tox_options_set_ipv6_enabled :: OptionsPtr -> Bool -> IO () Source #
tox_options_set_udp_enabled :: OptionsPtr -> Bool -> IO () Source #
tox_options_set_local_discovery_enabled :: OptionsPtr -> Bool -> IO () Source #
tox_options_set_dht_announcements_enabled :: OptionsPtr -> Bool -> IO () Source #
tox_options_set_proxy_type :: OptionsPtr -> CEnum ProxyType -> IO () Source #
tox_options_set_proxy_host :: OptionsPtr -> CString -> IO () Source #
tox_options_set_proxy_port :: OptionsPtr -> Word16 -> IO () Source #
tox_options_set_start_port :: OptionsPtr -> Word16 -> IO () Source #
tox_options_set_end_port :: OptionsPtr -> Word16 -> IO () Source #
tox_options_set_tcp_port :: OptionsPtr -> Word16 -> IO () Source #
tox_options_set_hole_punching_enabled :: OptionsPtr -> Bool -> IO () Source #
tox_options_set_savedata_type :: OptionsPtr -> CEnum SavedataType -> IO () Source #
tox_options_set_savedata_data :: OptionsPtr -> CString -> CSize -> IO () Source #
tox_options_set_savedata_length :: OptionsPtr -> CSize -> IO () Source #
tox_options_set_log_callback :: OptionsPtr -> FunPtr LogCb -> IO () Source #
tox_options_get_log_user_data :: OptionsPtr -> IO (Ptr ()) Source #
tox_options_set_log_user_data :: OptionsPtr -> Ptr () -> IO () Source #
tox_options_set_experimental_thread_safety :: OptionsPtr -> Bool -> IO () Source #
tox_options_default :: OptionsPtr -> IO () Source #
data ErrOptionsNew Source #
Instances
tox_options_free :: OptionsPtr -> IO () Source #
ErrNewNull | |
ErrNewMalloc | |
ErrNewPortAlloc | |
ErrNewProxyBadType | |
ErrNewProxyBadHost | |
ErrNewProxyBadPort | |
ErrNewProxyNotFound | |
ErrNewLoadEncrypted | |
ErrNewLoadBadFormat |
Instances
data ErrBootstrap Source #
Instances
tox_add_tcp_relay :: ToxPtr -> CString -> Word16 -> CString -> CErr ErrBootstrap -> IO Bool Source #
data Connection Source #
Instances
type SelfConnectionStatusCb = ToxPtr -> CEnum Connection -> Ptr () -> IO () Source #
data ErrSetInfo Source #
Instances
tox_self_set_name :: ToxPtr -> CString -> CSize -> CErr ErrSetInfo -> IO Bool Source #
tox_self_set_status_message :: ToxPtr -> CString -> CSize -> CErr ErrSetInfo -> IO Bool Source #
tox_self_set_status :: ToxPtr -> CEnum UserStatus -> IO () Source #
tox_self_get_status :: ToxPtr -> IO (CEnum UserStatus) Source #
data ErrFriendAdd Source #
ErrFriendAddNull | |
ErrFriendAddTooLong | |
ErrFriendAddNoMessage | |
ErrFriendAddOwnKey | |
ErrFriendAddAlreadySent | |
ErrFriendAddBadChecksum | |
ErrFriendAddSetNewNospam | |
ErrFriendAddMalloc |
Instances
tox_friend_add_norequest :: ToxPtr -> CString -> CErr ErrFriendAdd -> IO Word32 Source #
data ErrFriendDelete Source #
Instances
tox_friend_delete :: ToxPtr -> Word32 -> CErr ErrFriendDelete -> IO Bool Source #
data ErrFriendByPublicKey Source #
Instances
tox_friend_by_public_key :: ToxPtr -> CString -> CErr ErrFriendByPublicKey -> IO Word32 Source #
data ErrFriendGetPublicKey Source #
Instances
tox_friend_get_public_key :: ToxPtr -> Word32 -> CString -> CErr ErrFriendGetPublicKey -> IO Bool Source #
data ErrFriendGetLastOnline Source #
Instances
tox_friend_get_last_online :: ToxPtr -> Word32 -> CErr ErrFriendGetLastOnline -> IO Word64 Source #
data ErrFriendQuery Source #
Instances
tox_friend_get_name_size :: ToxPtr -> Word32 -> CErr ErrFriendQuery -> IO CSize Source #
tox_friend_get_name :: ToxPtr -> Word32 -> CString -> CErr ErrFriendQuery -> IO Bool Source #
wrapFriendNameCb :: FriendNameCb -> IO (FunPtr FriendNameCb) Source #
tox_callback_friend_name :: ToxPtr -> FunPtr FriendNameCb -> IO () Source #
tox_friend_get_status_message_size :: ToxPtr -> Word32 -> CErr ErrFriendQuery -> IO CSize Source #
tox_friend_get_status_message :: ToxPtr -> Word32 -> CString -> CErr ErrFriendQuery -> IO Bool Source #
tox_friend_get_status :: ToxPtr -> Word32 -> CErr ErrFriendQuery -> IO (CEnum UserStatus) Source #
type FriendStatusCb = ToxPtr -> Word32 -> CEnum UserStatus -> Ptr () -> IO () Source #
tox_callback_friend_status :: ToxPtr -> FunPtr FriendStatusCb -> IO () Source #
tox_friend_get_connection_status :: ToxPtr -> Word32 -> CErr ErrFriendQuery -> IO (CEnum Connection) Source #
type FriendConnectionStatusCb = ToxPtr -> Word32 -> CEnum Connection -> Ptr () -> IO () Source #
wrapFriendConnectionStatusCb :: FriendConnectionStatusCb -> IO (FunPtr FriendConnectionStatusCb) Source #
tox_callback_friend_connection_status :: ToxPtr -> FunPtr FriendConnectionStatusCb -> IO () Source #
tox_friend_get_typing :: ToxPtr -> Word32 -> CErr ErrFriendQuery -> IO Bool Source #
tox_callback_friend_typing :: ToxPtr -> FunPtr FriendTypingCb -> IO () Source #
data ErrSetTyping Source #
Instances
tox_self_set_typing :: ToxPtr -> Word32 -> Bool -> CErr ErrSetTyping -> IO Bool Source #
data ErrFriendSendMessage Source #
ErrFriendSendMessageNull | |
ErrFriendSendMessageFriendNotFound | |
ErrFriendSendMessageFriendNotConnected | |
ErrFriendSendMessageSendq | |
ErrFriendSendMessageTooLong | |
ErrFriendSendMessageEmpty |
Instances
tox_friend_send_message :: ToxPtr -> Word32 -> CEnum MessageType -> CString -> CSize -> CErr ErrFriendSendMessage -> IO Word32 Source #
tox_callback_friend_read_receipt :: ToxPtr -> FunPtr FriendReadReceiptCb -> IO () Source #
tox_callback_friend_request :: ToxPtr -> FunPtr FriendRequestCb -> IO () Source #
type FriendMessageCb = ToxPtr -> Word32 -> CEnum MessageType -> CString -> CSize -> Ptr () -> IO () Source #
tox_callback_friend_message :: ToxPtr -> FunPtr FriendMessageCb -> IO () Source #
Instances
Bounded FileKind Source # | |
Enum FileKind Source # | |
Eq FileKind Source # | |
Ord FileKind Source # | |
Defined in FFI.Tox.Tox | |
Read FileKind Source # | |
Show FileKind Source # | |
Generic FileKind Source # | |
Arbitrary FileKind Source # | |
MessagePack FileKind Source # | |
Defined in FFI.Tox.Tox toObject :: Config -> FileKind -> Object # fromObjectWith :: (Applicative m, Monad m, MonadValidate DecodeError m) => Config -> Object -> m FileKind # | |
type Rep FileKind Source # | |
data FileControl Source #
Instances
data ErrFileControl Source #
ErrFileControlFriendNotFound | |
ErrFileControlFriendNotConnected | |
ErrFileControlNotFound | |
ErrFileControlNotPaused | |
ErrFileControlDenied | |
ErrFileControlAlreadyPaused | |
ErrFileControlSendq |
Instances
tox_file_control :: ToxPtr -> Word32 -> Word32 -> CEnum FileControl -> CErr ErrFileControl -> IO Bool Source #
type FileRecvControlCb = ToxPtr -> Word32 -> Word32 -> CEnum FileControl -> Ptr () -> IO () Source #
tox_callback_file_recv_control :: ToxPtr -> FunPtr FileRecvControlCb -> IO () Source #
data ErrFileSeek Source #
ErrFileSeekFriendNotFound | |
ErrFileSeekFriendNotConnected | |
ErrFileSeekNotFound | |
ErrFileSeekDenied | |
ErrFileSeekInvalidPosition | |
ErrFileSeekSendq |
Instances
data ErrFileGet Source #
Instances
tox_file_get_file_id :: ToxPtr -> Word32 -> Word32 -> CString -> CErr ErrFileGet -> IO Bool Source #
data ErrFileSend Source #
ErrFileSendNull | |
ErrFileSendFriendNotFound | |
ErrFileSendFriendNotConnected | |
ErrFileSendNameTooLong | |
ErrFileSendTooMany |
Instances
tox_file_send :: ToxPtr -> Word32 -> Word32 -> Word64 -> CString -> CString -> CSize -> CErr ErrFileSend -> IO Word32 Source #
data ErrFileSendChunk Source #
Instances
tox_file_send_chunk :: ToxPtr -> Word32 -> Word32 -> Word64 -> CString -> CSize -> CErr ErrFileSendChunk -> IO Bool Source #
tox_callback_file_chunk_request :: ToxPtr -> FunPtr FileChunkRequestCb -> IO () Source #
type FileRecvCb = ToxPtr -> Word32 -> Word32 -> Word32 -> Word64 -> CString -> CSize -> Ptr () -> IO () Source #
wrapFileRecvCb :: FileRecvCb -> IO (FunPtr FileRecvCb) Source #
tox_callback_file_recv :: ToxPtr -> FunPtr FileRecvCb -> IO () Source #
type FileRecvChunkCb = ToxPtr -> Word32 -> Word32 -> Word64 -> CString -> CSize -> Ptr () -> IO () Source #
tox_callback_file_recv_chunk :: ToxPtr -> FunPtr FileRecvChunkCb -> IO () Source #
data ConferenceType Source #
Instances
type ConferenceInviteCb = ToxPtr -> Word32 -> CEnum ConferenceType -> CString -> CSize -> Ptr () -> IO () Source #
tox_callback_conference_invite :: ToxPtr -> FunPtr ConferenceInviteCb -> IO () Source #
type ConferenceMessageCb = ToxPtr -> Word32 -> Word32 -> CEnum MessageType -> CString -> CSize -> Ptr () -> IO () Source #
tox_callback_conference_message :: ToxPtr -> FunPtr ConferenceMessageCb -> IO () Source #
tox_callback_conference_title :: ToxPtr -> FunPtr ConferenceTitleCb -> IO () Source #
type ConferencePeerNameCb = ToxPtr -> Word32 -> Word32 -> CString -> CSize -> Ptr () -> IO () Source #
wrapConferencePeerListChangedCb :: ConferencePeerListChangedCb -> IO (FunPtr ConferencePeerListChangedCb) Source #
tox_callback_conference_peer_list_changed :: ToxPtr -> FunPtr ConferencePeerListChangedCb -> IO () Source #
data ErrConferenceNew Source #
Instances
tox_conference_new :: ToxPtr -> CErr ErrConferenceNew -> IO Word32 Source #
data ErrConferenceDelete Source #
Instances
tox_conference_delete :: ToxPtr -> Word32 -> CErr ErrConferenceDelete -> IO Bool Source #
data ErrConferencePeerQuery Source #
ErrConferencePeerQueryConferenceNotFound | |
ErrConferencePeerQueryPeerNotFound | |
ErrConferencePeerQueryNoConnection |
Instances
tox_conference_peer_count :: ToxPtr -> Word32 -> CErr ErrConferencePeerQuery -> IO Word32 Source #
tox_conference_peer_get_name_size :: ToxPtr -> Word32 -> Word32 -> CErr ErrConferencePeerQuery -> IO CSize Source #
tox_conference_peer_get_name :: ToxPtr -> Word32 -> Word32 -> CString -> CErr ErrConferencePeerQuery -> IO Bool Source #
tox_conference_peer_get_public_key :: ToxPtr -> Word32 -> Word32 -> CString -> CErr ErrConferencePeerQuery -> IO Bool Source #
tox_conference_peer_number_is_ours :: ToxPtr -> Word32 -> Word32 -> CErr ErrConferencePeerQuery -> IO Bool Source #
tox_conference_offline_peer_count :: ToxPtr -> Word32 -> CErr ErrConferencePeerQuery -> IO Word32 Source #
tox_conference_offline_peer_get_name_size :: ToxPtr -> Word32 -> Word32 -> CErr ErrConferencePeerQuery -> IO CSize Source #
tox_conference_offline_peer_get_name :: ToxPtr -> Word32 -> Word32 -> CString -> CErr ErrConferencePeerQuery -> IO Bool Source #
tox_conference_offline_peer_get_public_key :: ToxPtr -> Word32 -> Word32 -> CString -> CErr ErrConferencePeerQuery -> IO Bool Source #
tox_conference_offline_peer_get_last_active :: ToxPtr -> Word32 -> Word32 -> CErr ErrConferencePeerQuery -> IO Word64 Source #
data ErrConferenceSetMaxOffline Source #
Instances
tox_conference_set_max_offline :: ToxPtr -> Word32 -> Word32 -> CErr ErrConferenceSetMaxOffline -> IO Bool Source #
data ErrConferenceInvite Source #
Instances
tox_conference_invite :: ToxPtr -> Word32 -> Word32 -> CErr ErrConferenceInvite -> IO Bool Source #
data ErrConferenceJoin Source #
ErrConferenceJoinInvalidLength | |
ErrConferenceJoinWrongType | |
ErrConferenceJoinFriendNotFound | |
ErrConferenceJoinDuplicate | |
ErrConferenceJoinInitFail | |
ErrConferenceJoinFailSend |
Instances
tox_conference_join :: ToxPtr -> Word32 -> CString -> CSize -> CErr ErrConferenceJoin -> IO Word32 Source #
data ErrConferenceSendMessage Source #
ErrConferenceSendMessageConferenceNotFound | |
ErrConferenceSendMessageTooLong | |
ErrConferenceSendMessageNoConnection | |
ErrConferenceSendMessageFailSend |
Instances
tox_conference_send_message :: ToxPtr -> Word32 -> CEnum MessageType -> CString -> CSize -> CErr ErrConferenceSendMessage -> IO Bool Source #
data ErrConferenceTitle Source #
Instances
tox_conference_get_title_size :: ToxPtr -> Word32 -> CErr ErrConferenceTitle -> IO CSize Source #
tox_conference_get_title :: ToxPtr -> Word32 -> CString -> CErr ErrConferenceTitle -> IO Bool Source #
tox_conference_set_title :: ToxPtr -> Word32 -> CString -> CSize -> CErr ErrConferenceTitle -> IO Bool Source #
data ErrConferenceGetType Source #
Instances
tox_conference_get_type :: ToxPtr -> Word32 -> CErr ErrConferenceGetType -> IO (CEnum ConferenceType) Source #
data ErrConferenceById Source #
Instances
tox_conference_by_id :: ToxPtr -> CString -> CErr ErrConferenceById -> IO Word32 Source #
data ErrConferenceByUid Source #
Instances
tox_conference_by_uid :: ToxPtr -> CString -> CErr ErrConferenceByUid -> IO Word32 Source #
data ErrFriendCustomPacket Source #
Instances
tox_friend_send_lossy_packet :: ToxPtr -> Word32 -> CString -> CSize -> CErr ErrFriendCustomPacket -> IO Bool Source #
tox_friend_send_lossless_packet :: ToxPtr -> Word32 -> CString -> CSize -> CErr ErrFriendCustomPacket -> IO Bool Source #
tox_callback_friend_lossy_packet :: ToxPtr -> FunPtr FriendLossyPacketCb -> IO () Source #
data ErrGetPort Source #
Instances
tox_self_get_udp_port :: ToxPtr -> CErr ErrGetPort -> IO Word16 Source #
tox_self_get_tcp_port :: ToxPtr -> CErr ErrGetPort -> IO Word16 Source #
data GroupPrivacyState Source #
Instances
data GroupTopicLock Source #
Instances
data GroupVoiceState Source #
Instances
Instances
data ErrGroupNew Source #
Instances
tox_group_new :: ToxPtr -> CEnum GroupPrivacyState -> CString -> CSize -> CString -> CSize -> CErr ErrGroupNew -> IO Word32 Source #
data ErrGroupJoin Source #
ErrGroupJoinInit | |
ErrGroupJoinBadChatId | |
ErrGroupJoinEmpty | |
ErrGroupJoinTooLong | |
ErrGroupJoinPassword | |
ErrGroupJoinCore |
Instances
tox_group_join :: ToxPtr -> CString -> CString -> CSize -> CString -> CSize -> CErr ErrGroupJoin -> IO Word32 Source #
data ErrGroupIsConnected Source #
Instances
tox_group_is_connected :: ToxPtr -> Word32 -> CErr ErrGroupIsConnected -> IO Bool Source #
data ErrGroupDisconnect Source #
Instances
tox_group_disconnect :: ToxPtr -> Word32 -> CErr ErrGroupDisconnect -> IO Bool Source #
data ErrGroupReconnect Source #
Instances
tox_group_reconnect :: ToxPtr -> Word32 -> CErr ErrGroupReconnect -> IO Bool Source #
data ErrGroupLeave Source #
Instances
data ErrGroupSelfQuery Source #
Instances
data ErrGroupSelfNameSet Source #
ErrGroupSelfNameSetGroupNotFound | |
ErrGroupSelfNameSetTooLong | |
ErrGroupSelfNameSetInvalid | |
ErrGroupSelfNameSetFailSend |
Instances
tox_group_self_set_name :: ToxPtr -> Word32 -> CString -> CSize -> CErr ErrGroupSelfNameSet -> IO Bool Source #
tox_group_self_get_name_size :: ToxPtr -> Word32 -> CErr ErrGroupSelfQuery -> IO CSize Source #
tox_group_self_get_name :: ToxPtr -> Word32 -> CString -> CErr ErrGroupSelfQuery -> IO Bool Source #
data ErrGroupSelfStatusSet Source #
Instances
tox_group_self_set_status :: ToxPtr -> Word32 -> CEnum UserStatus -> CErr ErrGroupSelfStatusSet -> IO Bool Source #
tox_group_self_get_status :: ToxPtr -> Word32 -> CErr ErrGroupSelfQuery -> IO (CEnum UserStatus) Source #
tox_group_self_get_role :: ToxPtr -> Word32 -> CErr ErrGroupSelfQuery -> IO (CEnum GroupRole) Source #
tox_group_self_get_peer_id :: ToxPtr -> Word32 -> CErr ErrGroupSelfQuery -> IO Word32 Source #
tox_group_self_get_public_key :: ToxPtr -> Word32 -> CString -> CErr ErrGroupSelfQuery -> IO Bool Source #
data ErrGroupPeerQuery Source #
Instances
tox_group_peer_get_name_size :: ToxPtr -> Word32 -> Word32 -> CErr ErrGroupPeerQuery -> IO CSize Source #
tox_group_peer_get_name :: ToxPtr -> Word32 -> Word32 -> CString -> CErr ErrGroupPeerQuery -> IO Bool Source #
tox_group_peer_get_status :: ToxPtr -> Word32 -> Word32 -> CErr ErrGroupPeerQuery -> IO (CEnum UserStatus) Source #
tox_group_peer_get_role :: ToxPtr -> Word32 -> Word32 -> CErr ErrGroupPeerQuery -> IO (CEnum GroupRole) Source #
tox_group_peer_get_connection_status :: ToxPtr -> Word32 -> Word32 -> CErr ErrGroupPeerQuery -> IO (CEnum Connection) Source #
tox_group_peer_get_public_key :: ToxPtr -> Word32 -> Word32 -> CString -> CErr ErrGroupPeerQuery -> IO Bool Source #
tox_callback_group_peer_name :: ToxPtr -> FunPtr GroupPeerNameCb -> IO () Source #
type GroupPeerStatusCb = ToxPtr -> Word32 -> Word32 -> CEnum UserStatus -> Ptr () -> IO () Source #
tox_callback_group_peer_status :: ToxPtr -> FunPtr GroupPeerStatusCb -> IO () Source #
data ErrGroupStateQueries Source #
Instances
data ErrGroupTopicSet Source #
ErrGroupTopicSetGroupNotFound | |
ErrGroupTopicSetTooLong | |
ErrGroupTopicSetPermissions | |
ErrGroupTopicSetFailCreate | |
ErrGroupTopicSetFailSend | |
ErrGroupTopicSetDisconnected |
Instances
tox_group_set_topic :: ToxPtr -> Word32 -> CString -> CSize -> CErr ErrGroupTopicSet -> IO Bool Source #
tox_group_get_topic_size :: ToxPtr -> Word32 -> CErr ErrGroupStateQueries -> IO CSize Source #
tox_group_get_topic :: ToxPtr -> Word32 -> CString -> CErr ErrGroupStateQueries -> IO Bool Source #
wrapGroupTopicCb :: GroupTopicCb -> IO (FunPtr GroupTopicCb) Source #
tox_callback_group_topic :: ToxPtr -> FunPtr GroupTopicCb -> IO () Source #
tox_group_get_name_size :: ToxPtr -> Word32 -> CErr ErrGroupStateQueries -> IO CSize Source #
tox_group_get_name :: ToxPtr -> Word32 -> CString -> CErr ErrGroupStateQueries -> IO Bool Source #
tox_group_get_chat_id :: ToxPtr -> Word32 -> CString -> CErr ErrGroupStateQueries -> IO Bool Source #
tox_group_get_privacy_state :: ToxPtr -> Word32 -> CErr ErrGroupStateQueries -> IO (CEnum GroupPrivacyState) Source #
type GroupPrivacyStateCb = ToxPtr -> Word32 -> CEnum GroupPrivacyState -> Ptr () -> IO () Source #
tox_callback_group_privacy_state :: ToxPtr -> FunPtr GroupPrivacyStateCb -> IO () Source #
tox_group_get_voice_state :: ToxPtr -> Word32 -> CErr ErrGroupStateQueries -> IO (CEnum GroupVoiceState) Source #
type GroupVoiceStateCb = ToxPtr -> Word32 -> CEnum GroupVoiceState -> Ptr () -> IO () Source #
tox_callback_group_voice_state :: ToxPtr -> FunPtr GroupVoiceStateCb -> IO () Source #
tox_group_get_topic_lock :: ToxPtr -> Word32 -> CErr ErrGroupStateQueries -> IO (CEnum GroupTopicLock) Source #
type GroupTopicLockCb = ToxPtr -> Word32 -> CEnum GroupTopicLock -> Ptr () -> IO () Source #
tox_callback_group_topic_lock :: ToxPtr -> FunPtr GroupTopicLockCb -> IO () Source #
tox_group_get_peer_limit :: ToxPtr -> Word32 -> CErr ErrGroupStateQueries -> IO Word16 Source #
tox_callback_group_peer_limit :: ToxPtr -> FunPtr GroupPeerLimitCb -> IO () Source #
tox_group_get_password_size :: ToxPtr -> Word32 -> CErr ErrGroupStateQueries -> IO CSize Source #
tox_group_get_password :: ToxPtr -> Word32 -> CString -> CErr ErrGroupStateQueries -> IO Bool Source #
tox_callback_group_password :: ToxPtr -> FunPtr GroupPasswordCb -> IO () Source #
data ErrGroupSendMessage Source #
Instances
tox_group_send_message :: ToxPtr -> Word32 -> CEnum MessageType -> CString -> CSize -> Ptr Word32 -> CErr ErrGroupSendMessage -> IO Bool Source #
data ErrGroupSendPrivateMessage Source #
Instances
tox_group_send_private_message :: ToxPtr -> Word32 -> Word32 -> CEnum MessageType -> CString -> CSize -> CErr ErrGroupSendPrivateMessage -> IO Bool Source #
data ErrGroupSendCustomPacket Source #
ErrGroupSendCustomPacketGroupNotFound | |
ErrGroupSendCustomPacketTooLong | |
ErrGroupSendCustomPacketEmpty | |
ErrGroupSendCustomPacketPermissions | |
ErrGroupSendCustomPacketDisconnected |
Instances
tox_group_send_custom_packet :: ToxPtr -> Word32 -> Bool -> CString -> CSize -> CErr ErrGroupSendCustomPacket -> IO Bool Source #
data ErrGroupSendCustomPrivatePacket Source #
Instances
tox_group_send_custom_private_packet :: ToxPtr -> Word32 -> Word32 -> Bool -> CString -> CSize -> CErr ErrGroupSendCustomPrivatePacket -> IO Bool Source #
type GroupMessageCb = ToxPtr -> Word32 -> Word32 -> CEnum MessageType -> CString -> CSize -> Word32 -> Ptr () -> IO () Source #
tox_callback_group_message :: ToxPtr -> FunPtr GroupMessageCb -> IO () Source #
type GroupPrivateMessageCb = ToxPtr -> Word32 -> Word32 -> CEnum MessageType -> CString -> CSize -> Ptr () -> IO () Source #
type GroupCustomPacketCb = ToxPtr -> Word32 -> Word32 -> CString -> CSize -> Ptr () -> IO () Source #
tox_callback_group_custom_packet :: ToxPtr -> FunPtr GroupCustomPacketCb -> IO () Source #
type GroupCustomPrivatePacketCb = ToxPtr -> Word32 -> Word32 -> CString -> CSize -> Ptr () -> IO () Source #
wrapGroupCustomPrivatePacketCb :: GroupCustomPrivatePacketCb -> IO (FunPtr GroupCustomPrivatePacketCb) Source #
tox_callback_group_custom_private_packet :: ToxPtr -> FunPtr GroupCustomPrivatePacketCb -> IO () Source #
data ErrGroupInviteFriend Source #
ErrGroupInviteFriendGroupNotFound | |
ErrGroupInviteFriendFriendNotFound | |
ErrGroupInviteFriendInviteFail | |
ErrGroupInviteFriendFailSend | |
ErrGroupInviteFriendDisconnected |
Instances
tox_group_invite_friend :: ToxPtr -> Word32 -> Word32 -> CErr ErrGroupInviteFriend -> IO Bool Source #
data ErrGroupInviteAccept Source #
ErrGroupInviteAcceptBadInvite | |
ErrGroupInviteAcceptInitFailed | |
ErrGroupInviteAcceptTooLong | |
ErrGroupInviteAcceptEmpty | |
ErrGroupInviteAcceptPassword | |
ErrGroupInviteAcceptCore | |
ErrGroupInviteAcceptFailSend |
Instances
tox_group_invite_accept :: ToxPtr -> Word32 -> CString -> CSize -> CString -> CSize -> CString -> CSize -> CErr ErrGroupInviteAccept -> IO Word32 Source #
type GroupInviteCb = ToxPtr -> Word32 -> CString -> CSize -> CString -> CSize -> Ptr () -> IO () Source #
tox_callback_group_invite :: ToxPtr -> FunPtr GroupInviteCb -> IO () Source #
tox_callback_group_peer_join :: ToxPtr -> FunPtr GroupPeerJoinCb -> IO () Source #
data GroupExitType Source #
GroupExitTypeQuit | |
GroupExitTypeTimeout | |
GroupExitTypeDisconnected | |
GroupExitTypeSelfDisconnected | |
GroupExitTypeKick | |
GroupExitTypeSyncError |
Instances
type GroupPeerExitCb = ToxPtr -> Word32 -> Word32 -> CEnum GroupExitType -> CString -> CSize -> CString -> CSize -> Ptr () -> IO () Source #
tox_callback_group_peer_exit :: ToxPtr -> FunPtr GroupPeerExitCb -> IO () Source #
tox_callback_group_self_join :: ToxPtr -> FunPtr GroupSelfJoinCb -> IO () Source #
data GroupJoinFail Source #
Instances
type GroupJoinFailCb = ToxPtr -> Word32 -> CEnum GroupJoinFail -> Ptr () -> IO () Source #
tox_callback_group_join_fail :: ToxPtr -> FunPtr GroupJoinFailCb -> IO () Source #
data ErrGroupSetPassword Source #
ErrGroupSetPasswordGroupNotFound | |
ErrGroupSetPasswordPermissions | |
ErrGroupSetPasswordTooLong | |
ErrGroupSetPasswordFailSend | |
ErrGroupSetPasswordMalloc | |
ErrGroupSetPasswordDisconnected |
Instances
tox_group_set_password :: ToxPtr -> Word32 -> CString -> CSize -> CErr ErrGroupSetPassword -> IO Bool Source #
data ErrGroupSetTopicLock Source #
ErrGroupSetTopicLockGroupNotFound | |
ErrGroupSetTopicLockInvalid | |
ErrGroupSetTopicLockPermissions | |
ErrGroupSetTopicLockFailSet | |
ErrGroupSetTopicLockFailSend | |
ErrGroupSetTopicLockDisconnected |
Instances
tox_group_set_topic_lock :: ToxPtr -> Word32 -> CEnum GroupTopicLock -> CErr ErrGroupSetTopicLock -> IO Bool Source #
data ErrGroupSetVoiceState Source #
ErrGroupSetVoiceStateGroupNotFound | |
ErrGroupSetVoiceStatePermissions | |
ErrGroupSetVoiceStateFailSet | |
ErrGroupSetVoiceStateFailSend | |
ErrGroupSetVoiceStateDisconnected |
Instances
tox_group_set_voice_state :: ToxPtr -> Word32 -> CEnum GroupVoiceState -> CErr ErrGroupSetVoiceState -> IO Bool Source #
data ErrGroupSetPrivacyState Source #
ErrGroupSetPrivacyStateGroupNotFound | |
ErrGroupSetPrivacyStatePermissions | |
ErrGroupSetPrivacyStateFailSet | |
ErrGroupSetPrivacyStateFailSend | |
ErrGroupSetPrivacyStateDisconnected |
Instances
tox_group_set_privacy_state :: ToxPtr -> Word32 -> CEnum GroupPrivacyState -> CErr ErrGroupSetPrivacyState -> IO Bool Source #
data ErrGroupSetPeerLimit Source #
ErrGroupSetPeerLimitGroupNotFound | |
ErrGroupSetPeerLimitPermissions | |
ErrGroupSetPeerLimitFailSet | |
ErrGroupSetPeerLimitFailSend | |
ErrGroupSetPeerLimitDisconnected |
Instances
tox_group_set_peer_limit :: ToxPtr -> Word32 -> Word16 -> CErr ErrGroupSetPeerLimit -> IO Bool Source #
data ErrGroupSetIgnore Source #
Instances
tox_group_set_ignore :: ToxPtr -> Word32 -> Word32 -> Bool -> CErr ErrGroupSetIgnore -> IO Bool Source #
data ErrGroupSetRole Source #
ErrGroupSetRoleGroupNotFound | |
ErrGroupSetRolePeerNotFound | |
ErrGroupSetRolePermissions | |
ErrGroupSetRoleAssignment | |
ErrGroupSetRoleFailAction | |
ErrGroupSetRoleSelf |
Instances
tox_group_set_role :: ToxPtr -> Word32 -> Word32 -> CEnum GroupRole -> CErr ErrGroupSetRole -> IO Bool Source #
data ErrGroupKickPeer Source #
ErrGroupKickPeerGroupNotFound | |
ErrGroupKickPeerPeerNotFound | |
ErrGroupKickPeerPermissions | |
ErrGroupKickPeerFailAction | |
ErrGroupKickPeerFailSend | |
ErrGroupKickPeerSelf |
Instances
tox_group_kick_peer :: ToxPtr -> Word32 -> Word32 -> CErr ErrGroupKickPeer -> IO Bool Source #
data GroupModEvent Source #
Instances
type GroupModerationCb = ToxPtr -> Word32 -> Word32 -> Word32 -> CEnum GroupModEvent -> Ptr () -> IO () Source #
tox_callback_group_moderation :: ToxPtr -> FunPtr GroupModerationCb -> IO () Source #