From 946dea2d9e2d4b1975e88c0ca069ca558bd62a7c Mon Sep 17 00:00:00 2001 From: "emdee@spm.plastiras.org" Date: Mon, 19 Feb 2024 14:24:33 +0000 Subject: [PATCH] src/tox_wrapper/tox_ctypesgen.py.diff --- README.md | 15 + src/tox_wrapper/tox_ctypesgen.py.diff | 3584 +++++++++++++++++++++++++ 2 files changed, 3599 insertions(+) create mode 100644 src/tox_wrapper/tox_ctypesgen.py.diff diff --git a/README.md b/README.md index 6569d37..35ce12f 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,21 @@ debugger is a crucial advantage. ## Updates +To regerate the bindings to a new c-toxcore, install ctypesgen +``` +make build +``` +and exit the Makefile to set CTOXCORE to where your c-toxcore is. Then +``` +make install +``` +Then try patching the resulting file with: +``` +patch -b -z .dst src/tox_wrapper/tox_ctypesgen.py \ + < src/tox_wrapper/tox_ctypesgen.py.diff +``` +You may need to resolve any rejections if the ctypesgen file has changed. + Although Tox works over Tor, we do not recommend its usage for anonymity as it leaks DNS requests due to a 6-year old known security issue: https://github.com/TokTok/c-toxcore/issues/469 unless your Tox client diff --git a/src/tox_wrapper/tox_ctypesgen.py.diff b/src/tox_wrapper/tox_ctypesgen.py.diff new file mode 100644 index 0000000..27b7899 --- /dev/null +++ b/src/tox_wrapper/tox_ctypesgen.py.diff @@ -0,0 +1,3584 @@ +*** tox_ctypesgen.py.dst 2024-02-18 19:57:08.000000000 +0000 +--- tox_ctypesgen.py 2024-02-19 08:13:58.000000000 +0000 +*************** +*** 12,21 **** +--- 12,37 ---- + + import ctypes + import sys + from ctypes import * # noqa: F401, F403 + ++ # callbacks can be called in any thread so were being careful ++ # tox.py can be called by callbacks ++ def LOG_ERROR(a) -> None: ++ print('EROR> '+a) ++ def LOG_WARN(a) -> None: ++ print('WARN> '+a) ++ def LOG_INFO(a) -> None: ++ bVERBOSE = hasattr(__builtins__, 'app') and app.oArgs.loglevel <= 20 ++ if bVERBOSE: print('INFO> '+a) ++ def LOG_DEBUG(a) -> None: ++ bVERBOSE = hasattr(__builtins__, 'app') and app.oArgs.loglevel <= 10 ++ if bVERBOSE: print('DBUG> '+a) ++ def LOG_TRACE(a) -> None: ++ bVERBOSE = hasattr(__builtins__, 'app') and app.oArgs.loglevel < 10 ++ if bVERBOSE: print('TRAC> '+a) ++ + _int_types = (ctypes.c_int16, ctypes.c_int32) + if hasattr(ctypes, "c_int64"): + # Some builds of ctypes apparently do not have ctypes.c_int64 + # defined; it's a pretty good bet that these builds do not + # have 64-bit pointers. +*************** +*** 858,872 **** + + add_library_search_dirs(['/usr/local/lib']) + + # Begin libraries + _libs["libtoxcore"] = load_library("libtoxcore") +- _libs["sodium"] = load_library("sodium") +- _libs["opus"] = load_library("opus") +- _libs["vpx"] = load_library("vpx") +- _libs["nsl"] = load_library("nsl") +- _libs["tirpc"] = load_library("tirpc") + + # 6 libraries + # End libraries + + # No modules +--- 874,883 ---- +*************** +*** 896,1013 **** +--- 907,1043 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 142 + if _libs["libtoxcore"].has("tox_version_major", "cdecl"): + tox_version_major = _libs["libtoxcore"].get("tox_version_major", "cdecl") + tox_version_major.argtypes = [] + tox_version_major.restype = uint32_t ++ else: LOG_ERROR("tox_version_major") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 152 + if _libs["libtoxcore"].has("tox_version_minor", "cdecl"): + tox_version_minor = _libs["libtoxcore"].get("tox_version_minor", "cdecl") + tox_version_minor.argtypes = [] + tox_version_minor.restype = uint32_t ++ else: LOG_ERROR("tox_version_minor") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 162 + if _libs["libtoxcore"].has("tox_version_patch", "cdecl"): + tox_version_patch = _libs["libtoxcore"].get("tox_version_patch", "cdecl") + tox_version_patch.argtypes = [] + tox_version_patch.restype = uint32_t ++ else: LOG_ERROR("tox_version_patch") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 193 + if _libs["libtoxcore"].has("tox_version_is_compatible", "cdecl"): + tox_version_is_compatible = _libs["libtoxcore"].get("tox_version_is_compatible", "cdecl") + tox_version_is_compatible.argtypes = [uint32_t, uint32_t, uint32_t] + tox_version_is_compatible.restype = c_bool ++ else: LOG_ERROR("tox_version_is_compatible") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 217 + if _libs["libtoxcore"].has("tox_public_key_size", "cdecl"): + tox_public_key_size = _libs["libtoxcore"].get("tox_public_key_size", "cdecl") + tox_public_key_size.argtypes = [] + tox_public_key_size.restype = uint32_t ++ else: LOG_ERROR("tox_public_key_size") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 224 + if _libs["libtoxcore"].has("tox_secret_key_size", "cdecl"): + tox_secret_key_size = _libs["libtoxcore"].get("tox_secret_key_size", "cdecl") + tox_secret_key_size.argtypes = [] + tox_secret_key_size.restype = uint32_t ++ else: LOG_ERROR("tox_secret_key_size") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 233 + if _libs["libtoxcore"].has("tox_conference_uid_size", "cdecl"): + tox_conference_uid_size = _libs["libtoxcore"].get("tox_conference_uid_size", "cdecl") + tox_conference_uid_size.argtypes = [] + tox_conference_uid_size.restype = uint32_t ++ else: LOG_ERROR("tox_conference_uid_size") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 240 + if _libs["libtoxcore"].has("tox_conference_id_size", "cdecl"): + tox_conference_id_size = _libs["libtoxcore"].get("tox_conference_id_size", "cdecl") + tox_conference_id_size.argtypes = [] + tox_conference_id_size.restype = uint32_t ++ else: LOG_ERROR("tox_conference_id_size") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 247 + if _libs["libtoxcore"].has("tox_nospam_size", "cdecl"): + tox_nospam_size = _libs["libtoxcore"].get("tox_nospam_size", "cdecl") + tox_nospam_size.argtypes = [] + tox_nospam_size.restype = uint32_t ++ else: LOG_ERROR("tox_nospam_size") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 261 + if _libs["libtoxcore"].has("tox_address_size", "cdecl"): + tox_address_size = _libs["libtoxcore"].get("tox_address_size", "cdecl") + tox_address_size.argtypes = [] + tox_address_size.restype = uint32_t ++ else: LOG_ERROR("tox_address_size") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 270 + if _libs["libtoxcore"].has("tox_max_name_length", "cdecl"): + tox_max_name_length = _libs["libtoxcore"].get("tox_max_name_length", "cdecl") + tox_max_name_length.argtypes = [] + tox_max_name_length.restype = uint32_t ++ else: LOG_ERROR("tox_max_name_length") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 279 + if _libs["libtoxcore"].has("tox_max_status_message_length", "cdecl"): + tox_max_status_message_length = _libs["libtoxcore"].get("tox_max_status_message_length", "cdecl") + tox_max_status_message_length.argtypes = [] + tox_max_status_message_length.restype = uint32_t ++ else: LOG_ERROR("tox_max_status_message_length") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 288 + if _libs["libtoxcore"].has("tox_max_friend_request_length", "cdecl"): + tox_max_friend_request_length = _libs["libtoxcore"].get("tox_max_friend_request_length", "cdecl") + tox_max_friend_request_length.argtypes = [] + tox_max_friend_request_length.restype = uint32_t ++ else: LOG_ERROR("tox_max_friend_request_length") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 297 + if _libs["libtoxcore"].has("tox_max_message_length", "cdecl"): + tox_max_message_length = _libs["libtoxcore"].get("tox_max_message_length", "cdecl") + tox_max_message_length.argtypes = [] + tox_max_message_length.restype = uint32_t ++ else: LOG_ERROR("tox_max_message_length") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 306 + if _libs["libtoxcore"].has("tox_max_custom_packet_size", "cdecl"): + tox_max_custom_packet_size = _libs["libtoxcore"].get("tox_max_custom_packet_size", "cdecl") + tox_max_custom_packet_size.argtypes = [] + tox_max_custom_packet_size.restype = uint32_t ++ else: LOG_ERROR("tox_max_custom_packet_size") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 313 + if _libs["libtoxcore"].has("tox_hash_length", "cdecl"): + tox_hash_length = _libs["libtoxcore"].get("tox_hash_length", "cdecl") + tox_hash_length.argtypes = [] + tox_hash_length.restype = uint32_t ++ else: LOG_ERROR("tox_hash_length") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 320 + if _libs["libtoxcore"].has("tox_file_id_length", "cdecl"): + tox_file_id_length = _libs["libtoxcore"].get("tox_file_id_length", "cdecl") + tox_file_id_length.argtypes = [] + tox_file_id_length.restype = uint32_t ++ else: LOG_ERROR("tox_file_id_length") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 329 + if _libs["libtoxcore"].has("tox_max_filename_length", "cdecl"): + tox_max_filename_length = _libs["libtoxcore"].get("tox_max_filename_length", "cdecl") + tox_max_filename_length.argtypes = [] + tox_max_filename_length.restype = uint32_t ++ else: LOG_ERROR("tox_max_filename_length") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 341 + if _libs["libtoxcore"].has("tox_max_hostname_length", "cdecl"): + tox_max_hostname_length = _libs["libtoxcore"].get("tox_max_hostname_length", "cdecl") + tox_max_hostname_length.argtypes = [] + tox_max_hostname_length.restype = uint32_t ++ else: LOG_ERROR("tox_max_hostname_length") + + enum_Tox_User_Status = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 371 + + TOX_USER_STATUS_NONE = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 371 + +*************** +*** 1020,1029 **** +--- 1050,1060 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 373 + if _libs["libtoxcore"].has("tox_user_status_to_string", "cdecl"): + tox_user_status_to_string = _libs["libtoxcore"].get("tox_user_status_to_string", "cdecl") + tox_user_status_to_string.argtypes = [Tox_User_Status] + tox_user_status_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_user_status_to_string") + + enum_Tox_Message_Type = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 392 + + TOX_MESSAGE_TYPE_NORMAL = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 392 + +*************** +*** 1034,1043 **** +--- 1065,1075 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 394 + if _libs["libtoxcore"].has("tox_message_type_to_string", "cdecl"): + tox_message_type_to_string = _libs["libtoxcore"].get("tox_message_type_to_string", "cdecl") + tox_message_type_to_string.argtypes = [Tox_Message_Type] + tox_message_type_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_message_type_to_string") + + enum_Tox_Proxy_Type = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 422 + + TOX_PROXY_TYPE_NONE = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 422 + +*************** +*** 1050,1059 **** +--- 1082,1092 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 424 + if _libs["libtoxcore"].has("tox_proxy_type_to_string", "cdecl"): + tox_proxy_type_to_string = _libs["libtoxcore"].get("tox_proxy_type_to_string", "cdecl") + tox_proxy_type_to_string.argtypes = [Tox_Proxy_Type] + tox_proxy_type_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_proxy_type_to_string") + + enum_Tox_Savedata_Type = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 446 + + TOX_SAVEDATA_TYPE_NONE = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 446 + +*************** +*** 1066,1075 **** +--- 1099,1109 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 448 + if _libs["libtoxcore"].has("tox_savedata_type_to_string", "cdecl"): + tox_savedata_type_to_string = _libs["libtoxcore"].get("tox_savedata_type_to_string", "cdecl") + tox_savedata_type_to_string.argtypes = [Tox_Savedata_Type] + tox_savedata_type_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_savedata_type_to_string") + + enum_Tox_Log_Level = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 480 + + TOX_LOG_LEVEL_TRACE = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 480 + +*************** +*** 1086,1095 **** +--- 1120,1130 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 482 + if _libs["libtoxcore"].has("tox_log_level_to_string", "cdecl"): + tox_log_level_to_string = _libs["libtoxcore"].get("tox_log_level_to_string", "cdecl") + tox_log_level_to_string.argtypes = [Tox_Log_Level] + tox_log_level_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_log_level_to_string") + + tox_log_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Log_Level, String, uint32_t, String, String, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 505 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 515 + class struct_Tox_System(Structure): +*************** +*** 1149,1369 **** +--- 1184,1440 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 694 + if _libs["libtoxcore"].has("tox_options_get_ipv6_enabled", "cdecl"): + tox_options_get_ipv6_enabled = _libs["libtoxcore"].get("tox_options_get_ipv6_enabled", "cdecl") + tox_options_get_ipv6_enabled.argtypes = [POINTER(Tox_Options)] + tox_options_get_ipv6_enabled.restype = c_bool ++ else: LOG_ERROR("tox_options_get_ipv6_enabled") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 696 + if _libs["libtoxcore"].has("tox_options_set_ipv6_enabled", "cdecl"): + tox_options_set_ipv6_enabled = _libs["libtoxcore"].get("tox_options_set_ipv6_enabled", "cdecl") + tox_options_set_ipv6_enabled.argtypes = [POINTER(Tox_Options), c_bool] + tox_options_set_ipv6_enabled.restype = None ++ else: LOG_ERROR("tox_options_set_ipv6_enabled") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 698 + if _libs["libtoxcore"].has("tox_options_get_udp_enabled", "cdecl"): + tox_options_get_udp_enabled = _libs["libtoxcore"].get("tox_options_get_udp_enabled", "cdecl") + tox_options_get_udp_enabled.argtypes = [POINTER(Tox_Options)] + tox_options_get_udp_enabled.restype = c_bool ++ else: LOG_ERROR("tox_options_get_udp_enabled") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 700 + if _libs["libtoxcore"].has("tox_options_set_udp_enabled", "cdecl"): + tox_options_set_udp_enabled = _libs["libtoxcore"].get("tox_options_set_udp_enabled", "cdecl") + tox_options_set_udp_enabled.argtypes = [POINTER(Tox_Options), c_bool] + tox_options_set_udp_enabled.restype = None ++ else: LOG_ERROR("tox_options_set_udp_enabled") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 702 + if _libs["libtoxcore"].has("tox_options_get_local_discovery_enabled", "cdecl"): + tox_options_get_local_discovery_enabled = _libs["libtoxcore"].get("tox_options_get_local_discovery_enabled", "cdecl") + tox_options_get_local_discovery_enabled.argtypes = [POINTER(Tox_Options)] + tox_options_get_local_discovery_enabled.restype = c_bool ++ else: LOG_ERROR("tox_options_get_local_discovery_enabled") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 704 + if _libs["libtoxcore"].has("tox_options_set_local_discovery_enabled", "cdecl"): + tox_options_set_local_discovery_enabled = _libs["libtoxcore"].get("tox_options_set_local_discovery_enabled", "cdecl") + tox_options_set_local_discovery_enabled.argtypes = [POINTER(Tox_Options), c_bool] + tox_options_set_local_discovery_enabled.restype = None ++ else: LOG_ERROR("tox_options_set_local_discovery_enabled") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 706 + if _libs["libtoxcore"].has("tox_options_get_dht_announcements_enabled", "cdecl"): + tox_options_get_dht_announcements_enabled = _libs["libtoxcore"].get("tox_options_get_dht_announcements_enabled", "cdecl") + tox_options_get_dht_announcements_enabled.argtypes = [POINTER(Tox_Options)] + tox_options_get_dht_announcements_enabled.restype = c_bool ++ else: LOG_ERROR("tox_options_get_dht_announcements_enabled") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 708 + if _libs["libtoxcore"].has("tox_options_set_dht_announcements_enabled", "cdecl"): + tox_options_set_dht_announcements_enabled = _libs["libtoxcore"].get("tox_options_set_dht_announcements_enabled", "cdecl") + tox_options_set_dht_announcements_enabled.argtypes = [POINTER(Tox_Options), c_bool] + tox_options_set_dht_announcements_enabled.restype = None ++ else: LOG_ERROR("tox_options_set_dht_announcements_enabled") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 710 + if _libs["libtoxcore"].has("tox_options_get_proxy_type", "cdecl"): + tox_options_get_proxy_type = _libs["libtoxcore"].get("tox_options_get_proxy_type", "cdecl") + tox_options_get_proxy_type.argtypes = [POINTER(Tox_Options)] + tox_options_get_proxy_type.restype = Tox_Proxy_Type ++ else: LOG_ERROR("tox_options_get_proxy_type") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 712 + if _libs["libtoxcore"].has("tox_options_set_proxy_type", "cdecl"): + tox_options_set_proxy_type = _libs["libtoxcore"].get("tox_options_set_proxy_type", "cdecl") + tox_options_set_proxy_type.argtypes = [POINTER(Tox_Options), Tox_Proxy_Type] + tox_options_set_proxy_type.restype = None ++ else: LOG_ERROR("tox_options_set_proxy_type") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 714 + if _libs["libtoxcore"].has("tox_options_get_proxy_host", "cdecl"): + tox_options_get_proxy_host = _libs["libtoxcore"].get("tox_options_get_proxy_host", "cdecl") + tox_options_get_proxy_host.argtypes = [POINTER(Tox_Options)] + tox_options_get_proxy_host.restype = c_char_p ++ else: LOG_ERROR("tox_options_get_proxy_host") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 716 + if _libs["libtoxcore"].has("tox_options_set_proxy_host", "cdecl"): + tox_options_set_proxy_host = _libs["libtoxcore"].get("tox_options_set_proxy_host", "cdecl") + tox_options_set_proxy_host.argtypes = [POINTER(Tox_Options), String] + tox_options_set_proxy_host.restype = None ++ else: LOG_ERROR("tox_options_set_proxy_host") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 718 + if _libs["libtoxcore"].has("tox_options_get_proxy_port", "cdecl"): + tox_options_get_proxy_port = _libs["libtoxcore"].get("tox_options_get_proxy_port", "cdecl") + tox_options_get_proxy_port.argtypes = [POINTER(Tox_Options)] + tox_options_get_proxy_port.restype = uint16_t ++ else: LOG_ERROR("tox_options_get_proxy_port") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 720 + if _libs["libtoxcore"].has("tox_options_set_proxy_port", "cdecl"): + tox_options_set_proxy_port = _libs["libtoxcore"].get("tox_options_set_proxy_port", "cdecl") + tox_options_set_proxy_port.argtypes = [POINTER(Tox_Options), uint16_t] + tox_options_set_proxy_port.restype = None ++ else: LOG_ERROR("tox_options_set_proxy_port") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 722 + if _libs["libtoxcore"].has("tox_options_get_start_port", "cdecl"): + tox_options_get_start_port = _libs["libtoxcore"].get("tox_options_get_start_port", "cdecl") + tox_options_get_start_port.argtypes = [POINTER(Tox_Options)] + tox_options_get_start_port.restype = uint16_t ++ else: LOG_ERROR("tox_options_get_start_port") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 724 + if _libs["libtoxcore"].has("tox_options_set_start_port", "cdecl"): + tox_options_set_start_port = _libs["libtoxcore"].get("tox_options_set_start_port", "cdecl") + tox_options_set_start_port.argtypes = [POINTER(Tox_Options), uint16_t] + tox_options_set_start_port.restype = None ++ else: LOG_ERROR("tox_options_set_start_port") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 726 + if _libs["libtoxcore"].has("tox_options_get_end_port", "cdecl"): + tox_options_get_end_port = _libs["libtoxcore"].get("tox_options_get_end_port", "cdecl") + tox_options_get_end_port.argtypes = [POINTER(Tox_Options)] + tox_options_get_end_port.restype = uint16_t ++ else: LOG_ERROR("tox_options_get_end_port") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 728 + if _libs["libtoxcore"].has("tox_options_set_end_port", "cdecl"): + tox_options_set_end_port = _libs["libtoxcore"].get("tox_options_set_end_port", "cdecl") + tox_options_set_end_port.argtypes = [POINTER(Tox_Options), uint16_t] + tox_options_set_end_port.restype = None ++ else: LOG_ERROR("tox_options_set_end_port") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 730 + if _libs["libtoxcore"].has("tox_options_get_tcp_port", "cdecl"): + tox_options_get_tcp_port = _libs["libtoxcore"].get("tox_options_get_tcp_port", "cdecl") + tox_options_get_tcp_port.argtypes = [POINTER(Tox_Options)] + tox_options_get_tcp_port.restype = uint16_t ++ else: LOG_ERROR("tox_options_get_tcp_port") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 732 + if _libs["libtoxcore"].has("tox_options_set_tcp_port", "cdecl"): + tox_options_set_tcp_port = _libs["libtoxcore"].get("tox_options_set_tcp_port", "cdecl") + tox_options_set_tcp_port.argtypes = [POINTER(Tox_Options), uint16_t] + tox_options_set_tcp_port.restype = None ++ else: LOG_ERROR("tox_options_set_tcp_port") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 734 + if _libs["libtoxcore"].has("tox_options_get_hole_punching_enabled", "cdecl"): + tox_options_get_hole_punching_enabled = _libs["libtoxcore"].get("tox_options_get_hole_punching_enabled", "cdecl") + tox_options_get_hole_punching_enabled.argtypes = [POINTER(Tox_Options)] + tox_options_get_hole_punching_enabled.restype = c_bool ++ else: LOG_ERROR("tox_options_get_hole_punching_enabled") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 736 + if _libs["libtoxcore"].has("tox_options_set_hole_punching_enabled", "cdecl"): + tox_options_set_hole_punching_enabled = _libs["libtoxcore"].get("tox_options_set_hole_punching_enabled", "cdecl") + tox_options_set_hole_punching_enabled.argtypes = [POINTER(Tox_Options), c_bool] + tox_options_set_hole_punching_enabled.restype = None ++ else: LOG_ERROR("tox_options_set_hole_punching_enabled") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 738 + if _libs["libtoxcore"].has("tox_options_get_savedata_type", "cdecl"): + tox_options_get_savedata_type = _libs["libtoxcore"].get("tox_options_get_savedata_type", "cdecl") + tox_options_get_savedata_type.argtypes = [POINTER(Tox_Options)] + tox_options_get_savedata_type.restype = Tox_Savedata_Type ++ else: LOG_ERROR("tox_options_get_savedata_type") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 740 + if _libs["libtoxcore"].has("tox_options_set_savedata_type", "cdecl"): + tox_options_set_savedata_type = _libs["libtoxcore"].get("tox_options_set_savedata_type", "cdecl") + tox_options_set_savedata_type.argtypes = [POINTER(Tox_Options), Tox_Savedata_Type] + tox_options_set_savedata_type.restype = None ++ else: LOG_ERROR("tox_options_set_savedata_type") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 742 + if _libs["libtoxcore"].has("tox_options_get_savedata_data", "cdecl"): + tox_options_get_savedata_data = _libs["libtoxcore"].get("tox_options_get_savedata_data", "cdecl") + tox_options_get_savedata_data.argtypes = [POINTER(Tox_Options)] + tox_options_get_savedata_data.restype = POINTER(uint8_t) ++ else: LOG_ERROR("tox_options_get_savedata_data") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 744 + if _libs["libtoxcore"].has("tox_options_set_savedata_data", "cdecl"): + tox_options_set_savedata_data = _libs["libtoxcore"].get("tox_options_set_savedata_data", "cdecl") + tox_options_set_savedata_data.argtypes = [POINTER(Tox_Options), POINTER(uint8_t), c_size_t] + tox_options_set_savedata_data.restype = None ++ else: LOG_ERROR("tox_options_set_savedata_data") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 746 + if _libs["libtoxcore"].has("tox_options_get_savedata_length", "cdecl"): + tox_options_get_savedata_length = _libs["libtoxcore"].get("tox_options_get_savedata_length", "cdecl") + tox_options_get_savedata_length.argtypes = [POINTER(Tox_Options)] + tox_options_get_savedata_length.restype = c_size_t ++ else: LOG_ERROR("tox_options_get_savedata_length") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 748 + if _libs["libtoxcore"].has("tox_options_set_savedata_length", "cdecl"): + tox_options_set_savedata_length = _libs["libtoxcore"].get("tox_options_set_savedata_length", "cdecl") + tox_options_set_savedata_length.argtypes = [POINTER(Tox_Options), c_size_t] + tox_options_set_savedata_length.restype = None ++ else: LOG_ERROR("tox_options_set_savedata_length") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 750 + if _libs["libtoxcore"].has("tox_options_get_log_callback", "cdecl"): + tox_options_get_log_callback = _libs["libtoxcore"].get("tox_options_get_log_callback", "cdecl") + tox_options_get_log_callback.argtypes = [POINTER(Tox_Options)] + tox_options_get_log_callback.restype = POINTER(tox_log_cb) ++ else: LOG_ERROR("tox_options_get_log_callback") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 752 + if _libs["libtoxcore"].has("tox_options_set_log_callback", "cdecl"): + tox_options_set_log_callback = _libs["libtoxcore"].get("tox_options_set_log_callback", "cdecl") + tox_options_set_log_callback.argtypes = [POINTER(Tox_Options), POINTER(tox_log_cb)] + tox_options_set_log_callback.restype = None ++ else: LOG_ERROR("tox_options_set_log_callback") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 754 + if _libs["libtoxcore"].has("tox_options_get_log_user_data", "cdecl"): + tox_options_get_log_user_data = _libs["libtoxcore"].get("tox_options_get_log_user_data", "cdecl") + tox_options_get_log_user_data.argtypes = [POINTER(Tox_Options)] + tox_options_get_log_user_data.restype = POINTER(c_ubyte) + tox_options_get_log_user_data.errcheck = lambda v,*a : cast(v, c_void_p) ++ else: LOG_ERROR("tox_options_get_log_user_data") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 756 + if _libs["libtoxcore"].has("tox_options_set_log_user_data", "cdecl"): + tox_options_set_log_user_data = _libs["libtoxcore"].get("tox_options_set_log_user_data", "cdecl") + tox_options_set_log_user_data.argtypes = [POINTER(Tox_Options), POINTER(None)] + tox_options_set_log_user_data.restype = None ++ else: LOG_ERROR("tox_options_set_log_user_data") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 758 + if _libs["libtoxcore"].has("tox_options_get_experimental_thread_safety", "cdecl"): + tox_options_get_experimental_thread_safety = _libs["libtoxcore"].get("tox_options_get_experimental_thread_safety", "cdecl") + tox_options_get_experimental_thread_safety.argtypes = [POINTER(Tox_Options)] + tox_options_get_experimental_thread_safety.restype = c_bool ++ else: LOG_ERROR("tox_options_get_experimental_thread_safety") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 760 + if _libs["libtoxcore"].has("tox_options_set_experimental_thread_safety", "cdecl"): + tox_options_set_experimental_thread_safety = _libs["libtoxcore"].get("tox_options_set_experimental_thread_safety", "cdecl") + tox_options_set_experimental_thread_safety.argtypes = [POINTER(Tox_Options), c_bool] + tox_options_set_experimental_thread_safety.restype = None ++ else: LOG_ERROR("tox_options_set_experimental_thread_safety") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 762 + if _libs["libtoxcore"].has("tox_options_get_operating_system", "cdecl"): + tox_options_get_operating_system = _libs["libtoxcore"].get("tox_options_get_operating_system", "cdecl") + tox_options_get_operating_system.argtypes = [POINTER(Tox_Options)] + tox_options_get_operating_system.restype = POINTER(Tox_System) ++ else: LOG_ERROR("tox_options_get_operating_system") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 764 + if _libs["libtoxcore"].has("tox_options_set_operating_system", "cdecl"): + tox_options_set_operating_system = _libs["libtoxcore"].get("tox_options_set_operating_system", "cdecl") + tox_options_set_operating_system.argtypes = [POINTER(Tox_Options), POINTER(Tox_System)] + tox_options_set_operating_system.restype = None ++ else: LOG_ERROR("tox_options_set_operating_system") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 766 + for _lib in _libs.values(): + if not _lib.has("tox_options_get_experimental_groups_persistence", "cdecl"): + continue +*************** +*** 1384,1393 **** +--- 1455,1465 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 781 + if _libs["libtoxcore"].has("tox_options_default", "cdecl"): + tox_options_default = _libs["libtoxcore"].get("tox_options_default", "cdecl") + tox_options_default.argtypes = [POINTER(Tox_Options)] + tox_options_default.restype = None ++ else: LOG_ERROR("tox_options_default") + + enum_Tox_Err_Options_New = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 795 + + TOX_ERR_OPTIONS_NEW_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 795 + +*************** +*** 1398,1419 **** +--- 1470,1494 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 797 + if _libs["libtoxcore"].has("tox_err_options_new_to_string", "cdecl"): + tox_err_options_new_to_string = _libs["libtoxcore"].get("tox_err_options_new_to_string", "cdecl") + tox_err_options_new_to_string.argtypes = [Tox_Err_Options_New] + tox_err_options_new_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_options_new_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 811 + if _libs["libtoxcore"].has("tox_options_new", "cdecl"): + tox_options_new = _libs["libtoxcore"].get("tox_options_new", "cdecl") + tox_options_new.argtypes = [POINTER(Tox_Err_Options_New)] + tox_options_new.restype = POINTER(Tox_Options) ++ else: LOG_ERROR("tox_options_new") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 819 + if _libs["libtoxcore"].has("tox_options_free", "cdecl"): + tox_options_free = _libs["libtoxcore"].get("tox_options_free", "cdecl") + tox_options_free.argtypes = [POINTER(Tox_Options)] + tox_options_free.restype = None ++ else: LOG_ERROR("tox_options_free") + + enum_Tox_Err_New = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 887 + + TOX_ERR_NEW_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 887 + +*************** +*** 1440,1473 **** +--- 1515,1553 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 889 + if _libs["libtoxcore"].has("tox_err_new_to_string", "cdecl"): + tox_err_new_to_string = _libs["libtoxcore"].get("tox_err_new_to_string", "cdecl") + tox_err_new_to_string.argtypes = [Tox_Err_New] + tox_err_new_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_new_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 904 + if _libs["libtoxcore"].has("tox_new", "cdecl"): + tox_new = _libs["libtoxcore"].get("tox_new", "cdecl") + tox_new.argtypes = [POINTER(Tox_Options), POINTER(Tox_Err_New)] + tox_new.restype = POINTER(Tox) ++ else: LOG_ERROR("tox_new") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 913 + if _libs["libtoxcore"].has("tox_kill", "cdecl"): + tox_kill = _libs["libtoxcore"].get("tox_kill", "cdecl") + tox_kill.argtypes = [POINTER(Tox)] + tox_kill.restype = None ++ else: LOG_ERROR("tox_kill") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 923 + if _libs["libtoxcore"].has("tox_get_savedata_size", "cdecl"): + tox_get_savedata_size = _libs["libtoxcore"].get("tox_get_savedata_size", "cdecl") + tox_get_savedata_size.argtypes = [POINTER(Tox)] + tox_get_savedata_size.restype = c_size_t ++ else: LOG_ERROR("tox_get_savedata_size") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 932 + if _libs["libtoxcore"].has("tox_get_savedata", "cdecl"): + tox_get_savedata = _libs["libtoxcore"].get("tox_get_savedata", "cdecl") + tox_get_savedata.argtypes = [POINTER(Tox), POINTER(uint8_t)] + tox_get_savedata.restype = None ++ else: LOG_ERROR("tox_get_savedata") + + enum_Tox_Err_Bootstrap = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 964 + + TOX_ERR_BOOTSTRAP_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 964 + +*************** +*** 1482,1503 **** +--- 1562,1586 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 966 + if _libs["libtoxcore"].has("tox_err_bootstrap_to_string", "cdecl"): + tox_err_bootstrap_to_string = _libs["libtoxcore"].get("tox_err_bootstrap_to_string", "cdecl") + tox_err_bootstrap_to_string.argtypes = [Tox_Err_Bootstrap] + tox_err_bootstrap_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_bootstrap_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 983 + if _libs["libtoxcore"].has("tox_bootstrap", "cdecl"): + tox_bootstrap = _libs["libtoxcore"].get("tox_bootstrap", "cdecl") + tox_bootstrap.argtypes = [POINTER(Tox), String, uint16_t, uint8_t * int(32), POINTER(Tox_Err_Bootstrap)] + tox_bootstrap.restype = c_bool ++ else: LOG_ERROR("tox_bootstrap") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 999 + if _libs["libtoxcore"].has("tox_add_tcp_relay", "cdecl"): + tox_add_tcp_relay = _libs["libtoxcore"].get("tox_add_tcp_relay", "cdecl") + tox_add_tcp_relay.argtypes = [POINTER(Tox), String, uint16_t, uint8_t * int(32), POINTER(Tox_Err_Bootstrap)] + tox_add_tcp_relay.restype = c_bool ++ else: LOG_ERROR("tox_add_tcp_relay") + + enum_Tox_Connection = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 1032 + + TOX_CONNECTION_NONE = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 1032 + +*************** +*** 1510,1575 **** + # /usr/local/src/c-toxcore/toxcore/tox.h: 1034 + if _libs["libtoxcore"].has("tox_connection_to_string", "cdecl"): + tox_connection_to_string = _libs["libtoxcore"].get("tox_connection_to_string", "cdecl") + tox_connection_to_string.argtypes = [Tox_Connection] + tox_connection_to_string.restype = c_char_p + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1045 + if _libs["libtoxcore"].has("tox_self_get_connection_status", "cdecl"): + tox_self_get_connection_status = _libs["libtoxcore"].get("tox_self_get_connection_status", "cdecl") + tox_self_get_connection_status.argtypes = [POINTER(Tox)] + tox_self_get_connection_status.restype = Tox_Connection + + tox_self_connection_status_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Connection, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 1050 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1065 + if _libs["libtoxcore"].has("tox_callback_self_connection_status", "cdecl"): + tox_callback_self_connection_status = _libs["libtoxcore"].get("tox_callback_self_connection_status", "cdecl") +! tox_callback_self_connection_status.argtypes = [POINTER(Tox), POINTER(tox_self_connection_status_cb)] + tox_callback_self_connection_status.restype = None + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1071 + if _libs["libtoxcore"].has("tox_iteration_interval", "cdecl"): + tox_iteration_interval = _libs["libtoxcore"].get("tox_iteration_interval", "cdecl") + tox_iteration_interval.argtypes = [POINTER(Tox)] + tox_iteration_interval.restype = uint32_t + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1077 + if _libs["libtoxcore"].has("tox_iterate", "cdecl"): + tox_iterate = _libs["libtoxcore"].get("tox_iterate", "cdecl") + tox_iterate.argtypes = [POINTER(Tox), POINTER(None)] + tox_iterate.restype = None + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1095 + if _libs["libtoxcore"].has("tox_self_get_address", "cdecl"): + tox_self_get_address = _libs["libtoxcore"].get("tox_self_get_address", "cdecl") + tox_self_get_address.argtypes = [POINTER(Tox), uint8_t * int(((32 + sizeof(uint32_t)) + sizeof(uint16_t)))] + tox_self_get_address.restype = None + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1105 + if _libs["libtoxcore"].has("tox_self_set_nospam", "cdecl"): + tox_self_set_nospam = _libs["libtoxcore"].get("tox_self_set_nospam", "cdecl") + tox_self_set_nospam.argtypes = [POINTER(Tox), uint32_t] + tox_self_set_nospam.restype = None + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1112 + if _libs["libtoxcore"].has("tox_self_get_nospam", "cdecl"): + tox_self_get_nospam = _libs["libtoxcore"].get("tox_self_get_nospam", "cdecl") + tox_self_get_nospam.argtypes = [POINTER(Tox)] + tox_self_get_nospam.restype = uint32_t + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1120 + if _libs["libtoxcore"].has("tox_self_get_public_key", "cdecl"): + tox_self_get_public_key = _libs["libtoxcore"].get("tox_self_get_public_key", "cdecl") + tox_self_get_public_key.argtypes = [POINTER(Tox), uint8_t * int(32)] + tox_self_get_public_key.restype = None + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1128 + if _libs["libtoxcore"].has("tox_self_get_secret_key", "cdecl"): + tox_self_get_secret_key = _libs["libtoxcore"].get("tox_self_get_secret_key", "cdecl") + tox_self_get_secret_key.argtypes = [POINTER(Tox), uint8_t * int(32)] + tox_self_get_secret_key.restype = None + + enum_Tox_Err_Set_Info = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 1157 + + TOX_ERR_SET_INFO_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 1157 + +--- 1593,1668 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 1034 + if _libs["libtoxcore"].has("tox_connection_to_string", "cdecl"): + tox_connection_to_string = _libs["libtoxcore"].get("tox_connection_to_string", "cdecl") + tox_connection_to_string.argtypes = [Tox_Connection] + tox_connection_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_connection_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1045 + if _libs["libtoxcore"].has("tox_self_get_connection_status", "cdecl"): + tox_self_get_connection_status = _libs["libtoxcore"].get("tox_self_get_connection_status", "cdecl") + tox_self_get_connection_status.argtypes = [POINTER(Tox)] + tox_self_get_connection_status.restype = Tox_Connection ++ else: LOG_ERROR("tox_self_get_connection_status") + + tox_self_connection_status_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Connection, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 1050 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1065 + if _libs["libtoxcore"].has("tox_callback_self_connection_status", "cdecl"): + tox_callback_self_connection_status = _libs["libtoxcore"].get("tox_callback_self_connection_status", "cdecl") +! tox_callback_self_connection_status.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_self_connection_status_cb) + tox_callback_self_connection_status.restype = None ++ else: LOG_ERROR("tox_callback_self_connection_status") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1071 + if _libs["libtoxcore"].has("tox_iteration_interval", "cdecl"): + tox_iteration_interval = _libs["libtoxcore"].get("tox_iteration_interval", "cdecl") + tox_iteration_interval.argtypes = [POINTER(Tox)] + tox_iteration_interval.restype = uint32_t ++ else: LOG_ERROR("tox_iteration_interval") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1077 + if _libs["libtoxcore"].has("tox_iterate", "cdecl"): + tox_iterate = _libs["libtoxcore"].get("tox_iterate", "cdecl") + tox_iterate.argtypes = [POINTER(Tox), POINTER(None)] + tox_iterate.restype = None ++ else: LOG_ERROR("tox_iterate") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1095 + if _libs["libtoxcore"].has("tox_self_get_address", "cdecl"): + tox_self_get_address = _libs["libtoxcore"].get("tox_self_get_address", "cdecl") + tox_self_get_address.argtypes = [POINTER(Tox), uint8_t * int(((32 + sizeof(uint32_t)) + sizeof(uint16_t)))] + tox_self_get_address.restype = None ++ else: LOG_ERROR("tox_self_get_address") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1105 + if _libs["libtoxcore"].has("tox_self_set_nospam", "cdecl"): + tox_self_set_nospam = _libs["libtoxcore"].get("tox_self_set_nospam", "cdecl") + tox_self_set_nospam.argtypes = [POINTER(Tox), uint32_t] + tox_self_set_nospam.restype = None ++ else: LOG_ERROR("tox_self_set_nospam") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1112 + if _libs["libtoxcore"].has("tox_self_get_nospam", "cdecl"): + tox_self_get_nospam = _libs["libtoxcore"].get("tox_self_get_nospam", "cdecl") + tox_self_get_nospam.argtypes = [POINTER(Tox)] + tox_self_get_nospam.restype = uint32_t ++ else: LOG_ERROR("tox_self_get_nospam") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1120 + if _libs["libtoxcore"].has("tox_self_get_public_key", "cdecl"): + tox_self_get_public_key = _libs["libtoxcore"].get("tox_self_get_public_key", "cdecl") + tox_self_get_public_key.argtypes = [POINTER(Tox), uint8_t * int(32)] + tox_self_get_public_key.restype = None ++ else: LOG_ERROR("tox_self_get_public_key") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1128 + if _libs["libtoxcore"].has("tox_self_get_secret_key", "cdecl"): + tox_self_get_secret_key = _libs["libtoxcore"].get("tox_self_get_secret_key", "cdecl") + tox_self_get_secret_key.argtypes = [POINTER(Tox), uint8_t * int(32)] + tox_self_get_secret_key.restype = None ++ else: LOG_ERROR("tox_self_get_secret_key") + + enum_Tox_Err_Set_Info = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 1157 + + TOX_ERR_SET_INFO_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 1157 + +*************** +*** 1582,1639 **** +--- 1675,1741 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 1159 + if _libs["libtoxcore"].has("tox_err_set_info_to_string", "cdecl"): + tox_err_set_info_to_string = _libs["libtoxcore"].get("tox_err_set_info_to_string", "cdecl") + tox_err_set_info_to_string.argtypes = [Tox_Err_Set_Info] + tox_err_set_info_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_set_info_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1172 + if _libs["libtoxcore"].has("tox_self_set_name", "cdecl"): + tox_self_set_name = _libs["libtoxcore"].get("tox_self_set_name", "cdecl") + tox_self_set_name.argtypes = [POINTER(Tox), POINTER(uint8_t), c_size_t, POINTER(Tox_Err_Set_Info)] + tox_self_set_name.restype = c_bool ++ else: LOG_ERROR("tox_self_set_name") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1182 + if _libs["libtoxcore"].has("tox_self_get_name_size", "cdecl"): + tox_self_get_name_size = _libs["libtoxcore"].get("tox_self_get_name_size", "cdecl") + tox_self_get_name_size.argtypes = [POINTER(Tox)] + tox_self_get_name_size.restype = c_size_t ++ else: LOG_ERROR("tox_self_get_name_size") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1196 + if _libs["libtoxcore"].has("tox_self_get_name", "cdecl"): + tox_self_get_name = _libs["libtoxcore"].get("tox_self_get_name", "cdecl") + tox_self_get_name.argtypes = [POINTER(Tox), POINTER(uint8_t)] + tox_self_get_name.restype = None ++ else: LOG_ERROR("tox_self_get_name") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1205 + if _libs["libtoxcore"].has("tox_self_set_status_message", "cdecl"): + tox_self_set_status_message = _libs["libtoxcore"].get("tox_self_set_status_message", "cdecl") + tox_self_set_status_message.argtypes = [POINTER(Tox), POINTER(uint8_t), c_size_t, POINTER(Tox_Err_Set_Info)] + tox_self_set_status_message.restype = c_bool ++ else: LOG_ERROR("tox_self_set_status_message") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1216 + if _libs["libtoxcore"].has("tox_self_get_status_message_size", "cdecl"): + tox_self_get_status_message_size = _libs["libtoxcore"].get("tox_self_get_status_message_size", "cdecl") + tox_self_get_status_message_size.argtypes = [POINTER(Tox)] + tox_self_get_status_message_size.restype = c_size_t ++ else: LOG_ERROR("tox_self_get_status_message_size") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1230 + if _libs["libtoxcore"].has("tox_self_get_status_message", "cdecl"): + tox_self_get_status_message = _libs["libtoxcore"].get("tox_self_get_status_message", "cdecl") + tox_self_get_status_message.argtypes = [POINTER(Tox), POINTER(uint8_t)] + tox_self_get_status_message.restype = None ++ else: LOG_ERROR("tox_self_get_status_message") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1237 + if _libs["libtoxcore"].has("tox_self_set_status", "cdecl"): + tox_self_set_status = _libs["libtoxcore"].get("tox_self_set_status", "cdecl") + tox_self_set_status.argtypes = [POINTER(Tox), Tox_User_Status] + tox_self_set_status.restype = None ++ else: LOG_ERROR("tox_self_set_status") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1242 + if _libs["libtoxcore"].has("tox_self_get_status", "cdecl"): + tox_self_get_status = _libs["libtoxcore"].get("tox_self_get_status", "cdecl") + tox_self_get_status.argtypes = [POINTER(Tox)] + tox_self_get_status.restype = Tox_User_Status ++ else: LOG_ERROR("tox_self_get_status") + + Tox_Friend_Number = uint32_t# /usr/local/src/c-toxcore/toxcore/tox.h: 1250 + + enum_Tox_Err_Friend_Add = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 1302 + +*************** +*** 1660,1681 **** +--- 1762,1786 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 1304 + if _libs["libtoxcore"].has("tox_err_friend_add_to_string", "cdecl"): + tox_err_friend_add_to_string = _libs["libtoxcore"].get("tox_err_friend_add_to_string", "cdecl") + tox_err_friend_add_to_string.argtypes = [Tox_Err_Friend_Add] + tox_err_friend_add_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_friend_add_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1329 + if _libs["libtoxcore"].has("tox_friend_add", "cdecl"): + tox_friend_add = _libs["libtoxcore"].get("tox_friend_add", "cdecl") + tox_friend_add.argtypes = [POINTER(Tox), uint8_t * int(((32 + sizeof(uint32_t)) + sizeof(uint16_t))), POINTER(uint8_t), c_size_t, POINTER(Tox_Err_Friend_Add)] + tox_friend_add.restype = Tox_Friend_Number ++ else: LOG_ERROR("tox_friend_add") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1352 + if _libs["libtoxcore"].has("tox_friend_add_norequest", "cdecl"): + tox_friend_add_norequest = _libs["libtoxcore"].get("tox_friend_add_norequest", "cdecl") + tox_friend_add_norequest.argtypes = [POINTER(Tox), uint8_t * int(32), POINTER(Tox_Err_Friend_Add)] + tox_friend_add_norequest.restype = Tox_Friend_Number ++ else: LOG_ERROR("tox_friend_add_norequest") + + enum_Tox_Err_Friend_Delete = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 1367 + + TOX_ERR_FRIEND_DELETE_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 1367 + +*************** +*** 1686,1701 **** +--- 1791,1808 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 1369 + if _libs["libtoxcore"].has("tox_err_friend_delete_to_string", "cdecl"): + tox_err_friend_delete_to_string = _libs["libtoxcore"].get("tox_err_friend_delete_to_string", "cdecl") + tox_err_friend_delete_to_string.argtypes = [Tox_Err_Friend_Delete] + tox_err_friend_delete_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_friend_delete_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1382 + if _libs["libtoxcore"].has("tox_friend_delete", "cdecl"): + tox_friend_delete = _libs["libtoxcore"].get("tox_friend_delete", "cdecl") + tox_friend_delete.argtypes = [POINTER(Tox), Tox_Friend_Number, POINTER(Tox_Err_Friend_Delete)] + tox_friend_delete.restype = c_bool ++ else: LOG_ERROR("tox_friend_delete") + + enum_Tox_Err_Friend_By_Public_Key = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 1407 + + TOX_ERR_FRIEND_BY_PUBLIC_KEY_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 1407 + +*************** +*** 1708,1741 **** +--- 1815,1853 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 1409 + if _libs["libtoxcore"].has("tox_err_friend_by_public_key_to_string", "cdecl"): + tox_err_friend_by_public_key_to_string = _libs["libtoxcore"].get("tox_err_friend_by_public_key_to_string", "cdecl") + tox_err_friend_by_public_key_to_string.argtypes = [Tox_Err_Friend_By_Public_Key] + tox_err_friend_by_public_key_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_friend_by_public_key_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1417 + if _libs["libtoxcore"].has("tox_friend_by_public_key", "cdecl"): + tox_friend_by_public_key = _libs["libtoxcore"].get("tox_friend_by_public_key", "cdecl") + tox_friend_by_public_key.argtypes = [POINTER(Tox), uint8_t * int(32), POINTER(Tox_Err_Friend_By_Public_Key)] + tox_friend_by_public_key.restype = Tox_Friend_Number ++ else: LOG_ERROR("tox_friend_by_public_key") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1423 + if _libs["libtoxcore"].has("tox_friend_exists", "cdecl"): + tox_friend_exists = _libs["libtoxcore"].get("tox_friend_exists", "cdecl") + tox_friend_exists.argtypes = [POINTER(Tox), Tox_Friend_Number] + tox_friend_exists.restype = c_bool ++ else: LOG_ERROR("tox_friend_exists") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1431 + if _libs["libtoxcore"].has("tox_self_get_friend_list_size", "cdecl"): + tox_self_get_friend_list_size = _libs["libtoxcore"].get("tox_self_get_friend_list_size", "cdecl") + tox_self_get_friend_list_size.argtypes = [POINTER(Tox)] + tox_self_get_friend_list_size.restype = c_size_t ++ else: LOG_ERROR("tox_self_get_friend_list_size") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1441 + if _libs["libtoxcore"].has("tox_self_get_friend_list", "cdecl"): + tox_self_get_friend_list = _libs["libtoxcore"].get("tox_self_get_friend_list", "cdecl") + tox_self_get_friend_list.argtypes = [POINTER(Tox), POINTER(Tox_Friend_Number)] + tox_self_get_friend_list.restype = None ++ else: LOG_ERROR("tox_self_get_friend_list") + + enum_Tox_Err_Friend_Get_Public_Key = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 1455 + + TOX_ERR_FRIEND_GET_PUBLIC_KEY_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 1455 + +*************** +*** 1746,1761 **** +--- 1858,1875 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 1457 + if _libs["libtoxcore"].has("tox_err_friend_get_public_key_to_string", "cdecl"): + tox_err_friend_get_public_key_to_string = _libs["libtoxcore"].get("tox_err_friend_get_public_key_to_string", "cdecl") + tox_err_friend_get_public_key_to_string.argtypes = [Tox_Err_Friend_Get_Public_Key] + tox_err_friend_get_public_key_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_friend_get_public_key_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1468 + if _libs["libtoxcore"].has("tox_friend_get_public_key", "cdecl"): + tox_friend_get_public_key = _libs["libtoxcore"].get("tox_friend_get_public_key", "cdecl") + tox_friend_get_public_key.argtypes = [POINTER(Tox), Tox_Friend_Number, uint8_t * int(32), POINTER(Tox_Err_Friend_Get_Public_Key)] + tox_friend_get_public_key.restype = c_bool ++ else: LOG_ERROR("tox_friend_get_public_key") + + enum_Tox_Err_Friend_Get_Last_Online = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 1484 + + TOX_ERR_FRIEND_GET_LAST_ONLINE_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 1484 + +*************** +*** 1766,1781 **** +--- 1880,1897 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 1486 + if _libs["libtoxcore"].has("tox_err_friend_get_last_online_to_string", "cdecl"): + tox_err_friend_get_last_online_to_string = _libs["libtoxcore"].get("tox_err_friend_get_last_online_to_string", "cdecl") + tox_err_friend_get_last_online_to_string.argtypes = [Tox_Err_Friend_Get_Last_Online] + tox_err_friend_get_last_online_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_friend_get_last_online_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1496 + if _libs["libtoxcore"].has("tox_friend_get_last_online", "cdecl"): + tox_friend_get_last_online = _libs["libtoxcore"].get("tox_friend_get_last_online", "cdecl") + tox_friend_get_last_online.argtypes = [POINTER(Tox), Tox_Friend_Number, POINTER(Tox_Err_Friend_Get_Last_Online)] + tox_friend_get_last_online.restype = uint64_t ++ else: LOG_ERROR("tox_friend_get_last_online") + + enum_Tox_Err_Friend_Query = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 1527 + + TOX_ERR_FRIEND_QUERY_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 1527 + +*************** +*** 1788,1879 **** + # /usr/local/src/c-toxcore/toxcore/tox.h: 1529 + if _libs["libtoxcore"].has("tox_err_friend_query_to_string", "cdecl"): + tox_err_friend_query_to_string = _libs["libtoxcore"].get("tox_err_friend_query_to_string", "cdecl") + tox_err_friend_query_to_string.argtypes = [Tox_Err_Friend_Query] + tox_err_friend_query_to_string.restype = c_char_p + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1539 + if _libs["libtoxcore"].has("tox_friend_get_name_size", "cdecl"): + tox_friend_get_name_size = _libs["libtoxcore"].get("tox_friend_get_name_size", "cdecl") + tox_friend_get_name_size.argtypes = [POINTER(Tox), Tox_Friend_Number, POINTER(Tox_Err_Friend_Query)] + tox_friend_get_name_size.restype = c_size_t + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1556 + if _libs["libtoxcore"].has("tox_friend_get_name", "cdecl"): + tox_friend_get_name = _libs["libtoxcore"].get("tox_friend_get_name", "cdecl") + tox_friend_get_name.argtypes = [POINTER(Tox), Tox_Friend_Number, POINTER(uint8_t), POINTER(Tox_Err_Friend_Query)] + tox_friend_get_name.restype = c_bool + + tox_friend_name_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Friend_Number, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 1566 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1577 + if _libs["libtoxcore"].has("tox_callback_friend_name", "cdecl"): + tox_callback_friend_name = _libs["libtoxcore"].get("tox_callback_friend_name", "cdecl") +! tox_callback_friend_name.argtypes = [POINTER(Tox), POINTER(tox_friend_name_cb)] + tox_callback_friend_name.restype = None + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1584 + if _libs["libtoxcore"].has("tox_friend_get_status_message_size", "cdecl"): + tox_friend_get_status_message_size = _libs["libtoxcore"].get("tox_friend_get_status_message_size", "cdecl") + tox_friend_get_status_message_size.argtypes = [POINTER(Tox), Tox_Friend_Number, POINTER(Tox_Err_Friend_Query)] + tox_friend_get_status_message_size.restype = c_size_t + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1599 + if _libs["libtoxcore"].has("tox_friend_get_status_message", "cdecl"): + tox_friend_get_status_message = _libs["libtoxcore"].get("tox_friend_get_status_message", "cdecl") + tox_friend_get_status_message.argtypes = [POINTER(Tox), Tox_Friend_Number, POINTER(uint8_t), POINTER(Tox_Err_Friend_Query)] + tox_friend_get_status_message.restype = c_bool + + tox_friend_status_message_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Friend_Number, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 1611 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1622 + if _libs["libtoxcore"].has("tox_callback_friend_status_message", "cdecl"): + tox_callback_friend_status_message = _libs["libtoxcore"].get("tox_callback_friend_status_message", "cdecl") +! tox_callback_friend_status_message.argtypes = [POINTER(Tox), POINTER(tox_friend_status_message_cb)] + tox_callback_friend_status_message.restype = None + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1635 + if _libs["libtoxcore"].has("tox_friend_get_status", "cdecl"): + tox_friend_get_status = _libs["libtoxcore"].get("tox_friend_get_status", "cdecl") + tox_friend_get_status.argtypes = [POINTER(Tox), Tox_Friend_Number, POINTER(Tox_Err_Friend_Query)] + tox_friend_get_status.restype = Tox_User_Status + + tox_friend_status_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Friend_Number, Tox_User_Status, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 1643 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1653 + if _libs["libtoxcore"].has("tox_callback_friend_status", "cdecl"): + tox_callback_friend_status = _libs["libtoxcore"].get("tox_callback_friend_status", "cdecl") +! tox_callback_friend_status.argtypes = [POINTER(Tox), POINTER(tox_friend_status_cb)] + tox_callback_friend_status.restype = None + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1670 + if _libs["libtoxcore"].has("tox_friend_get_connection_status", "cdecl"): + tox_friend_get_connection_status = _libs["libtoxcore"].get("tox_friend_get_connection_status", "cdecl") + tox_friend_get_connection_status.argtypes = [POINTER(Tox), Tox_Friend_Number, POINTER(Tox_Err_Friend_Query)] + tox_friend_get_connection_status.restype = Tox_Connection + + tox_friend_connection_status_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Friend_Number, Tox_Connection, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 1679 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1693 + if _libs["libtoxcore"].has("tox_callback_friend_connection_status", "cdecl"): + tox_callback_friend_connection_status = _libs["libtoxcore"].get("tox_callback_friend_connection_status", "cdecl") +! tox_callback_friend_connection_status.argtypes = [POINTER(Tox), POINTER(tox_friend_connection_status_cb)] + tox_callback_friend_connection_status.restype = None + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1707 + if _libs["libtoxcore"].has("tox_friend_get_typing", "cdecl"): + tox_friend_get_typing = _libs["libtoxcore"].get("tox_friend_get_typing", "cdecl") + tox_friend_get_typing.argtypes = [POINTER(Tox), Tox_Friend_Number, POINTER(Tox_Err_Friend_Query)] + tox_friend_get_typing.restype = c_bool + + tox_friend_typing_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Friend_Number, c_bool, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 1716 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1726 + if _libs["libtoxcore"].has("tox_callback_friend_typing", "cdecl"): + tox_callback_friend_typing = _libs["libtoxcore"].get("tox_callback_friend_typing", "cdecl") +! tox_callback_friend_typing.argtypes = [POINTER(Tox), POINTER(tox_friend_typing_cb)] + tox_callback_friend_typing.restype = None + + enum_Tox_Err_Set_Typing = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 1746 + + TOX_ERR_SET_TYPING_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 1746 + +--- 1904,2008 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 1529 + if _libs["libtoxcore"].has("tox_err_friend_query_to_string", "cdecl"): + tox_err_friend_query_to_string = _libs["libtoxcore"].get("tox_err_friend_query_to_string", "cdecl") + tox_err_friend_query_to_string.argtypes = [Tox_Err_Friend_Query] + tox_err_friend_query_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_friend_query_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1539 + if _libs["libtoxcore"].has("tox_friend_get_name_size", "cdecl"): + tox_friend_get_name_size = _libs["libtoxcore"].get("tox_friend_get_name_size", "cdecl") + tox_friend_get_name_size.argtypes = [POINTER(Tox), Tox_Friend_Number, POINTER(Tox_Err_Friend_Query)] + tox_friend_get_name_size.restype = c_size_t ++ else: LOG_ERROR("tox_friend_get_name_size") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1556 + if _libs["libtoxcore"].has("tox_friend_get_name", "cdecl"): + tox_friend_get_name = _libs["libtoxcore"].get("tox_friend_get_name", "cdecl") + tox_friend_get_name.argtypes = [POINTER(Tox), Tox_Friend_Number, POINTER(uint8_t), POINTER(Tox_Err_Friend_Query)] + tox_friend_get_name.restype = c_bool ++ else: LOG_ERROR("tox_friend_get_name") + + tox_friend_name_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Friend_Number, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 1566 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1577 + if _libs["libtoxcore"].has("tox_callback_friend_name", "cdecl"): + tox_callback_friend_name = _libs["libtoxcore"].get("tox_callback_friend_name", "cdecl") +! tox_callback_friend_name.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_friend_name_cb) + tox_callback_friend_name.restype = None ++ else: LOG_ERROR("tox_callback_friend_name") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1584 + if _libs["libtoxcore"].has("tox_friend_get_status_message_size", "cdecl"): + tox_friend_get_status_message_size = _libs["libtoxcore"].get("tox_friend_get_status_message_size", "cdecl") + tox_friend_get_status_message_size.argtypes = [POINTER(Tox), Tox_Friend_Number, POINTER(Tox_Err_Friend_Query)] + tox_friend_get_status_message_size.restype = c_size_t ++ else: LOG_ERROR("tox_friend_get_status_message_size") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1599 + if _libs["libtoxcore"].has("tox_friend_get_status_message", "cdecl"): + tox_friend_get_status_message = _libs["libtoxcore"].get("tox_friend_get_status_message", "cdecl") + tox_friend_get_status_message.argtypes = [POINTER(Tox), Tox_Friend_Number, POINTER(uint8_t), POINTER(Tox_Err_Friend_Query)] + tox_friend_get_status_message.restype = c_bool ++ else: LOG_ERROR("tox_friend_get_status_message") + + tox_friend_status_message_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Friend_Number, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 1611 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1622 + if _libs["libtoxcore"].has("tox_callback_friend_status_message", "cdecl"): + tox_callback_friend_status_message = _libs["libtoxcore"].get("tox_callback_friend_status_message", "cdecl") +! tox_callback_friend_status_message.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_friend_status_message_cb) + tox_callback_friend_status_message.restype = None ++ else: LOG_ERROR("tox_callback_friend_status_message") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1635 + if _libs["libtoxcore"].has("tox_friend_get_status", "cdecl"): + tox_friend_get_status = _libs["libtoxcore"].get("tox_friend_get_status", "cdecl") + tox_friend_get_status.argtypes = [POINTER(Tox), Tox_Friend_Number, POINTER(Tox_Err_Friend_Query)] + tox_friend_get_status.restype = Tox_User_Status ++ else: LOG_ERROR("tox_friend_get_status") + + tox_friend_status_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Friend_Number, Tox_User_Status, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 1643 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1653 + if _libs["libtoxcore"].has("tox_callback_friend_status", "cdecl"): + tox_callback_friend_status = _libs["libtoxcore"].get("tox_callback_friend_status", "cdecl") +! tox_callback_friend_status.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_friend_status_cb) + tox_callback_friend_status.restype = None ++ else: LOG_ERROR("tox_callback_friend_status") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1670 + if _libs["libtoxcore"].has("tox_friend_get_connection_status", "cdecl"): + tox_friend_get_connection_status = _libs["libtoxcore"].get("tox_friend_get_connection_status", "cdecl") + tox_friend_get_connection_status.argtypes = [POINTER(Tox), Tox_Friend_Number, POINTER(Tox_Err_Friend_Query)] + tox_friend_get_connection_status.restype = Tox_Connection ++ else: LOG_ERROR("tox_friend_get_connection_status") + + tox_friend_connection_status_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Friend_Number, Tox_Connection, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 1679 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1693 + if _libs["libtoxcore"].has("tox_callback_friend_connection_status", "cdecl"): + tox_callback_friend_connection_status = _libs["libtoxcore"].get("tox_callback_friend_connection_status", "cdecl") +! tox_callback_friend_connection_status.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_friend_connection_status_cb) + tox_callback_friend_connection_status.restype = None ++ else: LOG_ERROR("tox_callback_friend_connection_status") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1707 + if _libs["libtoxcore"].has("tox_friend_get_typing", "cdecl"): + tox_friend_get_typing = _libs["libtoxcore"].get("tox_friend_get_typing", "cdecl") + tox_friend_get_typing.argtypes = [POINTER(Tox), Tox_Friend_Number, POINTER(Tox_Err_Friend_Query)] + tox_friend_get_typing.restype = c_bool ++ else: LOG_ERROR("tox_friend_get_typing") + + tox_friend_typing_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Friend_Number, c_bool, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 1716 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1726 + if _libs["libtoxcore"].has("tox_callback_friend_typing", "cdecl"): + tox_callback_friend_typing = _libs["libtoxcore"].get("tox_callback_friend_typing", "cdecl") +! tox_callback_friend_typing.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_friend_typing_cb) + tox_callback_friend_typing.restype = None ++ else: LOG_ERROR("tox_callback_friend_typing") + + enum_Tox_Err_Set_Typing = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 1746 + + TOX_ERR_SET_TYPING_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 1746 + +*************** +*** 1884,1899 **** +--- 2013,2030 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 1748 + if _libs["libtoxcore"].has("tox_err_set_typing_to_string", "cdecl"): + tox_err_set_typing_to_string = _libs["libtoxcore"].get("tox_err_set_typing_to_string", "cdecl") + tox_err_set_typing_to_string.argtypes = [Tox_Err_Set_Typing] + tox_err_set_typing_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_set_typing_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1760 + if _libs["libtoxcore"].has("tox_self_set_typing", "cdecl"): + tox_self_set_typing = _libs["libtoxcore"].get("tox_self_set_typing", "cdecl") + tox_self_set_typing.argtypes = [POINTER(Tox), Tox_Friend_Number, c_bool, POINTER(Tox_Err_Set_Typing)] + tox_self_set_typing.restype = c_bool ++ else: LOG_ERROR("tox_self_set_typing") + + enum_Tox_Err_Friend_Send_Message = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 1800 + + TOX_ERR_FRIEND_SEND_MESSAGE_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 1800 + +*************** +*** 1914,1963 **** + # /usr/local/src/c-toxcore/toxcore/tox.h: 1802 + if _libs["libtoxcore"].has("tox_err_friend_send_message_to_string", "cdecl"): + tox_err_friend_send_message_to_string = _libs["libtoxcore"].get("tox_err_friend_send_message_to_string", "cdecl") + tox_err_friend_send_message_to_string.argtypes = [Tox_Err_Friend_Send_Message] + tox_err_friend_send_message_to_string.restype = c_char_p + + Tox_Friend_Message_Id = uint32_t# /usr/local/src/c-toxcore/toxcore/tox.h: 1804 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1829 + if _libs["libtoxcore"].has("tox_friend_send_message", "cdecl"): + tox_friend_send_message = _libs["libtoxcore"].get("tox_friend_send_message", "cdecl") + tox_friend_send_message.argtypes = [POINTER(Tox), Tox_Friend_Number, Tox_Message_Type, POINTER(uint8_t), c_size_t, POINTER(Tox_Err_Friend_Send_Message)] + tox_friend_send_message.restype = Tox_Friend_Message_Id + + tox_friend_read_receipt_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Friend_Number, Tox_Friend_Message_Id, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 1838 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1849 + if _libs["libtoxcore"].has("tox_callback_friend_read_receipt", "cdecl"): + tox_callback_friend_read_receipt = _libs["libtoxcore"].get("tox_callback_friend_read_receipt", "cdecl") +! tox_callback_friend_read_receipt.argtypes = [POINTER(Tox), POINTER(tox_friend_read_receipt_cb)] + tox_callback_friend_read_receipt.restype = None + + tox_friend_request_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), uint8_t * int(32), POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 1862 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1874 + if _libs["libtoxcore"].has("tox_callback_friend_request", "cdecl"): + tox_callback_friend_request = _libs["libtoxcore"].get("tox_callback_friend_request", "cdecl") +! tox_callback_friend_request.argtypes = [POINTER(Tox), POINTER(tox_friend_request_cb)] + tox_callback_friend_request.restype = None + + tox_friend_message_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Friend_Number, Tox_Message_Type, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 1881 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1892 + if _libs["libtoxcore"].has("tox_callback_friend_message", "cdecl"): + tox_callback_friend_message = _libs["libtoxcore"].get("tox_callback_friend_message", "cdecl") +! tox_callback_friend_message.argtypes = [POINTER(Tox), POINTER(tox_friend_message_cb)] + tox_callback_friend_message.restype = None + + Tox_File_Number = uint32_t# /usr/local/src/c-toxcore/toxcore/tox.h: 1900 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1921 + if _libs["libtoxcore"].has("tox_hash", "cdecl"): + tox_hash = _libs["libtoxcore"].get("tox_hash", "cdecl") + tox_hash.argtypes = [uint8_t * int(32), POINTER(uint8_t), c_size_t] + tox_hash.restype = c_bool + + enum_Tox_File_Kind = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 1932 + + TOX_FILE_KIND_DATA = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 1932 + +--- 2045,2100 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 1802 + if _libs["libtoxcore"].has("tox_err_friend_send_message_to_string", "cdecl"): + tox_err_friend_send_message_to_string = _libs["libtoxcore"].get("tox_err_friend_send_message_to_string", "cdecl") + tox_err_friend_send_message_to_string.argtypes = [Tox_Err_Friend_Send_Message] + tox_err_friend_send_message_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_friend_send_message_to_string") + + Tox_Friend_Message_Id = uint32_t# /usr/local/src/c-toxcore/toxcore/tox.h: 1804 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1829 + if _libs["libtoxcore"].has("tox_friend_send_message", "cdecl"): + tox_friend_send_message = _libs["libtoxcore"].get("tox_friend_send_message", "cdecl") + tox_friend_send_message.argtypes = [POINTER(Tox), Tox_Friend_Number, Tox_Message_Type, POINTER(uint8_t), c_size_t, POINTER(Tox_Err_Friend_Send_Message)] + tox_friend_send_message.restype = Tox_Friend_Message_Id ++ else: LOG_ERROR("tox_friend_send_message") + + tox_friend_read_receipt_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Friend_Number, Tox_Friend_Message_Id, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 1838 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1849 + if _libs["libtoxcore"].has("tox_callback_friend_read_receipt", "cdecl"): + tox_callback_friend_read_receipt = _libs["libtoxcore"].get("tox_callback_friend_read_receipt", "cdecl") +! tox_callback_friend_read_receipt.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_friend_read_receipt_cb) + tox_callback_friend_read_receipt.restype = None ++ else: LOG_ERROR("tox_callback_friend_read_receipt") + + tox_friend_request_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), uint8_t * int(32), POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 1862 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1874 + if _libs["libtoxcore"].has("tox_callback_friend_request", "cdecl"): + tox_callback_friend_request = _libs["libtoxcore"].get("tox_callback_friend_request", "cdecl") +! tox_callback_friend_request.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_friend_request_cb) + tox_callback_friend_request.restype = None ++ else: LOG_ERROR("tox_callback_friend_request") + + tox_friend_message_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Friend_Number, Tox_Message_Type, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 1881 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1892 + if _libs["libtoxcore"].has("tox_callback_friend_message", "cdecl"): + tox_callback_friend_message = _libs["libtoxcore"].get("tox_callback_friend_message", "cdecl") +! tox_callback_friend_message.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_friend_message_cb) + tox_callback_friend_message.restype = None ++ else: LOG_ERROR("tox_callback_friend_message") + + Tox_File_Number = uint32_t# /usr/local/src/c-toxcore/toxcore/tox.h: 1900 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 1921 + if _libs["libtoxcore"].has("tox_hash", "cdecl"): + tox_hash = _libs["libtoxcore"].get("tox_hash", "cdecl") + tox_hash.argtypes = [uint8_t * int(32), POINTER(uint8_t), c_size_t] + tox_hash.restype = c_bool ++ else: LOG_ERROR("tox_hash") + + enum_Tox_File_Kind = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 1932 + + TOX_FILE_KIND_DATA = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 1932 + +*************** +*** 1976,1985 **** +--- 2113,2123 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 1988 + if _libs["libtoxcore"].has("tox_file_control_to_string", "cdecl"): + tox_file_control_to_string = _libs["libtoxcore"].get("tox_file_control_to_string", "cdecl") + tox_file_control_to_string.argtypes = [Tox_File_Control] + tox_file_control_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_file_control_to_string") + + enum_Tox_Err_File_Control = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 2033 + + TOX_ERR_FILE_CONTROL_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 2033 + +*************** +*** 2002,2025 **** + # /usr/local/src/c-toxcore/toxcore/tox.h: 2035 + if _libs["libtoxcore"].has("tox_err_file_control_to_string", "cdecl"): + tox_err_file_control_to_string = _libs["libtoxcore"].get("tox_err_file_control_to_string", "cdecl") + tox_err_file_control_to_string.argtypes = [Tox_Err_File_Control] + tox_err_file_control_to_string.restype = c_char_p + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2047 + if _libs["libtoxcore"].has("tox_file_control", "cdecl"): + tox_file_control = _libs["libtoxcore"].get("tox_file_control", "cdecl") + tox_file_control.argtypes = [POINTER(Tox), Tox_Friend_Number, Tox_File_Number, Tox_File_Control, POINTER(Tox_Err_File_Control)] + tox_file_control.restype = c_bool + + tox_file_recv_control_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Friend_Number, Tox_File_Number, Tox_File_Control, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 2060 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2072 + if _libs["libtoxcore"].has("tox_callback_file_recv_control", "cdecl"): + tox_callback_file_recv_control = _libs["libtoxcore"].get("tox_callback_file_recv_control", "cdecl") +! tox_callback_file_recv_control.argtypes = [POINTER(Tox), POINTER(tox_file_recv_control_cb)] + tox_callback_file_recv_control.restype = None + + enum_Tox_Err_File_Seek = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 2111 + + TOX_ERR_FILE_SEEK_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 2111 + +--- 2140,2166 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 2035 + if _libs["libtoxcore"].has("tox_err_file_control_to_string", "cdecl"): + tox_err_file_control_to_string = _libs["libtoxcore"].get("tox_err_file_control_to_string", "cdecl") + tox_err_file_control_to_string.argtypes = [Tox_Err_File_Control] + tox_err_file_control_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_file_control_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2047 + if _libs["libtoxcore"].has("tox_file_control", "cdecl"): + tox_file_control = _libs["libtoxcore"].get("tox_file_control", "cdecl") + tox_file_control.argtypes = [POINTER(Tox), Tox_Friend_Number, Tox_File_Number, Tox_File_Control, POINTER(Tox_Err_File_Control)] + tox_file_control.restype = c_bool ++ else: LOG_ERROR("tox_file_control") + + tox_file_recv_control_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Friend_Number, Tox_File_Number, Tox_File_Control, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 2060 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2072 + if _libs["libtoxcore"].has("tox_callback_file_recv_control", "cdecl"): + tox_callback_file_recv_control = _libs["libtoxcore"].get("tox_callback_file_recv_control", "cdecl") +! tox_callback_file_recv_control.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_file_recv_control_cb) + tox_callback_file_recv_control.restype = None ++ else: LOG_ERROR("tox_callback_file_recv_control") + + enum_Tox_Err_File_Seek = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 2111 + + TOX_ERR_FILE_SEEK_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 2111 + +*************** +*** 2040,2055 **** +--- 2181,2198 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 2113 + if _libs["libtoxcore"].has("tox_err_file_seek_to_string", "cdecl"): + tox_err_file_seek_to_string = _libs["libtoxcore"].get("tox_err_file_seek_to_string", "cdecl") + tox_err_file_seek_to_string.argtypes = [Tox_Err_File_Seek] + tox_err_file_seek_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_file_seek_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2126 + if _libs["libtoxcore"].has("tox_file_seek", "cdecl"): + tox_file_seek = _libs["libtoxcore"].get("tox_file_seek", "cdecl") + tox_file_seek.argtypes = [POINTER(Tox), Tox_Friend_Number, Tox_File_Number, uint64_t, POINTER(Tox_Err_File_Seek)] + tox_file_seek.restype = c_bool ++ else: LOG_ERROR("tox_file_seek") + + enum_Tox_Err_File_Get = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 2151 + + TOX_ERR_FILE_GET_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 2151 + +*************** +*** 2064,2079 **** +--- 2207,2224 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 2153 + if _libs["libtoxcore"].has("tox_err_file_get_to_string", "cdecl"): + tox_err_file_get_to_string = _libs["libtoxcore"].get("tox_err_file_get_to_string", "cdecl") + tox_err_file_get_to_string.argtypes = [Tox_Err_File_Get] + tox_err_file_get_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_file_get_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2166 + if _libs["libtoxcore"].has("tox_file_get_file_id", "cdecl"): + tox_file_get_file_id = _libs["libtoxcore"].get("tox_file_get_file_id", "cdecl") + tox_file_get_file_id.argtypes = [POINTER(Tox), Tox_Friend_Number, Tox_File_Number, uint8_t * int(32), POINTER(Tox_Err_File_Get)] + tox_file_get_file_id.restype = c_bool ++ else: LOG_ERROR("tox_file_get_file_id") + + enum_Tox_Err_File_Send = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 2210 + + TOX_ERR_FILE_SEND_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 2210 + +*************** +*** 2092,2107 **** +--- 2237,2254 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 2212 + if _libs["libtoxcore"].has("tox_err_file_send_to_string", "cdecl"): + tox_err_file_send_to_string = _libs["libtoxcore"].get("tox_err_file_send_to_string", "cdecl") + tox_err_file_send_to_string.argtypes = [Tox_Err_File_Send] + tox_err_file_send_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_file_send_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2272 + if _libs["libtoxcore"].has("tox_file_send", "cdecl"): + tox_file_send = _libs["libtoxcore"].get("tox_file_send", "cdecl") + tox_file_send.argtypes = [POINTER(Tox), Tox_Friend_Number, uint32_t, uint64_t, uint8_t * int(32), POINTER(uint8_t), c_size_t, POINTER(Tox_Err_File_Send)] + tox_file_send.restype = Tox_File_Number ++ else: LOG_ERROR("tox_file_send") + + enum_Tox_Err_File_Send_Chunk = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 2327 + + TOX_ERR_FILE_SEND_CHUNK_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 2327 + +*************** +*** 2126,2165 **** + # /usr/local/src/c-toxcore/toxcore/tox.h: 2329 + if _libs["libtoxcore"].has("tox_err_file_send_chunk_to_string", "cdecl"): + tox_err_file_send_chunk_to_string = _libs["libtoxcore"].get("tox_err_file_send_chunk_to_string", "cdecl") + tox_err_file_send_chunk_to_string.argtypes = [Tox_Err_File_Send_Chunk] + tox_err_file_send_chunk_to_string.restype = c_char_p + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2347 + if _libs["libtoxcore"].has("tox_file_send_chunk", "cdecl"): + tox_file_send_chunk = _libs["libtoxcore"].get("tox_file_send_chunk", "cdecl") + tox_file_send_chunk.argtypes = [POINTER(Tox), Tox_Friend_Number, Tox_File_Number, uint64_t, POINTER(uint8_t), c_size_t, POINTER(Tox_Err_File_Send_Chunk)] + tox_file_send_chunk.restype = c_bool + + tox_file_chunk_request_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Friend_Number, Tox_File_Number, uint64_t, c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 2373 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2384 + if _libs["libtoxcore"].has("tox_callback_file_chunk_request", "cdecl"): + tox_callback_file_chunk_request = _libs["libtoxcore"].get("tox_callback_file_chunk_request", "cdecl") +! tox_callback_file_chunk_request.argtypes = [POINTER(Tox), POINTER(tox_file_chunk_request_cb)] + tox_callback_file_chunk_request.restype = None + + tox_file_recv_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Friend_Number, Tox_File_Number, uint32_t, uint64_t, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 2410 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2421 + if _libs["libtoxcore"].has("tox_callback_file_recv", "cdecl"): + tox_callback_file_recv = _libs["libtoxcore"].get("tox_callback_file_recv", "cdecl") +! tox_callback_file_recv.argtypes = [POINTER(Tox), POINTER(tox_file_recv_cb)] + tox_callback_file_recv.restype = None + + tox_file_recv_chunk_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Friend_Number, Tox_File_Number, uint64_t, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 2439 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2451 + if _libs["libtoxcore"].has("tox_callback_file_recv_chunk", "cdecl"): + tox_callback_file_recv_chunk = _libs["libtoxcore"].get("tox_callback_file_recv_chunk", "cdecl") +! tox_callback_file_recv_chunk.argtypes = [POINTER(Tox), POINTER(tox_file_recv_chunk_cb)] + tox_callback_file_recv_chunk.restype = None + + Tox_Conference_Number = uint32_t# /usr/local/src/c-toxcore/toxcore/tox.h: 2459 + + Tox_Conference_Peer_Number = uint32_t# /usr/local/src/c-toxcore/toxcore/tox.h: 2460 + +--- 2273,2317 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 2329 + if _libs["libtoxcore"].has("tox_err_file_send_chunk_to_string", "cdecl"): + tox_err_file_send_chunk_to_string = _libs["libtoxcore"].get("tox_err_file_send_chunk_to_string", "cdecl") + tox_err_file_send_chunk_to_string.argtypes = [Tox_Err_File_Send_Chunk] + tox_err_file_send_chunk_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_file_send_chunk_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2347 + if _libs["libtoxcore"].has("tox_file_send_chunk", "cdecl"): + tox_file_send_chunk = _libs["libtoxcore"].get("tox_file_send_chunk", "cdecl") + tox_file_send_chunk.argtypes = [POINTER(Tox), Tox_Friend_Number, Tox_File_Number, uint64_t, POINTER(uint8_t), c_size_t, POINTER(Tox_Err_File_Send_Chunk)] + tox_file_send_chunk.restype = c_bool ++ else: LOG_ERROR("tox_file_send_chunk") + + tox_file_chunk_request_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Friend_Number, Tox_File_Number, uint64_t, c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 2373 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2384 + if _libs["libtoxcore"].has("tox_callback_file_chunk_request", "cdecl"): + tox_callback_file_chunk_request = _libs["libtoxcore"].get("tox_callback_file_chunk_request", "cdecl") +! tox_callback_file_chunk_request.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_file_chunk_request_cb) + tox_callback_file_chunk_request.restype = None ++ else: LOG_ERROR("tox_callback_file_chunk_request") + + tox_file_recv_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Friend_Number, Tox_File_Number, uint32_t, uint64_t, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 2410 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2421 + if _libs["libtoxcore"].has("tox_callback_file_recv", "cdecl"): + tox_callback_file_recv = _libs["libtoxcore"].get("tox_callback_file_recv", "cdecl") +! tox_callback_file_recv.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_file_recv_cb) + tox_callback_file_recv.restype = None ++ else: LOG_ERROR("tox_callback_file_recv") + + tox_file_recv_chunk_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Friend_Number, Tox_File_Number, uint64_t, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 2439 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2451 + if _libs["libtoxcore"].has("tox_callback_file_recv_chunk", "cdecl"): + tox_callback_file_recv_chunk = _libs["libtoxcore"].get("tox_callback_file_recv_chunk", "cdecl") +! tox_callback_file_recv_chunk.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_file_recv_chunk_cb) + tox_callback_file_recv_chunk.restype = None ++ else: LOG_ERROR("tox_callback_file_recv_chunk") + + Tox_Conference_Number = uint32_t# /usr/local/src/c-toxcore/toxcore/tox.h: 2459 + + Tox_Conference_Peer_Number = uint32_t# /usr/local/src/c-toxcore/toxcore/tox.h: 2460 + +*************** +*** 2174,2231 **** + # /usr/local/src/c-toxcore/toxcore/tox.h: 2479 + if _libs["libtoxcore"].has("tox_conference_type_to_string", "cdecl"): + tox_conference_type_to_string = _libs["libtoxcore"].get("tox_conference_type_to_string", "cdecl") + tox_conference_type_to_string.argtypes = [Tox_Conference_Type] + tox_conference_type_to_string.restype = c_char_p + + tox_conference_invite_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Friend_Number, Tox_Conference_Type, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 2491 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2502 + if _libs["libtoxcore"].has("tox_callback_conference_invite", "cdecl"): + tox_callback_conference_invite = _libs["libtoxcore"].get("tox_callback_conference_invite", "cdecl") +! tox_callback_conference_invite.argtypes = [POINTER(Tox), POINTER(tox_conference_invite_cb)] + tox_callback_conference_invite.restype = None + + tox_conference_connected_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Conference_Number, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 2507 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2517 + if _libs["libtoxcore"].has("tox_callback_conference_connected", "cdecl"): + tox_callback_conference_connected = _libs["libtoxcore"].get("tox_callback_conference_connected", "cdecl") +! tox_callback_conference_connected.argtypes = [POINTER(Tox), POINTER(tox_conference_connected_cb)] + tox_callback_conference_connected.restype = None + + tox_conference_message_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Conference_Number, Tox_Conference_Peer_Number, Tox_Message_Type, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 2527 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2538 + if _libs["libtoxcore"].has("tox_callback_conference_message", "cdecl"): + tox_callback_conference_message = _libs["libtoxcore"].get("tox_callback_conference_message", "cdecl") +! tox_callback_conference_message.argtypes = [POINTER(Tox), POINTER(tox_conference_message_cb)] + tox_callback_conference_message.restype = None + + tox_conference_title_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Conference_Number, Tox_Conference_Peer_Number, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 2547 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2560 + if _libs["libtoxcore"].has("tox_callback_conference_title", "cdecl"): + tox_callback_conference_title = _libs["libtoxcore"].get("tox_callback_conference_title", "cdecl") +! tox_callback_conference_title.argtypes = [POINTER(Tox), POINTER(tox_conference_title_cb)] + tox_callback_conference_title.restype = None + + tox_conference_peer_name_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Conference_Number, Tox_Conference_Peer_Number, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 2569 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2580 + if _libs["libtoxcore"].has("tox_callback_conference_peer_name", "cdecl"): + tox_callback_conference_peer_name = _libs["libtoxcore"].get("tox_callback_conference_peer_name", "cdecl") +! tox_callback_conference_peer_name.argtypes = [POINTER(Tox), POINTER(tox_conference_peer_name_cb)] + tox_callback_conference_peer_name.restype = None + + tox_conference_peer_list_changed_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Conference_Number, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 2586 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2595 + if _libs["libtoxcore"].has("tox_callback_conference_peer_list_changed", "cdecl"): + tox_callback_conference_peer_list_changed = _libs["libtoxcore"].get("tox_callback_conference_peer_list_changed", "cdecl") +! tox_callback_conference_peer_list_changed.argtypes = [POINTER(Tox), POINTER(tox_conference_peer_list_changed_cb)] + tox_callback_conference_peer_list_changed.restype = None + + enum_Tox_Err_Conference_New = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 2609 + + TOX_ERR_CONFERENCE_NEW_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 2609 + +--- 2326,2390 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 2479 + if _libs["libtoxcore"].has("tox_conference_type_to_string", "cdecl"): + tox_conference_type_to_string = _libs["libtoxcore"].get("tox_conference_type_to_string", "cdecl") + tox_conference_type_to_string.argtypes = [Tox_Conference_Type] + tox_conference_type_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_conference_type_to_string") + + tox_conference_invite_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Friend_Number, Tox_Conference_Type, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 2491 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2502 + if _libs["libtoxcore"].has("tox_callback_conference_invite", "cdecl"): + tox_callback_conference_invite = _libs["libtoxcore"].get("tox_callback_conference_invite", "cdecl") +! tox_callback_conference_invite.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_conference_invite_cb) + tox_callback_conference_invite.restype = None ++ else: LOG_ERROR("tox_callback_conference_invite") + + tox_conference_connected_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Conference_Number, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 2507 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2517 + if _libs["libtoxcore"].has("tox_callback_conference_connected", "cdecl"): + tox_callback_conference_connected = _libs["libtoxcore"].get("tox_callback_conference_connected", "cdecl") +! tox_callback_conference_connected.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_conference_connected_cb) + tox_callback_conference_connected.restype = None ++ else: LOG_ERROR("tox_callback_conference_connected") + + tox_conference_message_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Conference_Number, Tox_Conference_Peer_Number, Tox_Message_Type, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 2527 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2538 + if _libs["libtoxcore"].has("tox_callback_conference_message", "cdecl"): + tox_callback_conference_message = _libs["libtoxcore"].get("tox_callback_conference_message", "cdecl") +! tox_callback_conference_message.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_conference_message_cb) + tox_callback_conference_message.restype = None ++ else: LOG_ERROR("tox_callback_conference_message") + + tox_conference_title_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Conference_Number, Tox_Conference_Peer_Number, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 2547 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2560 + if _libs["libtoxcore"].has("tox_callback_conference_title", "cdecl"): + tox_callback_conference_title = _libs["libtoxcore"].get("tox_callback_conference_title", "cdecl") +! tox_callback_conference_title.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_conference_title_cb) + tox_callback_conference_title.restype = None ++ else: LOG_ERROR("tox_callback_conference_title") + + tox_conference_peer_name_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Conference_Number, Tox_Conference_Peer_Number, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 2569 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2580 + if _libs["libtoxcore"].has("tox_callback_conference_peer_name", "cdecl"): + tox_callback_conference_peer_name = _libs["libtoxcore"].get("tox_callback_conference_peer_name", "cdecl") +! tox_callback_conference_peer_name.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_conference_peer_name_cb) + tox_callback_conference_peer_name.restype = None ++ else: LOG_ERROR("tox_callback_conference_peer_name") + + tox_conference_peer_list_changed_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Conference_Number, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 2586 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2595 + if _libs["libtoxcore"].has("tox_callback_conference_peer_list_changed", "cdecl"): + tox_callback_conference_peer_list_changed = _libs["libtoxcore"].get("tox_callback_conference_peer_list_changed", "cdecl") +! tox_callback_conference_peer_list_changed.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_conference_peer_list_changed_cb) + tox_callback_conference_peer_list_changed.restype = None ++ else: LOG_ERROR("tox_callback_conference_peer_list_changed") + + enum_Tox_Err_Conference_New = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 2609 + + TOX_ERR_CONFERENCE_NEW_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 2609 + +*************** +*** 2236,2251 **** +--- 2395,2412 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 2611 + if _libs["libtoxcore"].has("tox_err_conference_new_to_string", "cdecl"): + tox_err_conference_new_to_string = _libs["libtoxcore"].get("tox_err_conference_new_to_string", "cdecl") + tox_err_conference_new_to_string.argtypes = [Tox_Err_Conference_New] + tox_err_conference_new_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_conference_new_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2622 + if _libs["libtoxcore"].has("tox_conference_new", "cdecl"): + tox_conference_new = _libs["libtoxcore"].get("tox_conference_new", "cdecl") + tox_conference_new.argtypes = [POINTER(Tox), POINTER(Tox_Err_Conference_New)] + tox_conference_new.restype = Tox_Conference_Number ++ else: LOG_ERROR("tox_conference_new") + + enum_Tox_Err_Conference_Delete = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 2636 + + TOX_ERR_CONFERENCE_DELETE_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 2636 + +*************** +*** 2256,2271 **** +--- 2417,2434 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 2638 + if _libs["libtoxcore"].has("tox_err_conference_delete_to_string", "cdecl"): + tox_err_conference_delete_to_string = _libs["libtoxcore"].get("tox_err_conference_delete_to_string", "cdecl") + tox_err_conference_delete_to_string.argtypes = [Tox_Err_Conference_Delete] + tox_err_conference_delete_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_conference_delete_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2647 + if _libs["libtoxcore"].has("tox_conference_delete", "cdecl"): + tox_conference_delete = _libs["libtoxcore"].get("tox_conference_delete", "cdecl") + tox_conference_delete.argtypes = [POINTER(Tox), Tox_Conference_Number, POINTER(Tox_Err_Conference_Delete)] + tox_conference_delete.restype = c_bool ++ else: LOG_ERROR("tox_conference_delete") + + enum_Tox_Err_Conference_Peer_Query = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 2674 + + TOX_ERR_CONFERENCE_PEER_QUERY_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 2674 + +*************** +*** 2280,2349 **** +--- 2443,2523 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 2676 + if _libs["libtoxcore"].has("tox_err_conference_peer_query_to_string", "cdecl"): + tox_err_conference_peer_query_to_string = _libs["libtoxcore"].get("tox_err_conference_peer_query_to_string", "cdecl") + tox_err_conference_peer_query_to_string.argtypes = [Tox_Err_Conference_Peer_Query] + tox_err_conference_peer_query_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_conference_peer_query_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2685 + if _libs["libtoxcore"].has("tox_conference_peer_count", "cdecl"): + tox_conference_peer_count = _libs["libtoxcore"].get("tox_conference_peer_count", "cdecl") + tox_conference_peer_count.argtypes = [POINTER(Tox), Tox_Conference_Number, POINTER(Tox_Err_Conference_Peer_Query)] + tox_conference_peer_count.restype = Tox_Conference_Peer_Number ++ else: LOG_ERROR("tox_conference_peer_count") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2693 + if _libs["libtoxcore"].has("tox_conference_peer_get_name_size", "cdecl"): + tox_conference_peer_get_name_size = _libs["libtoxcore"].get("tox_conference_peer_get_name_size", "cdecl") + tox_conference_peer_get_name_size.argtypes = [POINTER(Tox), Tox_Conference_Number, Tox_Conference_Peer_Number, POINTER(Tox_Err_Conference_Peer_Query)] + tox_conference_peer_get_name_size.restype = c_size_t ++ else: LOG_ERROR("tox_conference_peer_get_name_size") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2706 + if _libs["libtoxcore"].has("tox_conference_peer_get_name", "cdecl"): + tox_conference_peer_get_name = _libs["libtoxcore"].get("tox_conference_peer_get_name", "cdecl") + tox_conference_peer_get_name.argtypes = [POINTER(Tox), Tox_Conference_Number, Tox_Conference_Peer_Number, POINTER(uint8_t), POINTER(Tox_Err_Conference_Peer_Query)] + tox_conference_peer_get_name.restype = c_bool ++ else: LOG_ERROR("tox_conference_peer_get_name") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2717 + if _libs["libtoxcore"].has("tox_conference_peer_get_public_key", "cdecl"): + tox_conference_peer_get_public_key = _libs["libtoxcore"].get("tox_conference_peer_get_public_key", "cdecl") + tox_conference_peer_get_public_key.argtypes = [POINTER(Tox), Tox_Conference_Number, Tox_Conference_Peer_Number, uint8_t * int(32), POINTER(Tox_Err_Conference_Peer_Query)] + tox_conference_peer_get_public_key.restype = c_bool ++ else: LOG_ERROR("tox_conference_peer_get_public_key") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2724 + if _libs["libtoxcore"].has("tox_conference_peer_number_is_ours", "cdecl"): + tox_conference_peer_number_is_ours = _libs["libtoxcore"].get("tox_conference_peer_number_is_ours", "cdecl") + tox_conference_peer_number_is_ours.argtypes = [POINTER(Tox), Tox_Conference_Number, Tox_Conference_Peer_Number, POINTER(Tox_Err_Conference_Peer_Query)] + tox_conference_peer_number_is_ours.restype = c_bool ++ else: LOG_ERROR("tox_conference_peer_number_is_ours") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2736 + if _libs["libtoxcore"].has("tox_conference_offline_peer_count", "cdecl"): + tox_conference_offline_peer_count = _libs["libtoxcore"].get("tox_conference_offline_peer_count", "cdecl") + tox_conference_offline_peer_count.argtypes = [POINTER(Tox), Tox_Conference_Number, POINTER(Tox_Err_Conference_Peer_Query)] + tox_conference_offline_peer_count.restype = uint32_t ++ else: LOG_ERROR("tox_conference_offline_peer_count") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2745 + if _libs["libtoxcore"].has("tox_conference_offline_peer_get_name_size", "cdecl"): + tox_conference_offline_peer_get_name_size = _libs["libtoxcore"].get("tox_conference_offline_peer_get_name_size", "cdecl") + tox_conference_offline_peer_get_name_size.argtypes = [POINTER(Tox), Tox_Conference_Number, Tox_Conference_Peer_Number, POINTER(Tox_Err_Conference_Peer_Query)] + tox_conference_offline_peer_get_name_size.restype = c_size_t ++ else: LOG_ERROR("tox_conference_offline_peer_get_name_size") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2759 + if _libs["libtoxcore"].has("tox_conference_offline_peer_get_name", "cdecl"): + tox_conference_offline_peer_get_name = _libs["libtoxcore"].get("tox_conference_offline_peer_get_name", "cdecl") + tox_conference_offline_peer_get_name.argtypes = [POINTER(Tox), Tox_Conference_Number, Tox_Conference_Peer_Number, POINTER(uint8_t), POINTER(Tox_Err_Conference_Peer_Query)] + tox_conference_offline_peer_get_name.restype = c_bool ++ else: LOG_ERROR("tox_conference_offline_peer_get_name") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2770 + if _libs["libtoxcore"].has("tox_conference_offline_peer_get_public_key", "cdecl"): + tox_conference_offline_peer_get_public_key = _libs["libtoxcore"].get("tox_conference_offline_peer_get_public_key", "cdecl") + tox_conference_offline_peer_get_public_key.argtypes = [POINTER(Tox), Tox_Conference_Number, Tox_Conference_Peer_Number, uint8_t * int(32), POINTER(Tox_Err_Conference_Peer_Query)] + tox_conference_offline_peer_get_public_key.restype = c_bool ++ else: LOG_ERROR("tox_conference_offline_peer_get_public_key") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2777 + if _libs["libtoxcore"].has("tox_conference_offline_peer_get_last_active", "cdecl"): + tox_conference_offline_peer_get_last_active = _libs["libtoxcore"].get("tox_conference_offline_peer_get_last_active", "cdecl") + tox_conference_offline_peer_get_last_active.argtypes = [POINTER(Tox), Tox_Conference_Number, Tox_Conference_Peer_Number, POINTER(Tox_Err_Conference_Peer_Query)] + tox_conference_offline_peer_get_last_active.restype = uint64_t ++ else: LOG_ERROR("tox_conference_offline_peer_get_last_active") + + enum_Tox_Err_Conference_Set_Max_Offline = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 2793 + + TOX_ERR_CONFERENCE_SET_MAX_OFFLINE_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 2793 + +*************** +*** 2354,2369 **** +--- 2528,2545 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 2795 + if _libs["libtoxcore"].has("tox_err_conference_set_max_offline_to_string", "cdecl"): + tox_err_conference_set_max_offline_to_string = _libs["libtoxcore"].get("tox_err_conference_set_max_offline_to_string", "cdecl") + tox_err_conference_set_max_offline_to_string.argtypes = [Tox_Err_Conference_Set_Max_Offline] + tox_err_conference_set_max_offline_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_conference_set_max_offline_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2800 + if _libs["libtoxcore"].has("tox_conference_set_max_offline", "cdecl"): + tox_conference_set_max_offline = _libs["libtoxcore"].get("tox_conference_set_max_offline", "cdecl") + tox_conference_set_max_offline.argtypes = [POINTER(Tox), Tox_Conference_Number, uint32_t, POINTER(Tox_Err_Conference_Set_Max_Offline)] + tox_conference_set_max_offline.restype = c_bool ++ else: LOG_ERROR("tox_conference_set_max_offline") + + enum_Tox_Err_Conference_Invite = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 2826 + + TOX_ERR_CONFERENCE_INVITE_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 2826 + +*************** +*** 2378,2393 **** +--- 2554,2571 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 2828 + if _libs["libtoxcore"].has("tox_err_conference_invite_to_string", "cdecl"): + tox_err_conference_invite_to_string = _libs["libtoxcore"].get("tox_err_conference_invite_to_string", "cdecl") + tox_err_conference_invite_to_string.argtypes = [Tox_Err_Conference_Invite] + tox_err_conference_invite_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_conference_invite_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2838 + if _libs["libtoxcore"].has("tox_conference_invite", "cdecl"): + tox_conference_invite = _libs["libtoxcore"].get("tox_conference_invite", "cdecl") + tox_conference_invite.argtypes = [POINTER(Tox), Tox_Friend_Number, Tox_Conference_Number, POINTER(Tox_Err_Conference_Invite)] + tox_conference_invite.restype = c_bool ++ else: LOG_ERROR("tox_conference_invite") + + enum_Tox_Err_Conference_Join = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 2879 + + TOX_ERR_CONFERENCE_JOIN_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 2879 + +*************** +*** 2408,2423 **** +--- 2586,2603 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 2881 + if _libs["libtoxcore"].has("tox_err_conference_join_to_string", "cdecl"): + tox_err_conference_join_to_string = _libs["libtoxcore"].get("tox_err_conference_join_to_string", "cdecl") + tox_err_conference_join_to_string.argtypes = [Tox_Err_Conference_Join] + tox_err_conference_join_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_conference_join_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2900 + if _libs["libtoxcore"].has("tox_conference_join", "cdecl"): + tox_conference_join = _libs["libtoxcore"].get("tox_conference_join", "cdecl") + tox_conference_join.argtypes = [POINTER(Tox), Tox_Friend_Number, POINTER(uint8_t), c_size_t, POINTER(Tox_Err_Conference_Join)] + tox_conference_join.restype = Tox_Conference_Number ++ else: LOG_ERROR("tox_conference_join") + + enum_Tox_Err_Conference_Send_Message = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 2932 + + TOX_ERR_CONFERENCE_SEND_MESSAGE_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 2932 + +*************** +*** 2434,2449 **** +--- 2614,2631 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 2934 + if _libs["libtoxcore"].has("tox_err_conference_send_message_to_string", "cdecl"): + tox_err_conference_send_message_to_string = _libs["libtoxcore"].get("tox_err_conference_send_message_to_string", "cdecl") + tox_err_conference_send_message_to_string.argtypes = [Tox_Err_Conference_Send_Message] + tox_err_conference_send_message_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_conference_send_message_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2955 + if _libs["libtoxcore"].has("tox_conference_send_message", "cdecl"): + tox_conference_send_message = _libs["libtoxcore"].get("tox_conference_send_message", "cdecl") + tox_conference_send_message.argtypes = [POINTER(Tox), Tox_Conference_Number, Tox_Message_Type, POINTER(uint8_t), c_size_t, POINTER(Tox_Err_Conference_Send_Message)] + tox_conference_send_message.restype = c_bool ++ else: LOG_ERROR("tox_conference_send_message") + + enum_Tox_Err_Conference_Title = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 2982 + + TOX_ERR_CONFERENCE_TITLE_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 2982 + +*************** +*** 2458,2497 **** +--- 2640,2685 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 2984 + if _libs["libtoxcore"].has("tox_err_conference_title_to_string", "cdecl"): + tox_err_conference_title_to_string = _libs["libtoxcore"].get("tox_err_conference_title_to_string", "cdecl") + tox_err_conference_title_to_string.argtypes = [Tox_Err_Conference_Title] + tox_err_conference_title_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_conference_title_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 2994 + if _libs["libtoxcore"].has("tox_conference_get_title_size", "cdecl"): + tox_conference_get_title_size = _libs["libtoxcore"].get("tox_conference_get_title_size", "cdecl") + tox_conference_get_title_size.argtypes = [POINTER(Tox), Tox_Conference_Number, POINTER(Tox_Err_Conference_Title)] + tox_conference_get_title_size.restype = c_size_t ++ else: LOG_ERROR("tox_conference_get_title_size") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3010 + if _libs["libtoxcore"].has("tox_conference_get_title", "cdecl"): + tox_conference_get_title = _libs["libtoxcore"].get("tox_conference_get_title", "cdecl") + tox_conference_get_title.argtypes = [POINTER(Tox), Tox_Conference_Number, POINTER(uint8_t), POINTER(Tox_Err_Conference_Title)] + tox_conference_get_title.restype = c_bool ++ else: LOG_ERROR("tox_conference_get_title") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3022 + if _libs["libtoxcore"].has("tox_conference_set_title", "cdecl"): + tox_conference_set_title = _libs["libtoxcore"].get("tox_conference_set_title", "cdecl") + tox_conference_set_title.argtypes = [POINTER(Tox), Tox_Conference_Number, POINTER(uint8_t), c_size_t, POINTER(Tox_Err_Conference_Title)] + tox_conference_set_title.restype = c_bool ++ else: LOG_ERROR("tox_conference_set_title") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3032 + if _libs["libtoxcore"].has("tox_conference_get_chatlist_size", "cdecl"): + tox_conference_get_chatlist_size = _libs["libtoxcore"].get("tox_conference_get_chatlist_size", "cdecl") + tox_conference_get_chatlist_size.argtypes = [POINTER(Tox)] + tox_conference_get_chatlist_size.restype = c_size_t ++ else: LOG_ERROR("tox_conference_get_chatlist_size") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3048 + if _libs["libtoxcore"].has("tox_conference_get_chatlist", "cdecl"): + tox_conference_get_chatlist = _libs["libtoxcore"].get("tox_conference_get_chatlist", "cdecl") + tox_conference_get_chatlist.argtypes = [POINTER(Tox), POINTER(Tox_Conference_Number)] + tox_conference_get_chatlist.restype = None ++ else: LOG_ERROR("tox_conference_get_chatlist") + + enum_Tox_Err_Conference_Get_Type = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 3067 + + TOX_ERR_CONFERENCE_GET_TYPE_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 3067 + +*************** +*** 2502,2523 **** +--- 2690,2714 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 3069 + if _libs["libtoxcore"].has("tox_err_conference_get_type_to_string", "cdecl"): + tox_err_conference_get_type_to_string = _libs["libtoxcore"].get("tox_err_conference_get_type_to_string", "cdecl") + tox_err_conference_get_type_to_string.argtypes = [Tox_Err_Conference_Get_Type] + tox_err_conference_get_type_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_conference_get_type_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3074 + if _libs["libtoxcore"].has("tox_conference_get_type", "cdecl"): + tox_conference_get_type = _libs["libtoxcore"].get("tox_conference_get_type", "cdecl") + tox_conference_get_type.argtypes = [POINTER(Tox), Tox_Conference_Number, POINTER(Tox_Err_Conference_Get_Type)] + tox_conference_get_type.restype = Tox_Conference_Type ++ else: LOG_ERROR("tox_conference_get_type") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3087 + if _libs["libtoxcore"].has("tox_conference_get_id", "cdecl"): + tox_conference_get_id = _libs["libtoxcore"].get("tox_conference_get_id", "cdecl") + tox_conference_get_id.argtypes = [POINTER(Tox), Tox_Conference_Number, uint8_t * int(32)] + tox_conference_get_id.restype = c_bool ++ else: LOG_ERROR("tox_conference_get_id") + + enum_Tox_Err_Conference_By_Id = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 3107 + + TOX_ERR_CONFERENCE_BY_ID_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 3107 + +*************** +*** 2530,2551 **** +--- 2721,2745 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 3109 + if _libs["libtoxcore"].has("tox_err_conference_by_id_to_string", "cdecl"): + tox_err_conference_by_id_to_string = _libs["libtoxcore"].get("tox_err_conference_by_id_to_string", "cdecl") + tox_err_conference_by_id_to_string.argtypes = [Tox_Err_Conference_By_Id] + tox_err_conference_by_id_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_conference_by_id_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3118 + if _libs["libtoxcore"].has("tox_conference_by_id", "cdecl"): + tox_conference_by_id = _libs["libtoxcore"].get("tox_conference_by_id", "cdecl") + tox_conference_by_id.argtypes = [POINTER(Tox), uint8_t * int(32), POINTER(Tox_Err_Conference_By_Id)] + tox_conference_by_id.restype = Tox_Conference_Number ++ else: LOG_ERROR("tox_conference_by_id") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3131 + if _libs["libtoxcore"].has("tox_conference_get_uid", "cdecl"): + tox_conference_get_uid = _libs["libtoxcore"].get("tox_conference_get_uid", "cdecl") + tox_conference_get_uid.argtypes = [POINTER(Tox), Tox_Conference_Number, uint8_t * int(32)] + tox_conference_get_uid.restype = c_bool ++ else: LOG_ERROR("tox_conference_get_uid") + + enum_Tox_Err_Conference_By_Uid = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 3151 + + TOX_ERR_CONFERENCE_BY_UID_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 3151 + +*************** +*** 2558,2573 **** +--- 2752,2769 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 3153 + if _libs["libtoxcore"].has("tox_err_conference_by_uid_to_string", "cdecl"): + tox_err_conference_by_uid_to_string = _libs["libtoxcore"].get("tox_err_conference_by_uid_to_string", "cdecl") + tox_err_conference_by_uid_to_string.argtypes = [Tox_Err_Conference_By_Uid] + tox_err_conference_by_uid_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_conference_by_uid_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3163 + if _libs["libtoxcore"].has("tox_conference_by_uid", "cdecl"): + tox_conference_by_uid = _libs["libtoxcore"].get("tox_conference_by_uid", "cdecl") + tox_conference_by_uid.argtypes = [POINTER(Tox), uint8_t * int(32), POINTER(Tox_Err_Conference_By_Uid)] + tox_conference_by_uid.restype = Tox_Conference_Number ++ else: LOG_ERROR("tox_conference_by_uid") + + enum_Tox_Err_Friend_Custom_Packet = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 3215 + + TOX_ERR_FRIEND_CUSTOM_PACKET_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 3215 + +*************** +*** 2590,2627 **** + # /usr/local/src/c-toxcore/toxcore/tox.h: 3217 + if _libs["libtoxcore"].has("tox_err_friend_custom_packet_to_string", "cdecl"): + tox_err_friend_custom_packet_to_string = _libs["libtoxcore"].get("tox_err_friend_custom_packet_to_string", "cdecl") + tox_err_friend_custom_packet_to_string.argtypes = [Tox_Err_Friend_Custom_Packet] + tox_err_friend_custom_packet_to_string.restype = c_char_p + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3239 + if _libs["libtoxcore"].has("tox_friend_send_lossy_packet", "cdecl"): + tox_friend_send_lossy_packet = _libs["libtoxcore"].get("tox_friend_send_lossy_packet", "cdecl") + tox_friend_send_lossy_packet.argtypes = [POINTER(Tox), Tox_Friend_Number, POINTER(uint8_t), c_size_t, POINTER(Tox_Err_Friend_Custom_Packet)] + tox_friend_send_lossy_packet.restype = c_bool + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3260 + if _libs["libtoxcore"].has("tox_friend_send_lossless_packet", "cdecl"): + tox_friend_send_lossless_packet = _libs["libtoxcore"].get("tox_friend_send_lossless_packet", "cdecl") + tox_friend_send_lossless_packet.argtypes = [POINTER(Tox), Tox_Friend_Number, POINTER(uint8_t), c_size_t, POINTER(Tox_Err_Friend_Custom_Packet)] + tox_friend_send_lossless_packet.restype = c_bool + + tox_friend_lossy_packet_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Friend_Number, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 3270 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3280 + if _libs["libtoxcore"].has("tox_callback_friend_lossy_packet", "cdecl"): + tox_callback_friend_lossy_packet = _libs["libtoxcore"].get("tox_callback_friend_lossy_packet", "cdecl") +! tox_callback_friend_lossy_packet.argtypes = [POINTER(Tox), POINTER(tox_friend_lossy_packet_cb)] + tox_callback_friend_lossy_packet.restype = None + + tox_friend_lossless_packet_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Friend_Number, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 3287 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3297 + if _libs["libtoxcore"].has("tox_callback_friend_lossless_packet", "cdecl"): + tox_callback_friend_lossless_packet = _libs["libtoxcore"].get("tox_callback_friend_lossless_packet", "cdecl") +! tox_callback_friend_lossless_packet.argtypes = [POINTER(Tox), POINTER(tox_friend_lossless_packet_cb)] + tox_callback_friend_lossless_packet.restype = None + + enum_Tox_Err_Get_Port = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 3317 + + TOX_ERR_GET_PORT_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 3317 + +--- 2786,2828 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 3217 + if _libs["libtoxcore"].has("tox_err_friend_custom_packet_to_string", "cdecl"): + tox_err_friend_custom_packet_to_string = _libs["libtoxcore"].get("tox_err_friend_custom_packet_to_string", "cdecl") + tox_err_friend_custom_packet_to_string.argtypes = [Tox_Err_Friend_Custom_Packet] + tox_err_friend_custom_packet_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_friend_custom_packet_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3239 + if _libs["libtoxcore"].has("tox_friend_send_lossy_packet", "cdecl"): + tox_friend_send_lossy_packet = _libs["libtoxcore"].get("tox_friend_send_lossy_packet", "cdecl") + tox_friend_send_lossy_packet.argtypes = [POINTER(Tox), Tox_Friend_Number, POINTER(uint8_t), c_size_t, POINTER(Tox_Err_Friend_Custom_Packet)] + tox_friend_send_lossy_packet.restype = c_bool ++ else: LOG_ERROR("tox_friend_send_lossy_packet") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3260 + if _libs["libtoxcore"].has("tox_friend_send_lossless_packet", "cdecl"): + tox_friend_send_lossless_packet = _libs["libtoxcore"].get("tox_friend_send_lossless_packet", "cdecl") + tox_friend_send_lossless_packet.argtypes = [POINTER(Tox), Tox_Friend_Number, POINTER(uint8_t), c_size_t, POINTER(Tox_Err_Friend_Custom_Packet)] + tox_friend_send_lossless_packet.restype = c_bool ++ else: LOG_ERROR("tox_friend_send_lossless_packet") + + tox_friend_lossy_packet_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Friend_Number, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 3270 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3280 + if _libs["libtoxcore"].has("tox_callback_friend_lossy_packet", "cdecl"): + tox_callback_friend_lossy_packet = _libs["libtoxcore"].get("tox_callback_friend_lossy_packet", "cdecl") +! tox_callback_friend_lossy_packet.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_friend_lossy_packet_cb) + tox_callback_friend_lossy_packet.restype = None ++ else: LOG_ERROR("tox_callback_friend_lossy_packet") + + tox_friend_lossless_packet_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Friend_Number, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 3287 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3297 + if _libs["libtoxcore"].has("tox_callback_friend_lossless_packet", "cdecl"): + tox_callback_friend_lossless_packet = _libs["libtoxcore"].get("tox_callback_friend_lossless_packet", "cdecl") +! tox_callback_friend_lossless_packet.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_friend_lossless_packet_cb) + tox_callback_friend_lossless_packet.restype = None ++ else: LOG_ERROR("tox_callback_friend_lossless_packet") + + enum_Tox_Err_Get_Port = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 3317 + + TOX_ERR_GET_PORT_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 3317 + +*************** +*** 2632,2659 **** +--- 2833,2864 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 3319 + if _libs["libtoxcore"].has("tox_err_get_port_to_string", "cdecl"): + tox_err_get_port_to_string = _libs["libtoxcore"].get("tox_err_get_port_to_string", "cdecl") + tox_err_get_port_to_string.argtypes = [Tox_Err_Get_Port] + tox_err_get_port_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_get_port_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3333 + if _libs["libtoxcore"].has("tox_self_get_dht_id", "cdecl"): + tox_self_get_dht_id = _libs["libtoxcore"].get("tox_self_get_dht_id", "cdecl") + tox_self_get_dht_id.argtypes = [POINTER(Tox), uint8_t * int(32)] + tox_self_get_dht_id.restype = None ++ else: LOG_ERROR("tox_self_get_dht_id") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3338 + if _libs["libtoxcore"].has("tox_self_get_udp_port", "cdecl"): + tox_self_get_udp_port = _libs["libtoxcore"].get("tox_self_get_udp_port", "cdecl") + tox_self_get_udp_port.argtypes = [POINTER(Tox), POINTER(Tox_Err_Get_Port)] + tox_self_get_udp_port.restype = uint16_t ++ else: LOG_ERROR("tox_self_get_udp_port") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3345 + if _libs["libtoxcore"].has("tox_self_get_tcp_port", "cdecl"): + tox_self_get_tcp_port = _libs["libtoxcore"].get("tox_self_get_tcp_port", "cdecl") + tox_self_get_tcp_port.argtypes = [POINTER(Tox), POINTER(Tox_Err_Get_Port)] + tox_self_get_tcp_port.restype = uint16_t ++ else: LOG_ERROR("tox_self_get_tcp_port") + + Tox_Group_Number = uint32_t# /usr/local/src/c-toxcore/toxcore/tox.h: 3353 + + Tox_Group_Peer_Number = uint32_t# /usr/local/src/c-toxcore/toxcore/tox.h: 3354 + +*************** +*** 2662,2719 **** +--- 2867,2933 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 3368 + if _libs["libtoxcore"].has("tox_group_max_topic_length", "cdecl"): + tox_group_max_topic_length = _libs["libtoxcore"].get("tox_group_max_topic_length", "cdecl") + tox_group_max_topic_length.argtypes = [] + tox_group_max_topic_length.restype = uint32_t ++ else: LOG_ERROR("tox_group_max_topic_length") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3375 + if _libs["libtoxcore"].has("tox_group_max_part_length", "cdecl"): + tox_group_max_part_length = _libs["libtoxcore"].get("tox_group_max_part_length", "cdecl") + tox_group_max_part_length.argtypes = [] + tox_group_max_part_length.restype = uint32_t ++ else: LOG_ERROR("tox_group_max_part_length") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3382 + if _libs["libtoxcore"].has("tox_group_max_message_length", "cdecl"): + tox_group_max_message_length = _libs["libtoxcore"].get("tox_group_max_message_length", "cdecl") + tox_group_max_message_length.argtypes = [] + tox_group_max_message_length.restype = uint32_t ++ else: LOG_ERROR("tox_group_max_message_length") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3389 + if _libs["libtoxcore"].has("tox_group_max_custom_lossy_packet_length", "cdecl"): + tox_group_max_custom_lossy_packet_length = _libs["libtoxcore"].get("tox_group_max_custom_lossy_packet_length", "cdecl") + tox_group_max_custom_lossy_packet_length.argtypes = [] + tox_group_max_custom_lossy_packet_length.restype = uint32_t ++ else: LOG_ERROR("tox_group_max_custom_lossy_packet_length") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3396 + if _libs["libtoxcore"].has("tox_group_max_custom_lossless_packet_length", "cdecl"): + tox_group_max_custom_lossless_packet_length = _libs["libtoxcore"].get("tox_group_max_custom_lossless_packet_length", "cdecl") + tox_group_max_custom_lossless_packet_length.argtypes = [] + tox_group_max_custom_lossless_packet_length.restype = uint32_t ++ else: LOG_ERROR("tox_group_max_custom_lossless_packet_length") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3403 + if _libs["libtoxcore"].has("tox_group_max_group_name_length", "cdecl"): + tox_group_max_group_name_length = _libs["libtoxcore"].get("tox_group_max_group_name_length", "cdecl") + tox_group_max_group_name_length.argtypes = [] + tox_group_max_group_name_length.restype = uint32_t ++ else: LOG_ERROR("tox_group_max_group_name_length") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3410 + if _libs["libtoxcore"].has("tox_group_max_password_size", "cdecl"): + tox_group_max_password_size = _libs["libtoxcore"].get("tox_group_max_password_size", "cdecl") + tox_group_max_password_size.argtypes = [] + tox_group_max_password_size.restype = uint32_t ++ else: LOG_ERROR("tox_group_max_password_size") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3417 + if _libs["libtoxcore"].has("tox_group_chat_id_size", "cdecl"): + tox_group_chat_id_size = _libs["libtoxcore"].get("tox_group_chat_id_size", "cdecl") + tox_group_chat_id_size.argtypes = [] + tox_group_chat_id_size.restype = uint32_t ++ else: LOG_ERROR("tox_group_chat_id_size") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3424 + if _libs["libtoxcore"].has("tox_group_peer_public_key_size", "cdecl"): + tox_group_peer_public_key_size = _libs["libtoxcore"].get("tox_group_peer_public_key_size", "cdecl") + tox_group_peer_public_key_size.argtypes = [] + tox_group_peer_public_key_size.restype = uint32_t ++ else: LOG_ERROR("tox_group_peer_public_key_size") + + enum_Tox_Group_Privacy_State = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 3457 + + TOX_GROUP_PRIVACY_STATE_PUBLIC = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 3457 + +*************** +*** 2724,2733 **** +--- 2938,2948 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 3459 + if _libs["libtoxcore"].has("tox_group_privacy_state_to_string", "cdecl"): + tox_group_privacy_state_to_string = _libs["libtoxcore"].get("tox_group_privacy_state_to_string", "cdecl") + tox_group_privacy_state_to_string.argtypes = [Tox_Group_Privacy_State] + tox_group_privacy_state_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_group_privacy_state_to_string") + + enum_Tox_Group_Topic_Lock = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 3476 + + TOX_GROUP_TOPIC_LOCK_ENABLED = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 3476 + +*************** +*** 2738,2747 **** +--- 2953,2963 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 3478 + if _libs["libtoxcore"].has("tox_group_topic_lock_to_string", "cdecl"): + tox_group_topic_lock_to_string = _libs["libtoxcore"].get("tox_group_topic_lock_to_string", "cdecl") + tox_group_topic_lock_to_string.argtypes = [Tox_Group_Topic_Lock] + tox_group_topic_lock_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_group_topic_lock_to_string") + + enum_Tox_Group_Voice_State = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 3499 + + TOX_GROUP_VOICE_STATE_ALL = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 3499 + +*************** +*** 2754,2763 **** +--- 2970,2980 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 3501 + if _libs["libtoxcore"].has("tox_group_voice_state_to_string", "cdecl"): + tox_group_voice_state_to_string = _libs["libtoxcore"].get("tox_group_voice_state_to_string", "cdecl") + tox_group_voice_state_to_string.argtypes = [Tox_Group_Voice_State] + tox_group_voice_state_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_group_voice_state_to_string") + + enum_Tox_Group_Role = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 3533 + + TOX_GROUP_ROLE_FOUNDER = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 3533 + +*************** +*** 2772,2781 **** +--- 2989,2999 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 3535 + if _libs["libtoxcore"].has("tox_group_role_to_string", "cdecl"): + tox_group_role_to_string = _libs["libtoxcore"].get("tox_group_role_to_string", "cdecl") + tox_group_role_to_string.argtypes = [Tox_Group_Role] + tox_group_role_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_group_role_to_string") + + enum_Tox_Err_Group_New = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 3576 + + TOX_ERR_GROUP_NEW_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 3576 + +*************** +*** 2794,2809 **** +--- 3012,3029 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 3578 + if _libs["libtoxcore"].has("tox_err_group_new_to_string", "cdecl"): + tox_err_group_new_to_string = _libs["libtoxcore"].get("tox_err_group_new_to_string", "cdecl") + tox_err_group_new_to_string.argtypes = [Tox_Err_Group_New] + tox_err_group_new_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_group_new_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3602 + if _libs["libtoxcore"].has("tox_group_new", "cdecl"): + tox_group_new = _libs["libtoxcore"].get("tox_group_new", "cdecl") + tox_group_new.argtypes = [POINTER(Tox), Tox_Group_Privacy_State, POINTER(uint8_t), c_size_t, POINTER(uint8_t), c_size_t, POINTER(Tox_Err_Group_New)] + tox_group_new.restype = Tox_Group_Number ++ else: LOG_ERROR("tox_group_new") + + enum_Tox_Err_Group_Join = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 3645 + + TOX_ERR_GROUP_JOIN_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 3645 + +*************** +*** 2824,2839 **** +--- 3044,3061 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 3647 + if _libs["libtoxcore"].has("tox_err_group_join_to_string", "cdecl"): + tox_err_group_join_to_string = _libs["libtoxcore"].get("tox_err_group_join_to_string", "cdecl") + tox_err_group_join_to_string.argtypes = [Tox_Err_Group_Join] + tox_err_group_join_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_group_join_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3666 + if _libs["libtoxcore"].has("tox_group_join", "cdecl"): + tox_group_join = _libs["libtoxcore"].get("tox_group_join", "cdecl") + tox_group_join.argtypes = [POINTER(Tox), uint8_t * int(32), POINTER(uint8_t), c_size_t, POINTER(uint8_t), c_size_t, POINTER(Tox_Err_Group_Join)] + tox_group_join.restype = Tox_Group_Number ++ else: LOG_ERROR("tox_group_join") + + enum_Tox_Err_Group_Is_Connected = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 3684 + + TOX_ERR_GROUP_IS_CONNECTED_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 3684 + +*************** +*** 2844,2859 **** +--- 3066,3083 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 3686 + if _libs["libtoxcore"].has("tox_err_group_is_connected_to_string", "cdecl"): + tox_err_group_is_connected_to_string = _libs["libtoxcore"].get("tox_err_group_is_connected_to_string", "cdecl") + tox_err_group_is_connected_to_string.argtypes = [Tox_Err_Group_Is_Connected] + tox_err_group_is_connected_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_group_is_connected_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3694 + if _libs["libtoxcore"].has("tox_group_is_connected", "cdecl"): + tox_group_is_connected = _libs["libtoxcore"].get("tox_group_is_connected", "cdecl") + tox_group_is_connected.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(Tox_Err_Group_Is_Connected)] + tox_group_is_connected.restype = c_bool ++ else: LOG_ERROR("tox_group_is_connected") + + enum_Tox_Err_Group_Disconnect = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 3712 + + TOX_ERR_GROUP_DISCONNECT_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 3712 + +*************** +*** 2866,2881 **** +--- 3090,3107 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 3714 + if _libs["libtoxcore"].has("tox_err_group_disconnect_to_string", "cdecl"): + tox_err_group_disconnect_to_string = _libs["libtoxcore"].get("tox_err_group_disconnect_to_string", "cdecl") + tox_err_group_disconnect_to_string.argtypes = [Tox_Err_Group_Disconnect] + tox_err_group_disconnect_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_group_disconnect_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3723 + if _libs["libtoxcore"].has("tox_group_disconnect", "cdecl"): + tox_group_disconnect = _libs["libtoxcore"].get("tox_group_disconnect", "cdecl") + tox_group_disconnect.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(Tox_Err_Group_Disconnect)] + tox_group_disconnect.restype = c_bool ++ else: LOG_ERROR("tox_group_disconnect") + + enum_Tox_Err_Group_Reconnect = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 3742 + + TOX_ERR_GROUP_RECONNECT_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 3742 + +*************** +*** 2888,2903 **** +--- 3114,3131 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 3744 + if _libs["libtoxcore"].has("tox_err_group_reconnect_to_string", "cdecl"): + tox_err_group_reconnect_to_string = _libs["libtoxcore"].get("tox_err_group_reconnect_to_string", "cdecl") + tox_err_group_reconnect_to_string.argtypes = [Tox_Err_Group_Reconnect] + tox_err_group_reconnect_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_group_reconnect_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3756 + if _libs["libtoxcore"].has("tox_group_reconnect", "cdecl"): + tox_group_reconnect = _libs["libtoxcore"].get("tox_group_reconnect", "cdecl") + tox_group_reconnect.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(Tox_Err_Group_Reconnect)] + tox_group_reconnect.restype = c_bool ++ else: LOG_ERROR("tox_group_reconnect") + + enum_Tox_Err_Group_Leave = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 3779 + + TOX_ERR_GROUP_LEAVE_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 3779 + +*************** +*** 2912,2927 **** +--- 3140,3157 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 3781 + if _libs["libtoxcore"].has("tox_err_group_leave_to_string", "cdecl"): + tox_err_group_leave_to_string = _libs["libtoxcore"].get("tox_err_group_leave_to_string", "cdecl") + tox_err_group_leave_to_string.argtypes = [Tox_Err_Group_Leave] + tox_err_group_leave_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_group_leave_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3797 + if _libs["libtoxcore"].has("tox_group_leave", "cdecl"): + tox_group_leave = _libs["libtoxcore"].get("tox_group_leave", "cdecl") + tox_group_leave.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(uint8_t), c_size_t, POINTER(Tox_Err_Group_Leave)] + tox_group_leave.restype = c_bool ++ else: LOG_ERROR("tox_group_leave") + + enum_Tox_Err_Group_Self_Query = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 3823 + + TOX_ERR_GROUP_SELF_QUERY_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 3823 + +*************** +*** 2932,2941 **** +--- 3162,3172 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 3825 + if _libs["libtoxcore"].has("tox_err_group_self_query_to_string", "cdecl"): + tox_err_group_self_query_to_string = _libs["libtoxcore"].get("tox_err_group_self_query_to_string", "cdecl") + tox_err_group_self_query_to_string.argtypes = [Tox_Err_Group_Self_Query] + tox_err_group_self_query_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_group_self_query_to_string") + + enum_Tox_Err_Group_Self_Name_Set = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 3857 + + TOX_ERR_GROUP_SELF_NAME_SET_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 3857 + +*************** +*** 2952,2979 **** +--- 3183,3214 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 3859 + if _libs["libtoxcore"].has("tox_err_group_self_name_set_to_string", "cdecl"): + tox_err_group_self_name_set_to_string = _libs["libtoxcore"].get("tox_err_group_self_name_set_to_string", "cdecl") + tox_err_group_self_name_set_to_string.argtypes = [Tox_Err_Group_Self_Name_Set] + tox_err_group_self_name_set_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_group_self_name_set_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3872 + if _libs["libtoxcore"].has("tox_group_self_set_name", "cdecl"): + tox_group_self_set_name = _libs["libtoxcore"].get("tox_group_self_set_name", "cdecl") + tox_group_self_set_name.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(uint8_t), c_size_t, POINTER(Tox_Err_Group_Self_Name_Set)] + tox_group_self_set_name.restype = c_bool ++ else: LOG_ERROR("tox_group_self_set_name") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3886 + if _libs["libtoxcore"].has("tox_group_self_get_name_size", "cdecl"): + tox_group_self_get_name_size = _libs["libtoxcore"].get("tox_group_self_get_name_size", "cdecl") + tox_group_self_get_name_size.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(Tox_Err_Group_Self_Query)] + tox_group_self_get_name_size.restype = c_size_t ++ else: LOG_ERROR("tox_group_self_get_name_size") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3901 + if _libs["libtoxcore"].has("tox_group_self_get_name", "cdecl"): + tox_group_self_get_name = _libs["libtoxcore"].get("tox_group_self_get_name", "cdecl") + tox_group_self_get_name.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(uint8_t), POINTER(Tox_Err_Group_Self_Query)] + tox_group_self_get_name.restype = c_bool ++ else: LOG_ERROR("tox_group_self_get_name") + + enum_Tox_Err_Group_Self_Status_Set = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 3925 + + TOX_ERR_GROUP_SELF_STATUS_SET_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 3925 + +*************** +*** 2986,3025 **** +--- 3221,3266 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 3927 + if _libs["libtoxcore"].has("tox_err_group_self_status_set_to_string", "cdecl"): + tox_err_group_self_status_set_to_string = _libs["libtoxcore"].get("tox_err_group_self_status_set_to_string", "cdecl") + tox_err_group_self_status_set_to_string.argtypes = [Tox_Err_Group_Self_Status_Set] + tox_err_group_self_status_set_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_group_self_status_set_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3934 + if _libs["libtoxcore"].has("tox_group_self_set_status", "cdecl"): + tox_group_self_set_status = _libs["libtoxcore"].get("tox_group_self_set_status", "cdecl") + tox_group_self_set_status.argtypes = [POINTER(Tox), Tox_Group_Number, Tox_User_Status, POINTER(Tox_Err_Group_Self_Status_Set)] + tox_group_self_set_status.restype = c_bool ++ else: LOG_ERROR("tox_group_self_set_status") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3941 + if _libs["libtoxcore"].has("tox_group_self_get_status", "cdecl"): + tox_group_self_get_status = _libs["libtoxcore"].get("tox_group_self_get_status", "cdecl") + tox_group_self_get_status.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(Tox_Err_Group_Self_Query)] + tox_group_self_get_status.restype = Tox_User_Status ++ else: LOG_ERROR("tox_group_self_get_status") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3947 + if _libs["libtoxcore"].has("tox_group_self_get_role", "cdecl"): + tox_group_self_get_role = _libs["libtoxcore"].get("tox_group_self_get_role", "cdecl") + tox_group_self_get_role.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(Tox_Err_Group_Self_Query)] + tox_group_self_get_role.restype = Tox_Group_Role ++ else: LOG_ERROR("tox_group_self_get_role") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3953 + if _libs["libtoxcore"].has("tox_group_self_get_peer_id", "cdecl"): + tox_group_self_get_peer_id = _libs["libtoxcore"].get("tox_group_self_get_peer_id", "cdecl") + tox_group_self_get_peer_id.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(Tox_Err_Group_Self_Query)] + tox_group_self_get_peer_id.restype = Tox_Group_Peer_Number ++ else: LOG_ERROR("tox_group_self_get_peer_id") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 3969 + if _libs["libtoxcore"].has("tox_group_self_get_public_key", "cdecl"): + tox_group_self_get_public_key = _libs["libtoxcore"].get("tox_group_self_get_public_key", "cdecl") + tox_group_self_get_public_key.argtypes = [POINTER(Tox), Tox_Group_Number, uint8_t * int(32), POINTER(Tox_Err_Group_Self_Query)] + tox_group_self_get_public_key.restype = c_bool ++ else: LOG_ERROR("tox_group_self_get_public_key") + + enum_Tox_Err_Group_Peer_Query = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 3998 + + TOX_ERR_GROUP_PEER_QUERY_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 3998 + +*************** +*** 3032,3093 **** + # /usr/local/src/c-toxcore/toxcore/tox.h: 4000 + if _libs["libtoxcore"].has("tox_err_group_peer_query_to_string", "cdecl"): + tox_err_group_peer_query_to_string = _libs["libtoxcore"].get("tox_err_group_peer_query_to_string", "cdecl") + tox_err_group_peer_query_to_string.argtypes = [Tox_Err_Group_Peer_Query] + tox_err_group_peer_query_to_string.restype = c_char_p + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4012 + if _libs["libtoxcore"].has("tox_group_peer_get_name_size", "cdecl"): + tox_group_peer_get_name_size = _libs["libtoxcore"].get("tox_group_peer_get_name_size", "cdecl") + tox_group_peer_get_name_size.argtypes = [POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, POINTER(Tox_Err_Group_Peer_Query)] + tox_group_peer_get_name_size.restype = c_size_t + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4030 + if _libs["libtoxcore"].has("tox_group_peer_get_name", "cdecl"): + tox_group_peer_get_name = _libs["libtoxcore"].get("tox_group_peer_get_name", "cdecl") + tox_group_peer_get_name.argtypes = [POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, POINTER(uint8_t), POINTER(Tox_Err_Group_Peer_Query)] + tox_group_peer_get_name.restype = c_bool + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4044 + if _libs["libtoxcore"].has("tox_group_peer_get_status", "cdecl"): + tox_group_peer_get_status = _libs["libtoxcore"].get("tox_group_peer_get_status", "cdecl") + tox_group_peer_get_status.argtypes = [POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, POINTER(Tox_Err_Group_Peer_Query)] + tox_group_peer_get_status.restype = Tox_User_Status + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4057 + if _libs["libtoxcore"].has("tox_group_peer_get_role", "cdecl"): + tox_group_peer_get_role = _libs["libtoxcore"].get("tox_group_peer_get_role", "cdecl") + tox_group_peer_get_role.argtypes = [POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, POINTER(Tox_Err_Group_Peer_Query)] + tox_group_peer_get_role.restype = Tox_Group_Role + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4069 + if _libs["libtoxcore"].has("tox_group_peer_get_connection_status", "cdecl"): + tox_group_peer_get_connection_status = _libs["libtoxcore"].get("tox_group_peer_get_connection_status", "cdecl") + tox_group_peer_get_connection_status.argtypes = [POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, POINTER(Tox_Err_Group_Peer_Query)] + tox_group_peer_get_connection_status.restype = Tox_Connection + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4088 + if _libs["libtoxcore"].has("tox_group_peer_get_public_key", "cdecl"): + tox_group_peer_get_public_key = _libs["libtoxcore"].get("tox_group_peer_get_public_key", "cdecl") + tox_group_peer_get_public_key.argtypes = [POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, uint8_t * int(32), POINTER(Tox_Err_Group_Peer_Query)] + tox_group_peer_get_public_key.restype = c_bool + + tox_group_peer_name_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 4098 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4107 + if _libs["libtoxcore"].has("tox_callback_group_peer_name", "cdecl"): + tox_callback_group_peer_name = _libs["libtoxcore"].get("tox_callback_group_peer_name", "cdecl") +! tox_callback_group_peer_name.argtypes = [POINTER(Tox), POINTER(tox_group_peer_name_cb)] + tox_callback_group_peer_name.restype = None + + tox_group_peer_status_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, Tox_User_Status, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 4114 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4122 + if _libs["libtoxcore"].has("tox_callback_group_peer_status", "cdecl"): + tox_callback_group_peer_status = _libs["libtoxcore"].get("tox_callback_group_peer_status", "cdecl") +! tox_callback_group_peer_status.argtypes = [POINTER(Tox), POINTER(tox_group_peer_status_cb)] + tox_callback_group_peer_status.restype = None + + enum_Tox_Err_Group_State_Queries = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 4145 + + TOX_ERR_GROUP_STATE_QUERIES_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 4145 + +--- 3273,3343 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 4000 + if _libs["libtoxcore"].has("tox_err_group_peer_query_to_string", "cdecl"): + tox_err_group_peer_query_to_string = _libs["libtoxcore"].get("tox_err_group_peer_query_to_string", "cdecl") + tox_err_group_peer_query_to_string.argtypes = [Tox_Err_Group_Peer_Query] + tox_err_group_peer_query_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_group_peer_query_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4012 + if _libs["libtoxcore"].has("tox_group_peer_get_name_size", "cdecl"): + tox_group_peer_get_name_size = _libs["libtoxcore"].get("tox_group_peer_get_name_size", "cdecl") + tox_group_peer_get_name_size.argtypes = [POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, POINTER(Tox_Err_Group_Peer_Query)] + tox_group_peer_get_name_size.restype = c_size_t ++ else: LOG_ERROR("tox_group_peer_get_name_size") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4030 + if _libs["libtoxcore"].has("tox_group_peer_get_name", "cdecl"): + tox_group_peer_get_name = _libs["libtoxcore"].get("tox_group_peer_get_name", "cdecl") + tox_group_peer_get_name.argtypes = [POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, POINTER(uint8_t), POINTER(Tox_Err_Group_Peer_Query)] + tox_group_peer_get_name.restype = c_bool ++ else: LOG_ERROR("tox_group_peer_get_name") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4044 + if _libs["libtoxcore"].has("tox_group_peer_get_status", "cdecl"): + tox_group_peer_get_status = _libs["libtoxcore"].get("tox_group_peer_get_status", "cdecl") + tox_group_peer_get_status.argtypes = [POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, POINTER(Tox_Err_Group_Peer_Query)] + tox_group_peer_get_status.restype = Tox_User_Status ++ else: LOG_ERROR("tox_group_peer_get_status") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4057 + if _libs["libtoxcore"].has("tox_group_peer_get_role", "cdecl"): + tox_group_peer_get_role = _libs["libtoxcore"].get("tox_group_peer_get_role", "cdecl") + tox_group_peer_get_role.argtypes = [POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, POINTER(Tox_Err_Group_Peer_Query)] + tox_group_peer_get_role.restype = Tox_Group_Role ++ else: LOG_ERROR("tox_group_peer_get_role") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4069 + if _libs["libtoxcore"].has("tox_group_peer_get_connection_status", "cdecl"): + tox_group_peer_get_connection_status = _libs["libtoxcore"].get("tox_group_peer_get_connection_status", "cdecl") + tox_group_peer_get_connection_status.argtypes = [POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, POINTER(Tox_Err_Group_Peer_Query)] + tox_group_peer_get_connection_status.restype = Tox_Connection ++ else: LOG_ERROR("tox_group_peer_get_connection_status") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4088 + if _libs["libtoxcore"].has("tox_group_peer_get_public_key", "cdecl"): + tox_group_peer_get_public_key = _libs["libtoxcore"].get("tox_group_peer_get_public_key", "cdecl") + tox_group_peer_get_public_key.argtypes = [POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, uint8_t * int(32), POINTER(Tox_Err_Group_Peer_Query)] + tox_group_peer_get_public_key.restype = c_bool ++ else: LOG_ERROR("tox_group_peer_get_public_key") + + tox_group_peer_name_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 4098 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4107 + if _libs["libtoxcore"].has("tox_callback_group_peer_name", "cdecl"): + tox_callback_group_peer_name = _libs["libtoxcore"].get("tox_callback_group_peer_name", "cdecl") +! tox_callback_group_peer_name.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_group_peer_name_cb) + tox_callback_group_peer_name.restype = None ++ else: LOG_ERROR("tox_callback_group_peer_name") + + tox_group_peer_status_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, Tox_User_Status, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 4114 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4122 + if _libs["libtoxcore"].has("tox_callback_group_peer_status", "cdecl"): + tox_callback_group_peer_status = _libs["libtoxcore"].get("tox_callback_group_peer_status", "cdecl") +! tox_callback_group_peer_status.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_group_peer_status_cb) + tox_callback_group_peer_status.restype = None ++ else: LOG_ERROR("tox_callback_group_peer_status") + + enum_Tox_Err_Group_State_Queries = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 4145 + + TOX_ERR_GROUP_STATE_QUERIES_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 4145 + +*************** +*** 3098,3107 **** +--- 3348,3358 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 4147 + if _libs["libtoxcore"].has("tox_err_group_state_queries_to_string", "cdecl"): + tox_err_group_state_queries_to_string = _libs["libtoxcore"].get("tox_err_group_state_queries_to_string", "cdecl") + tox_err_group_state_queries_to_string.argtypes = [Tox_Err_Group_State_Queries] + tox_err_group_state_queries_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_group_state_queries_to_string") + + enum_Tox_Err_Group_Topic_Set = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 4189 + + TOX_ERR_GROUP_TOPIC_SET_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 4189 + +*************** +*** 3122,3257 **** + # /usr/local/src/c-toxcore/toxcore/tox.h: 4191 + if _libs["libtoxcore"].has("tox_err_group_topic_set_to_string", "cdecl"): + tox_err_group_topic_set_to_string = _libs["libtoxcore"].get("tox_err_group_topic_set_to_string", "cdecl") + tox_err_group_topic_set_to_string.argtypes = [Tox_Err_Group_Topic_Set] + tox_err_group_topic_set_to_string.restype = c_char_p + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4201 + if _libs["libtoxcore"].has("tox_group_set_topic", "cdecl"): + tox_group_set_topic = _libs["libtoxcore"].get("tox_group_set_topic", "cdecl") + tox_group_set_topic.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(uint8_t), c_size_t, POINTER(Tox_Err_Group_Topic_Set)] + tox_group_set_topic.restype = c_bool + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4213 + if _libs["libtoxcore"].has("tox_group_get_topic_size", "cdecl"): + tox_group_get_topic_size = _libs["libtoxcore"].get("tox_group_get_topic_size", "cdecl") + tox_group_get_topic_size.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(Tox_Err_Group_State_Queries)] + tox_group_get_topic_size.restype = c_size_t + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4228 + if _libs["libtoxcore"].has("tox_group_get_topic", "cdecl"): + tox_group_get_topic = _libs["libtoxcore"].get("tox_group_get_topic", "cdecl") + tox_group_get_topic.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(uint8_t), POINTER(Tox_Err_Group_State_Queries)] + tox_group_get_topic.restype = c_bool + + tox_group_topic_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 4239 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4249 + if _libs["libtoxcore"].has("tox_callback_group_topic", "cdecl"): + tox_callback_group_topic = _libs["libtoxcore"].get("tox_callback_group_topic", "cdecl") +! tox_callback_group_topic.argtypes = [POINTER(Tox), POINTER(tox_group_topic_cb)] + tox_callback_group_topic.restype = None + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4255 + if _libs["libtoxcore"].has("tox_group_get_name_size", "cdecl"): + tox_group_get_name_size = _libs["libtoxcore"].get("tox_group_get_name_size", "cdecl") + tox_group_get_name_size.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(Tox_Err_Group_State_Queries)] + tox_group_get_name_size.restype = c_size_t + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4267 + if _libs["libtoxcore"].has("tox_group_get_name", "cdecl"): + tox_group_get_name = _libs["libtoxcore"].get("tox_group_get_name", "cdecl") + tox_group_get_name.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(uint8_t), POINTER(Tox_Err_Group_State_Queries)] + tox_group_get_name.restype = c_bool + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4281 + if _libs["libtoxcore"].has("tox_group_get_chat_id", "cdecl"): + tox_group_get_chat_id = _libs["libtoxcore"].get("tox_group_get_chat_id", "cdecl") + tox_group_get_chat_id.argtypes = [POINTER(Tox), Tox_Group_Number, uint8_t * int(32), POINTER(Tox_Err_Group_State_Queries)] + tox_group_get_chat_id.restype = c_bool + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4288 + if _libs["libtoxcore"].has("tox_group_get_number_groups", "cdecl"): + tox_group_get_number_groups = _libs["libtoxcore"].get("tox_group_get_number_groups", "cdecl") + tox_group_get_number_groups.argtypes = [POINTER(Tox)] + tox_group_get_number_groups.restype = uint32_t + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4299 + if _libs["libtoxcore"].has("tox_group_get_privacy_state", "cdecl"): + tox_group_get_privacy_state = _libs["libtoxcore"].get("tox_group_get_privacy_state", "cdecl") + tox_group_get_privacy_state.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(Tox_Err_Group_State_Queries)] + tox_group_get_privacy_state.restype = Tox_Group_Privacy_State + + tox_group_privacy_state_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, Tox_Group_Privacy_State, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 4306 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4314 + if _libs["libtoxcore"].has("tox_callback_group_privacy_state", "cdecl"): + tox_callback_group_privacy_state = _libs["libtoxcore"].get("tox_callback_group_privacy_state", "cdecl") +! tox_callback_group_privacy_state.argtypes = [POINTER(Tox), POINTER(tox_group_privacy_state_cb)] + tox_callback_group_privacy_state.restype = None + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4324 + if _libs["libtoxcore"].has("tox_group_get_voice_state", "cdecl"): + tox_group_get_voice_state = _libs["libtoxcore"].get("tox_group_get_voice_state", "cdecl") + tox_group_get_voice_state.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(Tox_Err_Group_State_Queries)] + tox_group_get_voice_state.restype = Tox_Group_Voice_State + + tox_group_voice_state_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, Tox_Group_Voice_State, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 4331 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4339 + if _libs["libtoxcore"].has("tox_callback_group_voice_state", "cdecl"): + tox_callback_group_voice_state = _libs["libtoxcore"].get("tox_callback_group_voice_state", "cdecl") +! tox_callback_group_voice_state.argtypes = [POINTER(Tox), POINTER(tox_group_voice_state_cb)] + tox_callback_group_voice_state.restype = None + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4350 + if _libs["libtoxcore"].has("tox_group_get_topic_lock", "cdecl"): + tox_group_get_topic_lock = _libs["libtoxcore"].get("tox_group_get_topic_lock", "cdecl") + tox_group_get_topic_lock.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(Tox_Err_Group_State_Queries)] + tox_group_get_topic_lock.restype = Tox_Group_Topic_Lock + + tox_group_topic_lock_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, Tox_Group_Topic_Lock, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 4357 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4364 + if _libs["libtoxcore"].has("tox_callback_group_topic_lock", "cdecl"): + tox_callback_group_topic_lock = _libs["libtoxcore"].get("tox_callback_group_topic_lock", "cdecl") +! tox_callback_group_topic_lock.argtypes = [POINTER(Tox), POINTER(tox_group_topic_lock_cb)] + tox_callback_group_topic_lock.restype = None + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4375 + if _libs["libtoxcore"].has("tox_group_get_peer_limit", "cdecl"): + tox_group_get_peer_limit = _libs["libtoxcore"].get("tox_group_get_peer_limit", "cdecl") + tox_group_get_peer_limit.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(Tox_Err_Group_State_Queries)] + tox_group_get_peer_limit.restype = uint16_t + + tox_group_peer_limit_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, uint32_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 4381 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4388 + if _libs["libtoxcore"].has("tox_callback_group_peer_limit", "cdecl"): + tox_callback_group_peer_limit = _libs["libtoxcore"].get("tox_callback_group_peer_limit", "cdecl") +! tox_callback_group_peer_limit.argtypes = [POINTER(Tox), POINTER(tox_group_peer_limit_cb)] + tox_callback_group_peer_limit.restype = None + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4394 + if _libs["libtoxcore"].has("tox_group_get_password_size", "cdecl"): + tox_group_get_password_size = _libs["libtoxcore"].get("tox_group_get_password_size", "cdecl") + tox_group_get_password_size.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(Tox_Err_Group_State_Queries)] + tox_group_get_password_size.restype = c_size_t + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4411 + if _libs["libtoxcore"].has("tox_group_get_password", "cdecl"): + tox_group_get_password = _libs["libtoxcore"].get("tox_group_get_password", "cdecl") + tox_group_get_password.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(uint8_t), POINTER(Tox_Err_Group_State_Queries)] + tox_group_get_password.restype = c_bool + + tox_group_password_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 4420 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4430 + if _libs["libtoxcore"].has("tox_callback_group_password", "cdecl"): + tox_callback_group_password = _libs["libtoxcore"].get("tox_callback_group_password", "cdecl") +! tox_callback_group_password.argtypes = [POINTER(Tox), POINTER(tox_group_password_cb)] + tox_callback_group_password.restype = None + + enum_Tox_Err_Group_Send_Message = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 4480 + + TOX_ERR_GROUP_SEND_MESSAGE_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 4480 + +--- 3373,3528 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 4191 + if _libs["libtoxcore"].has("tox_err_group_topic_set_to_string", "cdecl"): + tox_err_group_topic_set_to_string = _libs["libtoxcore"].get("tox_err_group_topic_set_to_string", "cdecl") + tox_err_group_topic_set_to_string.argtypes = [Tox_Err_Group_Topic_Set] + tox_err_group_topic_set_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_group_topic_set_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4201 + if _libs["libtoxcore"].has("tox_group_set_topic", "cdecl"): + tox_group_set_topic = _libs["libtoxcore"].get("tox_group_set_topic", "cdecl") + tox_group_set_topic.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(uint8_t), c_size_t, POINTER(Tox_Err_Group_Topic_Set)] + tox_group_set_topic.restype = c_bool ++ else: LOG_ERROR("tox_group_set_topic") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4213 + if _libs["libtoxcore"].has("tox_group_get_topic_size", "cdecl"): + tox_group_get_topic_size = _libs["libtoxcore"].get("tox_group_get_topic_size", "cdecl") + tox_group_get_topic_size.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(Tox_Err_Group_State_Queries)] + tox_group_get_topic_size.restype = c_size_t ++ else: LOG_ERROR("tox_group_get_topic_size") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4228 + if _libs["libtoxcore"].has("tox_group_get_topic", "cdecl"): + tox_group_get_topic = _libs["libtoxcore"].get("tox_group_get_topic", "cdecl") + tox_group_get_topic.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(uint8_t), POINTER(Tox_Err_Group_State_Queries)] + tox_group_get_topic.restype = c_bool ++ else: LOG_ERROR("tox_group_get_topic") + + tox_group_topic_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 4239 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4249 + if _libs["libtoxcore"].has("tox_callback_group_topic", "cdecl"): + tox_callback_group_topic = _libs["libtoxcore"].get("tox_callback_group_topic", "cdecl") +! tox_callback_group_topic.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_group_topic_cb) + tox_callback_group_topic.restype = None ++ else: LOG_ERROR("tox_callback_group_topic") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4255 + if _libs["libtoxcore"].has("tox_group_get_name_size", "cdecl"): + tox_group_get_name_size = _libs["libtoxcore"].get("tox_group_get_name_size", "cdecl") + tox_group_get_name_size.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(Tox_Err_Group_State_Queries)] + tox_group_get_name_size.restype = c_size_t ++ else: LOG_ERROR("tox_group_get_name_size") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4267 + if _libs["libtoxcore"].has("tox_group_get_name", "cdecl"): + tox_group_get_name = _libs["libtoxcore"].get("tox_group_get_name", "cdecl") + tox_group_get_name.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(uint8_t), POINTER(Tox_Err_Group_State_Queries)] + tox_group_get_name.restype = c_bool ++ else: LOG_ERROR("tox_group_get_name") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4281 + if _libs["libtoxcore"].has("tox_group_get_chat_id", "cdecl"): + tox_group_get_chat_id = _libs["libtoxcore"].get("tox_group_get_chat_id", "cdecl") + tox_group_get_chat_id.argtypes = [POINTER(Tox), Tox_Group_Number, uint8_t * int(32), POINTER(Tox_Err_Group_State_Queries)] + tox_group_get_chat_id.restype = c_bool ++ else: LOG_ERROR("tox_group_get_chat_id") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4288 + if _libs["libtoxcore"].has("tox_group_get_number_groups", "cdecl"): + tox_group_get_number_groups = _libs["libtoxcore"].get("tox_group_get_number_groups", "cdecl") + tox_group_get_number_groups.argtypes = [POINTER(Tox)] + tox_group_get_number_groups.restype = uint32_t ++ else: LOG_ERROR("tox_group_get_number_groups") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4299 + if _libs["libtoxcore"].has("tox_group_get_privacy_state", "cdecl"): + tox_group_get_privacy_state = _libs["libtoxcore"].get("tox_group_get_privacy_state", "cdecl") + tox_group_get_privacy_state.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(Tox_Err_Group_State_Queries)] + tox_group_get_privacy_state.restype = Tox_Group_Privacy_State ++ else: LOG_ERROR("tox_group_get_privacy_state") + + tox_group_privacy_state_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, Tox_Group_Privacy_State, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 4306 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4314 + if _libs["libtoxcore"].has("tox_callback_group_privacy_state", "cdecl"): + tox_callback_group_privacy_state = _libs["libtoxcore"].get("tox_callback_group_privacy_state", "cdecl") +! tox_callback_group_privacy_state.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_group_privacy_state_cb) + tox_callback_group_privacy_state.restype = None ++ else: LOG_ERROR("tox_callback_group_privacy_state") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4324 + if _libs["libtoxcore"].has("tox_group_get_voice_state", "cdecl"): + tox_group_get_voice_state = _libs["libtoxcore"].get("tox_group_get_voice_state", "cdecl") + tox_group_get_voice_state.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(Tox_Err_Group_State_Queries)] + tox_group_get_voice_state.restype = Tox_Group_Voice_State ++ else: LOG_ERROR("tox_group_get_voice_state") + + tox_group_voice_state_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, Tox_Group_Voice_State, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 4331 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4339 + if _libs["libtoxcore"].has("tox_callback_group_voice_state", "cdecl"): + tox_callback_group_voice_state = _libs["libtoxcore"].get("tox_callback_group_voice_state", "cdecl") +! tox_callback_group_voice_state.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_group_voice_state_cb) + tox_callback_group_voice_state.restype = None ++ else: LOG_ERROR("tox_callback_group_voice_state") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4350 + if _libs["libtoxcore"].has("tox_group_get_topic_lock", "cdecl"): + tox_group_get_topic_lock = _libs["libtoxcore"].get("tox_group_get_topic_lock", "cdecl") + tox_group_get_topic_lock.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(Tox_Err_Group_State_Queries)] + tox_group_get_topic_lock.restype = Tox_Group_Topic_Lock ++ else: LOG_ERROR("tox_group_get_topic_lock") + + tox_group_topic_lock_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, Tox_Group_Topic_Lock, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 4357 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4364 + if _libs["libtoxcore"].has("tox_callback_group_topic_lock", "cdecl"): + tox_callback_group_topic_lock = _libs["libtoxcore"].get("tox_callback_group_topic_lock", "cdecl") +! tox_callback_group_topic_lock.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_group_topic_lock_cb) + tox_callback_group_topic_lock.restype = None ++ else: LOG_ERROR("tox_callback_group_topic_lock") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4375 + if _libs["libtoxcore"].has("tox_group_get_peer_limit", "cdecl"): + tox_group_get_peer_limit = _libs["libtoxcore"].get("tox_group_get_peer_limit", "cdecl") + tox_group_get_peer_limit.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(Tox_Err_Group_State_Queries)] + tox_group_get_peer_limit.restype = uint16_t ++ else: LOG_ERROR("tox_group_get_peer_limit") + + tox_group_peer_limit_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, uint32_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 4381 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4388 + if _libs["libtoxcore"].has("tox_callback_group_peer_limit", "cdecl"): + tox_callback_group_peer_limit = _libs["libtoxcore"].get("tox_callback_group_peer_limit", "cdecl") +! tox_callback_group_peer_limit.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_group_peer_limit_cb) + tox_callback_group_peer_limit.restype = None ++ else: LOG_ERROR("tox_callback_group_peer_limit") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4394 + if _libs["libtoxcore"].has("tox_group_get_password_size", "cdecl"): + tox_group_get_password_size = _libs["libtoxcore"].get("tox_group_get_password_size", "cdecl") + tox_group_get_password_size.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(Tox_Err_Group_State_Queries)] + tox_group_get_password_size.restype = c_size_t ++ else: LOG_ERROR("tox_group_get_password_size") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4411 + if _libs["libtoxcore"].has("tox_group_get_password", "cdecl"): + tox_group_get_password = _libs["libtoxcore"].get("tox_group_get_password", "cdecl") + tox_group_get_password.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(uint8_t), POINTER(Tox_Err_Group_State_Queries)] + tox_group_get_password.restype = c_bool ++ else: LOG_ERROR("tox_group_get_password") + + tox_group_password_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 4420 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4430 + if _libs["libtoxcore"].has("tox_callback_group_password", "cdecl"): + tox_callback_group_password = _libs["libtoxcore"].get("tox_callback_group_password", "cdecl") +! tox_callback_group_password.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_group_password_cb) + tox_callback_group_password.restype = None ++ else: LOG_ERROR("tox_callback_group_password") + + enum_Tox_Err_Group_Send_Message = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 4480 + + TOX_ERR_GROUP_SEND_MESSAGE_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 4480 + +*************** +*** 3274,3289 **** +--- 3545,3562 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 4482 + if _libs["libtoxcore"].has("tox_err_group_send_message_to_string", "cdecl"): + tox_err_group_send_message_to_string = _libs["libtoxcore"].get("tox_err_group_send_message_to_string", "cdecl") + tox_err_group_send_message_to_string.argtypes = [Tox_Err_Group_Send_Message] + tox_err_group_send_message_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_group_send_message_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4503 + if _libs["libtoxcore"].has("tox_group_send_message", "cdecl"): + tox_group_send_message = _libs["libtoxcore"].get("tox_group_send_message", "cdecl") + tox_group_send_message.argtypes = [POINTER(Tox), Tox_Group_Number, Tox_Message_Type, POINTER(uint8_t), c_size_t, POINTER(Tox_Err_Group_Send_Message)] + tox_group_send_message.restype = Tox_Group_Message_Id ++ else: LOG_ERROR("tox_group_send_message") + + enum_Tox_Err_Group_Send_Private_Message = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 4555 + + TOX_ERR_GROUP_SEND_PRIVATE_MESSAGE_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 4555 + +*************** +*** 3308,3323 **** +--- 3581,3598 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 4557 + if _libs["libtoxcore"].has("tox_err_group_send_private_message_to_string", "cdecl"): + tox_err_group_send_private_message_to_string = _libs["libtoxcore"].get("tox_err_group_send_private_message_to_string", "cdecl") + tox_err_group_send_private_message_to_string.argtypes = [Tox_Err_Group_Send_Private_Message] + tox_err_group_send_private_message_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_group_send_private_message_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4577 + if _libs["libtoxcore"].has("tox_group_send_private_message", "cdecl"): + tox_group_send_private_message = _libs["libtoxcore"].get("tox_group_send_private_message", "cdecl") + tox_group_send_private_message.argtypes = [POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, Tox_Message_Type, POINTER(uint8_t), c_size_t, POINTER(Tox_Err_Group_Send_Private_Message)] + tox_group_send_private_message.restype = c_bool ++ else: LOG_ERROR("tox_group_send_private_message") + + enum_Tox_Err_Group_Send_Custom_Packet = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 4622 + + TOX_ERR_GROUP_SEND_CUSTOM_PACKET_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 4622 + +*************** +*** 3338,3353 **** +--- 3613,3630 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 4624 + if _libs["libtoxcore"].has("tox_err_group_send_custom_packet_to_string", "cdecl"): + tox_err_group_send_custom_packet_to_string = _libs["libtoxcore"].get("tox_err_group_send_custom_packet_to_string", "cdecl") + tox_err_group_send_custom_packet_to_string.argtypes = [Tox_Err_Group_Send_Custom_Packet] + tox_err_group_send_custom_packet_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_group_send_custom_packet_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4650 + if _libs["libtoxcore"].has("tox_group_send_custom_packet", "cdecl"): + tox_group_send_custom_packet = _libs["libtoxcore"].get("tox_group_send_custom_packet", "cdecl") + tox_group_send_custom_packet.argtypes = [POINTER(Tox), Tox_Group_Number, c_bool, POINTER(uint8_t), c_size_t, POINTER(Tox_Err_Group_Send_Custom_Packet)] + tox_group_send_custom_packet.restype = c_bool ++ else: LOG_ERROR("tox_group_send_custom_packet") + + enum_Tox_Err_Group_Send_Custom_Private_Packet = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 4699 + + TOX_ERR_GROUP_SEND_CUSTOM_PRIVATE_PACKET_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 4699 + +*************** +*** 3370,3417 **** + # /usr/local/src/c-toxcore/toxcore/tox.h: 4701 + if _libs["libtoxcore"].has("tox_err_group_send_custom_private_packet_to_string", "cdecl"): + tox_err_group_send_custom_private_packet_to_string = _libs["libtoxcore"].get("tox_err_group_send_custom_private_packet_to_string", "cdecl") + tox_err_group_send_custom_private_packet_to_string.argtypes = [Tox_Err_Group_Send_Custom_Private_Packet] + tox_err_group_send_custom_private_packet_to_string.restype = c_char_p + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4728 + if _libs["libtoxcore"].has("tox_group_send_custom_private_packet", "cdecl"): + tox_group_send_custom_private_packet = _libs["libtoxcore"].get("tox_group_send_custom_private_packet", "cdecl") + tox_group_send_custom_private_packet.argtypes = [POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, c_bool, POINTER(uint8_t), c_size_t, POINTER(Tox_Err_Group_Send_Custom_Private_Packet)] + tox_group_send_custom_private_packet.restype = c_bool + + tox_group_message_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, Tox_Message_Type, POINTER(uint8_t), c_size_t, Tox_Group_Message_Id, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 4746 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4755 + if _libs["libtoxcore"].has("tox_callback_group_message", "cdecl"): + tox_callback_group_message = _libs["libtoxcore"].get("tox_callback_group_message", "cdecl") +! tox_callback_group_message.argtypes = [POINTER(Tox), POINTER(tox_group_message_cb)] + tox_callback_group_message.restype = None + + tox_group_private_message_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, Tox_Message_Type, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 4763 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4772 + if _libs["libtoxcore"].has("tox_callback_group_private_message", "cdecl"): + tox_callback_group_private_message = _libs["libtoxcore"].get("tox_callback_group_private_message", "cdecl") +! tox_callback_group_private_message.argtypes = [POINTER(Tox), POINTER(tox_group_private_message_cb)] + tox_callback_group_private_message.restype = None + + tox_group_custom_packet_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 4780 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4789 + if _libs["libtoxcore"].has("tox_callback_group_custom_packet", "cdecl"): + tox_callback_group_custom_packet = _libs["libtoxcore"].get("tox_callback_group_custom_packet", "cdecl") +! tox_callback_group_custom_packet.argtypes = [POINTER(Tox), POINTER(tox_group_custom_packet_cb)] + tox_callback_group_custom_packet.restype = None + + tox_group_custom_private_packet_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 4797 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4806 + if _libs["libtoxcore"].has("tox_callback_group_custom_private_packet", "cdecl"): + tox_callback_group_custom_private_packet = _libs["libtoxcore"].get("tox_callback_group_custom_private_packet", "cdecl") +! tox_callback_group_custom_private_packet.argtypes = [POINTER(Tox), POINTER(tox_group_custom_private_packet_cb)] + tox_callback_group_custom_private_packet.restype = None + + enum_Tox_Err_Group_Invite_Friend = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 4846 + + TOX_ERR_GROUP_INVITE_FRIEND_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 4846 + +--- 3647,3700 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 4701 + if _libs["libtoxcore"].has("tox_err_group_send_custom_private_packet_to_string", "cdecl"): + tox_err_group_send_custom_private_packet_to_string = _libs["libtoxcore"].get("tox_err_group_send_custom_private_packet_to_string", "cdecl") + tox_err_group_send_custom_private_packet_to_string.argtypes = [Tox_Err_Group_Send_Custom_Private_Packet] + tox_err_group_send_custom_private_packet_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_group_send_custom_private_packet_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4728 + if _libs["libtoxcore"].has("tox_group_send_custom_private_packet", "cdecl"): + tox_group_send_custom_private_packet = _libs["libtoxcore"].get("tox_group_send_custom_private_packet", "cdecl") + tox_group_send_custom_private_packet.argtypes = [POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, c_bool, POINTER(uint8_t), c_size_t, POINTER(Tox_Err_Group_Send_Custom_Private_Packet)] + tox_group_send_custom_private_packet.restype = c_bool ++ else: LOG_ERROR("tox_group_send_custom_private_packet") + + tox_group_message_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, Tox_Message_Type, POINTER(uint8_t), c_size_t, Tox_Group_Message_Id, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 4746 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4755 + if _libs["libtoxcore"].has("tox_callback_group_message", "cdecl"): + tox_callback_group_message = _libs["libtoxcore"].get("tox_callback_group_message", "cdecl") +! tox_callback_group_message.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_group_message_cb) + tox_callback_group_message.restype = None ++ else: LOG_ERROR("tox_callback_group_message") + + tox_group_private_message_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, Tox_Message_Type, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 4763 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4772 + if _libs["libtoxcore"].has("tox_callback_group_private_message", "cdecl"): + tox_callback_group_private_message = _libs["libtoxcore"].get("tox_callback_group_private_message", "cdecl") +! tox_callback_group_private_message.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_group_private_message_cb) + tox_callback_group_private_message.restype = None ++ else: LOG_ERROR("tox_callback_group_private_message") + + tox_group_custom_packet_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 4780 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4789 + if _libs["libtoxcore"].has("tox_callback_group_custom_packet", "cdecl"): + tox_callback_group_custom_packet = _libs["libtoxcore"].get("tox_callback_group_custom_packet", "cdecl") +! tox_callback_group_custom_packet.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_group_custom_packet_cb) + tox_callback_group_custom_packet.restype = None ++ else: LOG_ERROR("tox_callback_group_custom_packet") + + tox_group_custom_private_packet_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 4797 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4806 + if _libs["libtoxcore"].has("tox_callback_group_custom_private_packet", "cdecl"): + tox_callback_group_custom_private_packet = _libs["libtoxcore"].get("tox_callback_group_custom_private_packet", "cdecl") +! tox_callback_group_custom_private_packet.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_group_custom_private_packet_cb) + tox_callback_group_custom_private_packet.restype = None ++ else: LOG_ERROR("tox_callback_group_custom_private_packet") + + enum_Tox_Err_Group_Invite_Friend = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 4846 + + TOX_ERR_GROUP_INVITE_FRIEND_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 4846 + +*************** +*** 3430,3445 **** +--- 3713,3730 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 4848 + if _libs["libtoxcore"].has("tox_err_group_invite_friend_to_string", "cdecl"): + tox_err_group_invite_friend_to_string = _libs["libtoxcore"].get("tox_err_group_invite_friend_to_string", "cdecl") + tox_err_group_invite_friend_to_string.argtypes = [Tox_Err_Group_Invite_Friend] + tox_err_group_invite_friend_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_group_invite_friend_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4860 + if _libs["libtoxcore"].has("tox_group_invite_friend", "cdecl"): + tox_group_invite_friend = _libs["libtoxcore"].get("tox_group_invite_friend", "cdecl") + tox_group_invite_friend.argtypes = [POINTER(Tox), Tox_Group_Number, Tox_Friend_Number, POINTER(Tox_Err_Group_Invite_Friend)] + tox_group_invite_friend.restype = c_bool ++ else: LOG_ERROR("tox_group_invite_friend") + + enum_Tox_Err_Group_Invite_Accept = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 4906 + + TOX_ERR_GROUP_INVITE_ACCEPT_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 4906 + +*************** +*** 3462,3493 **** + # /usr/local/src/c-toxcore/toxcore/tox.h: 4908 + if _libs["libtoxcore"].has("tox_err_group_invite_accept_to_string", "cdecl"): + tox_err_group_invite_accept_to_string = _libs["libtoxcore"].get("tox_err_group_invite_accept_to_string", "cdecl") + tox_err_group_invite_accept_to_string.argtypes = [Tox_Err_Group_Invite_Accept] + tox_err_group_invite_accept_to_string.restype = c_char_p + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4925 + if _libs["libtoxcore"].has("tox_group_invite_accept", "cdecl"): + tox_group_invite_accept = _libs["libtoxcore"].get("tox_group_invite_accept", "cdecl") + tox_group_invite_accept.argtypes = [POINTER(Tox), Tox_Friend_Number, POINTER(uint8_t), c_size_t, POINTER(uint8_t), c_size_t, POINTER(uint8_t), c_size_t, POINTER(Tox_Err_Group_Invite_Accept)] + tox_group_invite_accept.restype = Tox_Group_Number + + tox_group_invite_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Friend_Number, POINTER(uint8_t), c_size_t, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 4937 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4949 + if _libs["libtoxcore"].has("tox_callback_group_invite", "cdecl"): + tox_callback_group_invite = _libs["libtoxcore"].get("tox_callback_group_invite", "cdecl") +! tox_callback_group_invite.argtypes = [POINTER(Tox), POINTER(tox_group_invite_cb)] + tox_callback_group_invite.restype = None + + tox_group_peer_join_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 4956 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4963 + if _libs["libtoxcore"].has("tox_callback_group_peer_join", "cdecl"): + tox_callback_group_peer_join = _libs["libtoxcore"].get("tox_callback_group_peer_join", "cdecl") +! tox_callback_group_peer_join.argtypes = [POINTER(Tox), POINTER(tox_group_peer_join_cb)] + tox_callback_group_peer_join.restype = None + + enum_Tox_Group_Exit_Type = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 5001 + + TOX_GROUP_EXIT_TYPE_QUIT = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 5001 + +--- 3747,3782 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 4908 + if _libs["libtoxcore"].has("tox_err_group_invite_accept_to_string", "cdecl"): + tox_err_group_invite_accept_to_string = _libs["libtoxcore"].get("tox_err_group_invite_accept_to_string", "cdecl") + tox_err_group_invite_accept_to_string.argtypes = [Tox_Err_Group_Invite_Accept] + tox_err_group_invite_accept_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_group_invite_accept_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4925 + if _libs["libtoxcore"].has("tox_group_invite_accept", "cdecl"): + tox_group_invite_accept = _libs["libtoxcore"].get("tox_group_invite_accept", "cdecl") + tox_group_invite_accept.argtypes = [POINTER(Tox), Tox_Friend_Number, POINTER(uint8_t), c_size_t, POINTER(uint8_t), c_size_t, POINTER(uint8_t), c_size_t, POINTER(Tox_Err_Group_Invite_Accept)] + tox_group_invite_accept.restype = Tox_Group_Number ++ else: LOG_ERROR("tox_group_invite_accept") + + tox_group_invite_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Friend_Number, POINTER(uint8_t), c_size_t, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 4937 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4949 + if _libs["libtoxcore"].has("tox_callback_group_invite", "cdecl"): + tox_callback_group_invite = _libs["libtoxcore"].get("tox_callback_group_invite", "cdecl") +! tox_callback_group_invite.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_group_invite_cb) + tox_callback_group_invite.restype = None ++ else: LOG_ERROR("tox_callback_group_invite") + + tox_group_peer_join_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 4956 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 4963 + if _libs["libtoxcore"].has("tox_callback_group_peer_join", "cdecl"): + tox_callback_group_peer_join = _libs["libtoxcore"].get("tox_callback_group_peer_join", "cdecl") +! tox_callback_group_peer_join.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_group_peer_join_cb) + tox_callback_group_peer_join.restype = None ++ else: LOG_ERROR("tox_callback_group_peer_join") + + enum_Tox_Group_Exit_Type = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 5001 + + TOX_GROUP_EXIT_TYPE_QUIT = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 5001 + +*************** +*** 3506,3531 **** + # /usr/local/src/c-toxcore/toxcore/tox.h: 5003 + if _libs["libtoxcore"].has("tox_group_exit_type_to_string", "cdecl"): + tox_group_exit_type_to_string = _libs["libtoxcore"].get("tox_group_exit_type_to_string", "cdecl") + tox_group_exit_type_to_string.argtypes = [Tox_Group_Exit_Type] + tox_group_exit_type_to_string.restype = c_char_p + + tox_group_peer_exit_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, Tox_Group_Exit_Type, POINTER(uint8_t), c_size_t, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 5015 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 5025 + if _libs["libtoxcore"].has("tox_callback_group_peer_exit", "cdecl"): + tox_callback_group_peer_exit = _libs["libtoxcore"].get("tox_callback_group_peer_exit", "cdecl") +! tox_callback_group_peer_exit.argtypes = [POINTER(Tox), POINTER(tox_group_peer_exit_cb)] + tox_callback_group_peer_exit.restype = None + + tox_group_self_join_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 5030 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 5038 + if _libs["libtoxcore"].has("tox_callback_group_self_join", "cdecl"): + tox_callback_group_self_join = _libs["libtoxcore"].get("tox_callback_group_self_join", "cdecl") +! tox_callback_group_self_join.argtypes = [POINTER(Tox), POINTER(tox_group_self_join_cb)] + tox_callback_group_self_join.restype = None + + enum_Tox_Group_Join_Fail = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 5062 + + TOX_GROUP_JOIN_FAIL_PEER_LIMIT = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 5062 + +--- 3795,3823 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 5003 + if _libs["libtoxcore"].has("tox_group_exit_type_to_string", "cdecl"): + tox_group_exit_type_to_string = _libs["libtoxcore"].get("tox_group_exit_type_to_string", "cdecl") + tox_group_exit_type_to_string.argtypes = [Tox_Group_Exit_Type] + tox_group_exit_type_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_group_exit_type_to_string") + + tox_group_peer_exit_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, Tox_Group_Exit_Type, POINTER(uint8_t), c_size_t, POINTER(uint8_t), c_size_t, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 5015 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 5025 + if _libs["libtoxcore"].has("tox_callback_group_peer_exit", "cdecl"): + tox_callback_group_peer_exit = _libs["libtoxcore"].get("tox_callback_group_peer_exit", "cdecl") +! tox_callback_group_peer_exit.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_group_peer_exit_cb) + tox_callback_group_peer_exit.restype = None ++ else: LOG_ERROR("tox_callback_group_peer_exit") + + tox_group_self_join_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 5030 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 5038 + if _libs["libtoxcore"].has("tox_callback_group_self_join", "cdecl"): + tox_callback_group_self_join = _libs["libtoxcore"].get("tox_callback_group_self_join", "cdecl") +! tox_callback_group_self_join.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_group_self_join_cb) + tox_callback_group_self_join.restype = None ++ else: LOG_ERROR("tox_callback_group_self_join") + + enum_Tox_Group_Join_Fail = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 5062 + + TOX_GROUP_JOIN_FAIL_PEER_LIMIT = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 5062 + +*************** +*** 3538,3555 **** + # /usr/local/src/c-toxcore/toxcore/tox.h: 5064 + if _libs["libtoxcore"].has("tox_group_join_fail_to_string", "cdecl"): + tox_group_join_fail_to_string = _libs["libtoxcore"].get("tox_group_join_fail_to_string", "cdecl") + tox_group_join_fail_to_string.argtypes = [Tox_Group_Join_Fail] + tox_group_join_fail_to_string.restype = c_char_p + + tox_group_join_fail_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, Tox_Group_Join_Fail, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 5070 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 5077 + if _libs["libtoxcore"].has("tox_callback_group_join_fail", "cdecl"): + tox_callback_group_join_fail = _libs["libtoxcore"].get("tox_callback_group_join_fail", "cdecl") +! tox_callback_group_join_fail.argtypes = [POINTER(Tox), POINTER(tox_group_join_fail_cb)] + tox_callback_group_join_fail.restype = None + + enum_Tox_Err_Group_Founder_Set_Password = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 5122 + + TOX_ERR_GROUP_FOUNDER_SET_PASSWORD_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 5122 + +--- 3830,3849 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 5064 + if _libs["libtoxcore"].has("tox_group_join_fail_to_string", "cdecl"): + tox_group_join_fail_to_string = _libs["libtoxcore"].get("tox_group_join_fail_to_string", "cdecl") + tox_group_join_fail_to_string.argtypes = [Tox_Group_Join_Fail] + tox_group_join_fail_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_group_join_fail_to_string") + + tox_group_join_fail_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, Tox_Group_Join_Fail, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 5070 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 5077 + if _libs["libtoxcore"].has("tox_callback_group_join_fail", "cdecl"): + tox_callback_group_join_fail = _libs["libtoxcore"].get("tox_callback_group_join_fail", "cdecl") +! tox_callback_group_join_fail.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_group_join_fail_cb) + tox_callback_group_join_fail.restype = None ++ else: LOG_ERROR("tox_callback_group_join_fail") + + enum_Tox_Err_Group_Founder_Set_Password = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 5122 + + TOX_ERR_GROUP_FOUNDER_SET_PASSWORD_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 5122 + +*************** +*** 3570,3585 **** +--- 3864,3881 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 5124 + if _libs["libtoxcore"].has("tox_err_group_founder_set_password_to_string", "cdecl"): + tox_err_group_founder_set_password_to_string = _libs["libtoxcore"].get("tox_err_group_founder_set_password_to_string", "cdecl") + tox_err_group_founder_set_password_to_string.argtypes = [Tox_Err_Group_Founder_Set_Password] + tox_err_group_founder_set_password_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_group_founder_set_password_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 5138 + if _libs["libtoxcore"].has("tox_group_founder_set_password", "cdecl"): + tox_group_founder_set_password = _libs["libtoxcore"].get("tox_group_founder_set_password", "cdecl") + tox_group_founder_set_password.argtypes = [POINTER(Tox), Tox_Group_Number, POINTER(uint8_t), c_size_t, POINTER(Tox_Err_Group_Founder_Set_Password)] + tox_group_founder_set_password.restype = c_bool ++ else: LOG_ERROR("tox_group_founder_set_password") + + enum_Tox_Err_Group_Founder_Set_Topic_Lock = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 5181 + + TOX_ERR_GROUP_FOUNDER_SET_TOPIC_LOCK_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 5181 + +*************** +*** 3600,3615 **** +--- 3896,3913 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 5183 + if _libs["libtoxcore"].has("tox_err_group_founder_set_topic_lock_to_string", "cdecl"): + tox_err_group_founder_set_topic_lock_to_string = _libs["libtoxcore"].get("tox_err_group_founder_set_topic_lock_to_string", "cdecl") + tox_err_group_founder_set_topic_lock_to_string.argtypes = [Tox_Err_Group_Founder_Set_Topic_Lock] + tox_err_group_founder_set_topic_lock_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_group_founder_set_topic_lock_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 5199 + if _libs["libtoxcore"].has("tox_group_founder_set_topic_lock", "cdecl"): + tox_group_founder_set_topic_lock = _libs["libtoxcore"].get("tox_group_founder_set_topic_lock", "cdecl") + tox_group_founder_set_topic_lock.argtypes = [POINTER(Tox), Tox_Group_Number, Tox_Group_Topic_Lock, POINTER(Tox_Err_Group_Founder_Set_Topic_Lock)] + tox_group_founder_set_topic_lock.restype = c_bool ++ else: LOG_ERROR("tox_group_founder_set_topic_lock") + + enum_Tox_Err_Group_Founder_Set_Voice_State = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 5235 + + TOX_ERR_GROUP_FOUNDER_SET_VOICE_STATE_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 5235 + +*************** +*** 3628,3643 **** +--- 3926,3943 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 5237 + if _libs["libtoxcore"].has("tox_err_group_founder_set_voice_state_to_string", "cdecl"): + tox_err_group_founder_set_voice_state_to_string = _libs["libtoxcore"].get("tox_err_group_founder_set_voice_state_to_string", "cdecl") + tox_err_group_founder_set_voice_state_to_string.argtypes = [Tox_Err_Group_Founder_Set_Voice_State] + tox_err_group_founder_set_voice_state_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_group_founder_set_voice_state_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 5253 + if _libs["libtoxcore"].has("tox_group_founder_set_voice_state", "cdecl"): + tox_group_founder_set_voice_state = _libs["libtoxcore"].get("tox_group_founder_set_voice_state", "cdecl") + tox_group_founder_set_voice_state.argtypes = [POINTER(Tox), Tox_Group_Number, Tox_Group_Voice_State, POINTER(Tox_Err_Group_Founder_Set_Voice_State)] + tox_group_founder_set_voice_state.restype = c_bool ++ else: LOG_ERROR("tox_group_founder_set_voice_state") + + enum_Tox_Err_Group_Founder_Set_Privacy_State = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 5289 + + TOX_ERR_GROUP_FOUNDER_SET_PRIVACY_STATE_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 5289 + +*************** +*** 3656,3671 **** +--- 3956,3973 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 5291 + if _libs["libtoxcore"].has("tox_err_group_founder_set_privacy_state_to_string", "cdecl"): + tox_err_group_founder_set_privacy_state_to_string = _libs["libtoxcore"].get("tox_err_group_founder_set_privacy_state_to_string", "cdecl") + tox_err_group_founder_set_privacy_state_to_string.argtypes = [Tox_Err_Group_Founder_Set_Privacy_State] + tox_err_group_founder_set_privacy_state_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_group_founder_set_privacy_state_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 5307 + if _libs["libtoxcore"].has("tox_group_founder_set_privacy_state", "cdecl"): + tox_group_founder_set_privacy_state = _libs["libtoxcore"].get("tox_group_founder_set_privacy_state", "cdecl") + tox_group_founder_set_privacy_state.argtypes = [POINTER(Tox), Tox_Group_Number, Tox_Group_Privacy_State, POINTER(Tox_Err_Group_Founder_Set_Privacy_State)] + tox_group_founder_set_privacy_state.restype = c_bool ++ else: LOG_ERROR("tox_group_founder_set_privacy_state") + + enum_Tox_Err_Group_Founder_Set_Peer_Limit = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 5343 + + TOX_ERR_GROUP_FOUNDER_SET_PEER_LIMIT_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 5343 + +*************** +*** 3684,3699 **** +--- 3986,4003 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 5345 + if _libs["libtoxcore"].has("tox_err_group_founder_set_peer_limit_to_string", "cdecl"): + tox_err_group_founder_set_peer_limit_to_string = _libs["libtoxcore"].get("tox_err_group_founder_set_peer_limit_to_string", "cdecl") + tox_err_group_founder_set_peer_limit_to_string.argtypes = [Tox_Err_Group_Founder_Set_Peer_Limit] + tox_err_group_founder_set_peer_limit_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_group_founder_set_peer_limit_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 5358 + if _libs["libtoxcore"].has("tox_group_founder_set_peer_limit", "cdecl"): + tox_group_founder_set_peer_limit = _libs["libtoxcore"].get("tox_group_founder_set_peer_limit", "cdecl") + tox_group_founder_set_peer_limit.argtypes = [POINTER(Tox), Tox_Group_Number, uint16_t, POINTER(Tox_Err_Group_Founder_Set_Peer_Limit)] + tox_group_founder_set_peer_limit.restype = c_bool ++ else: LOG_ERROR("tox_group_founder_set_peer_limit") + + enum_Tox_Err_Group_Set_Ignore = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 5389 + + TOX_ERR_GROUP_SET_IGNORE_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 5389 + +*************** +*** 3708,3723 **** +--- 4012,4029 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 5391 + if _libs["libtoxcore"].has("tox_err_group_set_ignore_to_string", "cdecl"): + tox_err_group_set_ignore_to_string = _libs["libtoxcore"].get("tox_err_group_set_ignore_to_string", "cdecl") + tox_err_group_set_ignore_to_string.argtypes = [Tox_Err_Group_Set_Ignore] + tox_err_group_set_ignore_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_group_set_ignore_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 5402 + if _libs["libtoxcore"].has("tox_group_set_ignore", "cdecl"): + tox_group_set_ignore = _libs["libtoxcore"].get("tox_group_set_ignore", "cdecl") + tox_group_set_ignore.argtypes = [POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, c_bool, POINTER(Tox_Err_Group_Set_Ignore)] + tox_group_set_ignore.restype = c_bool ++ else: LOG_ERROR("tox_group_set_ignore") + + enum_Tox_Err_Group_Mod_Set_Role = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 5444 + + TOX_ERR_GROUP_MOD_SET_ROLE_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 5444 + +*************** +*** 3738,3753 **** +--- 4044,4061 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 5446 + if _libs["libtoxcore"].has("tox_err_group_mod_set_role_to_string", "cdecl"): + tox_err_group_mod_set_role_to_string = _libs["libtoxcore"].get("tox_err_group_mod_set_role_to_string", "cdecl") + tox_err_group_mod_set_role_to_string.argtypes = [Tox_Err_Group_Mod_Set_Role] + tox_err_group_mod_set_role_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_group_mod_set_role_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 5461 + if _libs["libtoxcore"].has("tox_group_mod_set_role", "cdecl"): + tox_group_mod_set_role = _libs["libtoxcore"].get("tox_group_mod_set_role", "cdecl") + tox_group_mod_set_role.argtypes = [POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, Tox_Group_Role, POINTER(Tox_Err_Group_Mod_Set_Role)] + tox_group_mod_set_role.restype = c_bool ++ else: LOG_ERROR("tox_group_mod_set_role") + + enum_Tox_Err_Group_Mod_Kick_Peer = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 5501 + + TOX_ERR_GROUP_MOD_KICK_PEER_OK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 5501 + +*************** +*** 3768,3783 **** +--- 4076,4093 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 5503 + if _libs["libtoxcore"].has("tox_err_group_mod_kick_peer_to_string", "cdecl"): + tox_err_group_mod_kick_peer_to_string = _libs["libtoxcore"].get("tox_err_group_mod_kick_peer_to_string", "cdecl") + tox_err_group_mod_kick_peer_to_string.argtypes = [Tox_Err_Group_Mod_Kick_Peer] + tox_err_group_mod_kick_peer_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_err_group_mod_kick_peer_to_string") + + # /usr/local/src/c-toxcore/toxcore/tox.h: 5517 + if _libs["libtoxcore"].has("tox_group_mod_kick_peer", "cdecl"): + tox_group_mod_kick_peer = _libs["libtoxcore"].get("tox_group_mod_kick_peer", "cdecl") + tox_group_mod_kick_peer.argtypes = [POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, POINTER(Tox_Err_Group_Mod_Kick_Peer)] + tox_group_mod_kick_peer.restype = c_bool ++ else: LOG_ERROR("tox_group_mod_kick_peer") + + enum_Tox_Group_Mod_Event = c_int# /usr/local/src/c-toxcore/toxcore/tox.h: 5545 + + TOX_GROUP_MOD_EVENT_KICK = 0# /usr/local/src/c-toxcore/toxcore/tox.h: 5545 + +*************** +*** 3792,3809 **** + # /usr/local/src/c-toxcore/toxcore/tox.h: 5547 + if _libs["libtoxcore"].has("tox_group_mod_event_to_string", "cdecl"): + tox_group_mod_event_to_string = _libs["libtoxcore"].get("tox_group_mod_event_to_string", "cdecl") + tox_group_mod_event_to_string.argtypes = [Tox_Group_Mod_Event] + tox_group_mod_event_to_string.restype = c_char_p + + tox_group_moderation_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, Tox_Group_Peer_Number, Tox_Group_Mod_Event, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 5555 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 5569 + if _libs["libtoxcore"].has("tox_callback_group_moderation", "cdecl"): + tox_callback_group_moderation = _libs["libtoxcore"].get("tox_callback_group_moderation", "cdecl") +! tox_callback_group_moderation.argtypes = [POINTER(Tox), POINTER(tox_group_moderation_cb)] + tox_callback_group_moderation.restype = None + + TOX_ERR_OPTIONS_NEW = Tox_Err_Options_New# /usr/local/src/c-toxcore/toxcore/tox.h: 5582 + + TOX_ERR_NEW = Tox_Err_New# /usr/local/src/c-toxcore/toxcore/tox.h: 5583 + +--- 4102,4121 ---- + # /usr/local/src/c-toxcore/toxcore/tox.h: 5547 + if _libs["libtoxcore"].has("tox_group_mod_event_to_string", "cdecl"): + tox_group_mod_event_to_string = _libs["libtoxcore"].get("tox_group_mod_event_to_string", "cdecl") + tox_group_mod_event_to_string.argtypes = [Tox_Group_Mod_Event] + tox_group_mod_event_to_string.restype = c_char_p ++ else: LOG_ERROR("tox_group_mod_event_to_string") + + tox_group_moderation_cb = CFUNCTYPE(UNCHECKED(None), POINTER(Tox), Tox_Group_Number, Tox_Group_Peer_Number, Tox_Group_Peer_Number, Tox_Group_Mod_Event, POINTER(None))# /usr/local/src/c-toxcore/toxcore/tox.h: 5555 + + # /usr/local/src/c-toxcore/toxcore/tox.h: 5569 + if _libs["libtoxcore"].has("tox_callback_group_moderation", "cdecl"): + tox_callback_group_moderation = _libs["libtoxcore"].get("tox_callback_group_moderation", "cdecl") +! tox_callback_group_moderation.argtypes = [POINTER(Tox), UNCHECKED(None)] # POINTER(tox_group_moderation_cb) + tox_callback_group_moderation.restype = None ++ else: LOG_ERROR("tox_callback_group_moderation") + + TOX_ERR_OPTIONS_NEW = Tox_Err_Options_New# /usr/local/src/c-toxcore/toxcore/tox.h: 5582 + + TOX_ERR_NEW = Tox_Err_New# /usr/local/src/c-toxcore/toxcore/tox.h: 5583 + +*************** +*** 4220,4241 **** +--- 4532,4556 ---- + # /usr/local/src/c-toxcore/toxencryptsave/toxencryptsave.h: 53 + if _libs["libtoxcore"].has("tox_pass_salt_length", "cdecl"): + tox_pass_salt_length = _libs["libtoxcore"].get("tox_pass_salt_length", "cdecl") + tox_pass_salt_length.argtypes = [] + tox_pass_salt_length.restype = uint32_t ++ else: LOG_ERROR("tox_pass_salt_length") + + # /usr/local/src/c-toxcore/toxencryptsave/toxencryptsave.h: 60 + if _libs["libtoxcore"].has("tox_pass_key_length", "cdecl"): + tox_pass_key_length = _libs["libtoxcore"].get("tox_pass_key_length", "cdecl") + tox_pass_key_length.argtypes = [] + tox_pass_key_length.restype = uint32_t ++ else: LOG_ERROR("tox_pass_key_length") + + # /usr/local/src/c-toxcore/toxencryptsave/toxencryptsave.h: 69 + if _libs["libtoxcore"].has("tox_pass_encryption_extra_length", "cdecl"): + tox_pass_encryption_extra_length = _libs["libtoxcore"].get("tox_pass_encryption_extra_length", "cdecl") + tox_pass_encryption_extra_length.argtypes = [] + tox_pass_encryption_extra_length.restype = uint32_t ++ else: LOG_ERROR("tox_pass_encryption_extra_length") + + enum_Tox_Err_Key_Derivation = c_int# /usr/local/src/c-toxcore/toxencryptsave/toxencryptsave.h: 89 + + TOX_ERR_KEY_DERIVATION_OK = 0# /usr/local/src/c-toxcore/toxencryptsave/toxencryptsave.h: 89 + +*************** +*** 4276,4291 **** +--- 4591,4608 ---- + # /usr/local/src/c-toxcore/toxencryptsave/toxencryptsave.h: 180 + if _libs["libtoxcore"].has("tox_pass_encrypt", "cdecl"): + tox_pass_encrypt = _libs["libtoxcore"].get("tox_pass_encrypt", "cdecl") + tox_pass_encrypt.argtypes = [POINTER(uint8_t), c_size_t, POINTER(uint8_t), c_size_t, POINTER(uint8_t), POINTER(Tox_Err_Encryption)] + tox_pass_encrypt.restype = c_bool ++ else: LOG_ERROR("tox_pass_encrypt") + + # /usr/local/src/c-toxcore/toxencryptsave/toxencryptsave.h: 197 + if _libs["libtoxcore"].has("tox_pass_decrypt", "cdecl"): + tox_pass_decrypt = _libs["libtoxcore"].get("tox_pass_decrypt", "cdecl") + tox_pass_decrypt.argtypes = [POINTER(uint8_t), c_size_t, POINTER(uint8_t), c_size_t, POINTER(uint8_t), POINTER(Tox_Err_Decryption)] + tox_pass_decrypt.restype = c_bool ++ else: LOG_ERROR("tox_pass_decrypt") + + # /usr/local/src/c-toxcore/toxencryptsave/toxencryptsave.h: 222 + class struct_Tox_Pass_Key(Structure): + pass + +*************** +*** 4294,4327 **** +--- 4611,4649 ---- + # /usr/local/src/c-toxcore/toxencryptsave/toxencryptsave.h: 229 + if _libs["libtoxcore"].has("tox_pass_key_free", "cdecl"): + tox_pass_key_free = _libs["libtoxcore"].get("tox_pass_key_free", "cdecl") + tox_pass_key_free.argtypes = [POINTER(Tox_Pass_Key)] + tox_pass_key_free.restype = None ++ else: LOG_ERROR("tox_pass_key_free") + + # /usr/local/src/c-toxcore/toxencryptsave/toxencryptsave.h: 246 + if _libs["libtoxcore"].has("tox_pass_key_derive", "cdecl"): + tox_pass_key_derive = _libs["libtoxcore"].get("tox_pass_key_derive", "cdecl") + tox_pass_key_derive.argtypes = [POINTER(uint8_t), c_size_t, POINTER(Tox_Err_Key_Derivation)] + tox_pass_key_derive.restype = POINTER(Tox_Pass_Key) ++ else: LOG_ERROR("tox_pass_key_derive") + + # /usr/local/src/c-toxcore/toxencryptsave/toxencryptsave.h: 259 + if _libs["libtoxcore"].has("tox_pass_key_derive_with_salt", "cdecl"): + tox_pass_key_derive_with_salt = _libs["libtoxcore"].get("tox_pass_key_derive_with_salt", "cdecl") + tox_pass_key_derive_with_salt.argtypes = [POINTER(uint8_t), c_size_t, uint8_t * int(32), POINTER(Tox_Err_Key_Derivation)] + tox_pass_key_derive_with_salt.restype = POINTER(Tox_Pass_Key) ++ else: LOG_ERROR("tox_pass_key_derive_with_salt") + + # /usr/local/src/c-toxcore/toxencryptsave/toxencryptsave.h: 275 + if _libs["libtoxcore"].has("tox_pass_key_encrypt", "cdecl"): + tox_pass_key_encrypt = _libs["libtoxcore"].get("tox_pass_key_encrypt", "cdecl") + tox_pass_key_encrypt.argtypes = [POINTER(Tox_Pass_Key), POINTER(uint8_t), c_size_t, POINTER(uint8_t), POINTER(Tox_Err_Encryption)] + tox_pass_key_encrypt.restype = c_bool ++ else: LOG_ERROR("tox_pass_key_encrypt") + + # /usr/local/src/c-toxcore/toxencryptsave/toxencryptsave.h: 288 + if _libs["libtoxcore"].has("tox_pass_key_decrypt", "cdecl"): + tox_pass_key_decrypt = _libs["libtoxcore"].get("tox_pass_key_decrypt", "cdecl") + tox_pass_key_decrypt.argtypes = [POINTER(Tox_Pass_Key), POINTER(uint8_t), c_size_t, POINTER(uint8_t), POINTER(Tox_Err_Decryption)] + tox_pass_key_decrypt.restype = c_bool ++ else: LOG_ERROR("tox_pass_key_decrypt") + + enum_Tox_Err_Get_Salt = c_int# /usr/local/src/c-toxcore/toxencryptsave/toxencryptsave.h: 309 + + TOX_ERR_GET_SALT_OK = 0# /usr/local/src/c-toxcore/toxencryptsave/toxencryptsave.h: 309 + +*************** +*** 4334,4349 **** +--- 4656,4673 ---- + # /usr/local/src/c-toxcore/toxencryptsave/toxencryptsave.h: 330 + if _libs["libtoxcore"].has("tox_get_salt", "cdecl"): + tox_get_salt = _libs["libtoxcore"].get("tox_get_salt", "cdecl") + tox_get_salt.argtypes = [uint8_t * int(80), uint8_t * int(32), POINTER(Tox_Err_Get_Salt)] + tox_get_salt.restype = c_bool ++ else: LOG_ERROR("tox_get_salt") + + # /usr/local/src/c-toxcore/toxencryptsave/toxencryptsave.h: 348 + if _libs["libtoxcore"].has("tox_is_data_encrypted", "cdecl"): + tox_is_data_encrypted = _libs["libtoxcore"].get("tox_is_data_encrypted", "cdecl") + tox_is_data_encrypted.argtypes = [uint8_t * int(80)] + tox_is_data_encrypted.restype = c_bool ++ else: LOG_ERROR("tox_is_data_encrypted") + + TOX_ERR_KEY_DERIVATION = Tox_Err_Key_Derivation# /usr/local/src/c-toxcore/toxencryptsave/toxencryptsave.h: 356 + + TOX_ERR_ENCRYPTION = Tox_Err_Encryption# /usr/local/src/c-toxcore/toxencryptsave/toxencryptsave.h: 357 +