Home
last modified time | relevance | path

Searched refs:Tox (Results 1 – 25 of 855) sorted by relevance

12345678910>>...35

/dports/net-im/tox/c-toxcore-0.2.13/toxcore/
H A Dtox.h136 typedef struct Tox Tox; typedef
906 void tox_kill(Tox *tox);
914 size_t tox_get_savedata_size(const Tox *tox);
1057 uint32_t tox_iteration_interval(const Tox *tox);
1063 void tox_iterate(Tox *tox, void *user_data);
1092 void tox_self_set_nospam(Tox *tox, uint32_t nospam);
1098 uint32_t tox_self_get_nospam(const Tox *tox);
1170 size_t tox_self_get_name_size(const Tox *tox);
1184 void tox_self_get_name(const Tox *tox, uint8_t *name);
1229 TOX_USER_STATUS tox_self_get_status(const Tox *tox);
[all …]
H A Dtox.c67 struct Tox { struct
99 static void lock(const Tox *tox) in lock() argument
106 static void unlock(const Tox *tox) in unlock()
114 Tox *tox;
348 const Tox *tox = (const Tox *)outer; in state_load_callback()
394 Tox *tox = (Tox *)calloc(1, sizeof(Tox)); in tox_new()
617 void tox_kill(Tox *tox) in tox_kill()
648 size_t tox_get_savedata_size(const Tox *tox) in tox_get_savedata_size()
817 void tox_iterate(Tox *tox, void *user_data) in tox_iterate()
850 uint32_t tox_self_get_nospam(const Tox *tox) in tox_self_get_nospam()
[all …]
H A Dtox_private.h24 void tox_callback_friend_lossy_packet_per_pktid(Tox *tox, tox_friend_lossy_packet_cb *callback, uin…
35 void tox_callback_friend_lossless_packet_per_pktid(Tox *tox, tox_friend_lossless_packet_cb *callbac…
37 void tox_set_av_object(Tox *tox, void *object);
38 void *tox_get_av_object(const Tox *tox);
/dports/net-im/toxic/toxic-0.11.3/src/
H A Dglobal_commands.h29 void cmd_accept(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
30 void cmd_add(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
32 void cmd_clear(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
33 void cmd_connect(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
36 void cmd_log(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
37 void cmd_myid(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
41 void cmd_nick(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
42 void cmd_note(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
45 void cmd_quit(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
49 void cmd_add_helper(ToxWindow *self, Tox *m, const char *id_bin, const char *msg);
[all …]
H A Dchat_commands.h33 void cmd_savefile(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
37 void cmd_call(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
38 void cmd_answer(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
39 void cmd_reject(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
40 void cmd_hangup(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
41 void cmd_cancel(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
43 void cmd_mute(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
44 void cmd_sense(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
49 void cmd_vcall(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
50 void cmd_video(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
[all …]
H A Dwindows.h166 bool(*onKey)(ToxWindow *, Tox *, wint_t, bool);
167 void(*onDraw)(ToxWindow *, Tox *);
168 void(*onInit)(ToxWindow *, Tox *);
172 void(*onFriendAdded)(ToxWindow *, Tox *, uint32_t, bool);
176 void(*onStatusChange)(ToxWindow *, Tox *, uint32_t, Tox_User_Status);
180 void(*onConferenceNameListChange)(ToxWindow *, Tox *, uint32_t);
187 void(*onTypingChange)(ToxWindow *, Tox *, uint32_t, bool);
188 void(*onReadReceipt)(ToxWindow *, Tox *, uint32_t, uint32_t);
312 ToxWindow *init_windows(Tox *m);
313 void draw_active_window(Tox *m);
[all …]
H A Dtoxic.h113 void exit_toxic_success(Tox *m);
116 int store_data(Tox *m, const char *path);
120 void on_friend_connection_status(Tox *m, uint32_t friendnumber, Tox_Connection status, void *userda…
123 void on_friend_name(Tox *m, uint32_t friendnumber, const uint8_t *string, size_t length, void *user…
124 void on_friend_status(Tox *m, uint32_t friendnumber, Tox_User_Status status, void *userdata);
126 void on_friend_added(Tox *m, uint32_t friendnumber, bool sort);
131 void on_conference_peer_list_changed(Tox *m, uint32_t conferencenumber, void *userdata);
140 void on_file_recv_control(Tox *m, uint32_t friendnumber, uint32_t filenumber, Tox_File_Control cont…
142 void on_file_recv(Tox *m, uint32_t friendnumber, uint32_t filenumber, uint32_t kind, uint64_t file_…
144 void on_friend_typing(Tox *m, uint32_t friendnumber, bool is_typing, void *userdata);
[all …]
H A Davatars.h35 int avatar_send(Tox *m, uint32_t friendnum);
42 int avatar_set(Tox *m, const char *path, size_t length);
49 void avatar_unset(Tox *m);
51 void on_avatar_chunk_request(Tox *m, struct FileTransfer *ft, uint64_t position, size_t length);
52 void on_avatar_file_control(Tox *m, struct FileTransfer *ft, Tox_File_Control control);
53 void on_avatar_friend_connection_status(Tox *m, uint32_t friendnumber, Tox_Connection connection_st…
H A Dconference.h47 Tox *tox;
87 int init_conference_win(Tox *m, uint32_t conferencenum, uint8_t type, const char *title, size_t len…
93 void conference_rename_log_path(Tox *m, uint32_t conferencenum, const char *new_title);
94 int conference_enable_logging(ToxWindow *self, Tox *m, uint32_t conferencenum, struct chatlog *log);
105 bool init_conference_audio_input(Tox *tox, uint32_t conferencenum);
106 bool enable_conference_audio(ToxWindow *self, Tox *tox, uint32_t conferencenum);
107 bool disable_conference_audio(ToxWindow *self, Tox *tox, uint32_t conferencenum);
114 bool conference_mute_peer(const Tox *m, uint32_t conferencenum, uint32_t peernum);
H A Dconference_commands.h29 void cmd_conference_set_title(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MAX_S…
30 void cmd_enable_audio(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MAX_STR_SIZE]…
31 void cmd_conference_mute(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MAX_STR_SI…
32 void cmd_conference_sense(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MAX_STR_S…
33 void cmd_conference_push_to_talk(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MA…
H A Dglobal_commands.c46 void cmd_accept(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MAX_STR_SIZE]) in cmd_accept()
94 void cmd_add_helper(ToxWindow *self, Tox *m, const char *id_bin, const char *msg) in cmd_add_helper()
146 void cmd_add(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MAX_STR_SIZE]) in cmd_add()
205 void cmd_avatar(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MAX_STR_SIZE]) in cmd_avatar()
238 void cmd_clear(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MAX_STR_SIZE]) in cmd_clear()
337 void cmd_game(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MAX_STR_SIZE]) in cmd_game()
462 void cmd_log(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MAX_STR_SIZE]) in cmd_log()
502 void cmd_myid(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MAX_STR_SIZE]) in cmd_myid()
521 void cmd_myqr(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MAX_STR_SIZE]) in cmd_myqr()
616 void cmd_nick(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MAX_STR_SIZE]) in cmd_nick()
[all …]
/dports/net-im/toxext/toxext-0.0.3/mock/
H A Dmock_tox.c5 static Tox **toxes = NULL;
15 struct Tox { struct
67 Tox **new_toxes = realloc(toxes, (toxes_size + 1) * sizeof(Tox *)); in tox_new()
79 toxes[id] = malloc(sizeof(Tox)); in tox_new()
80 Tox *ret = toxes[id]; in tox_new()
90 void tox_kill(Tox *tox) in tox_kill()
113 Tox **new_toxes = realloc(toxes, sizeof(Tox *) * (toxes_size - 1)); in tox_kill()
122 void tox_iterate(Tox *tox, void *user_data) in tox_iterate()
148 Tox *friend_tox = toxes[friend_number]; in tox_friend_send_lossless_packet()
162 uint32_t tox_get_id(Tox *tox) in tox_get_id()
[all …]
/dports/net-im/py-toxcore-c/py-toxcore-c-0.2.0/tests/
H A Dtests.py29 from pytox import Tox, OperationFailedError
68 class AliceTox(Tox):
77 class BobTox(Tox):
115 if status != Tox.CONNECTION_NONE:
307 assert new_status == Tox.USER_STATUS_BUSY
338 self.alice = Tox(opt)
360 self.alice = Tox(opt)
415 BobTox.on_friend_name = Tox.on_friend_name
695 if control == Tox.FILE_CONTROL_RESUME:
720 AliceTox.on_file_recv = Tox.on_file_recv
[all …]
/dports/net-im/uTox/uTox/src/
H A Dtox_callbacks.c22 static void callback_friend_request(Tox *UNUSED(tox), const uint8_t *id, const uint8_t *msg, size_t… in callback_friend_request()
38 static void callback_friend_message(Tox *UNUSED(tox), uint32_t friend_number, TOX_MESSAGE_TYPE type, in callback_friend_message()
68 static void callback_name_change(Tox *UNUSED(tox), uint32_t fid, const uint8_t *newname, size_t len… in callback_name_change()
148 void utox_set_callbacks_friends(Tox *tox) { in utox_set_callbacks_friends()
236 static void callback_group_peer_list_changed(Tox *tox, uint32_t gid, void *UNUSED(userdata)){ in callback_group_peer_list_changed()
303 void callback_group_connected(Tox *UNUSED(tox), uint32_t gid, void *UNUSED(userdata)){ in callback_group_connected()
315 void utox_set_callbacks_groups(Tox *tox) { in utox_set_callbacks_groups()
325 static void callback_friend_list_change(Tox *tox, void *user_data) { in callback_friend_list_change()
333 static void callback_mdev_self_name(Tox *tox, uint32_t dev_num, const uint8_t *name, size_t length, in callback_mdev_self_name()
366 static void callback_device_sent_message(Tox *tox, uint32_t sending_device, uint32_t target_friend, in callback_device_sent_message()
[all …]
H A Dfile_transfers.h69 void ft_local_control(Tox *tox, uint32_t friend_number, uint32_t file_number, TOX_FILE_CONTROL cont…
71 uint32_t ft_send_avatar(Tox *tox, uint32_t friend_number);
73 uint32_t ft_send_file(Tox *tox, uint32_t friend_number, FILE *file, uint8_t *name, size_t name_leng…
75 uint32_t ft_send_data(Tox *tox, uint32_t friend_number, uint8_t *data, size_t size, uint8_t *name, …
84 void utox_set_callbacks_file_transfer(Tox *tox);
86 void ft_friend_online(Tox *tox, uint32_t friend_number);
87 void ft_friend_offline(Tox *tox, uint32_t friend_number);
/dports/net-im/uTox/uTox/
H A DREADME.md1 # μTox [![Build Status](https://travis-ci.org/uTox/uTox.svg?branch=develop)](https://travis-ci.org/…
3 The lightweight [Tox](https://github.com/TokTok/toxcore) client.
7 You shouldn't have to choose a new client for every device: So µTox works everywhere! On every majo…
35 - Tox URI support (clickable Tox links)
38 Just like Toxcore, µTox is still alpha software, so you may encounter bugs, or maybe a crash or two…
41 μTox running on Windows 10
43 ![μTox on Windows 10](images/utox-windows10.png "μTox running on Windows 10")
45 μTox running on macOS:
47 ![μTox on macOS](images/utox-osx.png "μTox running on macOS")
49 μTox running on Linux (Ubuntu)
[all …]
/dports/net-im/qTox/qTox-1.17.4/src/core/
H A Dcore.h195 static void onFriendRequest(Tox* tox, const uint8_t* cUserId, const uint8_t* cMessage,
197 static void onFriendMessage(Tox* tox, uint32_t friendId, Tox_Message_Type type,
199 static void onFriendNameChange(Tox* tox, uint32_t friendId, const uint8_t* cName,
202 static void onStatusMessageChanged(Tox* tox, uint32_t friendId, const uint8_t* cMessage,
204 static void onUserStatusChanged(Tox* tox, uint32_t friendId, Tox_User_Status userstatus,
208 static void onGroupInvite(Tox* tox, uint32_t friendId, Tox_Conference_Type type,
212 static void onGroupPeerListChange(Tox*, uint32_t groupId, void* core);
215 static void onGroupTitleChange(Tox* tox, uint32_t groupId, uint32_t peerId,
233 static void registerCallbacks(Tox* tox);
242 void operator()(Tox* tox) in operator()
[all …]
H A Dcorefile.h42 struct Tox;
53 static CoreFilePtr makeCoreFile(Core* core, Tox* tox, CompatibleRecursiveMutex& coreLoopLock);
83 CoreFile(Tox* core, CompatibleRecursiveMutex& coreLoopLock);
93 static void connectCallbacks(Tox& tox);
94 static void onFileReceiveCallback(Tox* tox, uint32_t friendId, uint32_t fileId, uint32_t kind,
97 static void onFileControlCallback(Tox* tox, uint32_t friendId, uint32_t fileId,
99 static void onFileDataCallback(Tox* tox, uint32_t friendId, uint32_t fileId, uint64_t pos,
101 …static void onFileRecvChunkCallback(Tox* tox, uint32_t friendId, uint32_t fileId, uint64_t positio…
111 Tox* tox;
/dports/net-im/toxbot/ToxBot-1e4af05/src/
H A Dtoxbot.c71 static void exit_groupchats(Tox *m, size_t numchats) in exit_groupchats()
86 static void exit_toxbot(Tox *m) in exit_toxbot()
280 int save_data(Tox *m, const char *path) in save_data()
316 Tox *m = NULL; in load_tox()
361 static Tox *init_tox(void) in init_tox()
367 Tox *m = load_tox(&tox_opts, DATA_FILE); in init_tox()
411 static void bootstrap_DHT(Tox *m) in bootstrap_DHT()
427 static void print_profile_info(Tox *m) in print_profile_info()
455 static void purge_inactive_friends(Tox *m) in purge_inactive_friends()
484 static void purge_empty_groups(Tox *m) in purge_empty_groups()
[all …]
/dports/net-im/tox/c-toxcore-0.2.13/toxav/
H A Dtoxav.h59 typedef struct Tox Tox; typedef
116 ToxAV *toxav_new(Tox *tox, TOXAV_ERR_NEW *error);
130 Tox *toxav_get_tox(const ToxAV *av);
738 int toxav_add_av_groupchat(Tox *tox,
752 int toxav_join_av_groupchat(Tox *tox, uint32_t friendnumber, const uint8_t *data, uint16_t length,
769 int toxav_group_send_audio(Tox *tox, uint32_t groupnumber, const int16_t *pcm, unsigned int samples…
790 int toxav_groupchat_enable_av(Tox *tox, uint32_t groupnumber,
799 int toxav_groupchat_disable_av(Tox *tox, uint32_t groupnumber);
803 bool toxav_groupchat_av_enabled(Tox *tox, uint32_t groupnumber);
809 typedef void toxav_group_audio_cb(Tox *tox, uint32_t groupnumber, uint32_t peernumber, const int16_…
H A Dtoxav_old.c24 int toxav_add_av_groupchat(Tox *tox, audio_data_cb *audio_callback, void *userdata) in toxav_add_av_groupchat()
43 int toxav_join_av_groupchat(Tox *tox, uint32_t friendnumber, const uint8_t *data, uint16_t length, in toxav_join_av_groupchat()
66 int toxav_group_send_audio(Tox *tox, uint32_t groupnumber, const int16_t *pcm, unsigned int samples… in toxav_group_send_audio()
94 int toxav_groupchat_enable_av(Tox *tox, uint32_t groupnumber, audio_data_cb *audio_callback, void *… in toxav_groupchat_enable_av()
108 int toxav_groupchat_disable_av(Tox *tox, uint32_t groupnumber) in toxav_groupchat_disable_av()
119 bool toxav_groupchat_av_enabled(Tox *tox, uint32_t groupnumber) in toxav_groupchat_av_enabled()
/dports/net-im/tox/c-toxcore-0.2.13/auto_tests/
H A Drun_auto_test.h8 static bool all_connected(uint32_t tox_count, Tox **toxes) in all_connected()
19 static bool all_friends_connected(uint32_t tox_count, Tox **toxes) in all_friends_connected()
34 static void iterate_all_wait(uint32_t tox_count, Tox **toxes, State *state, uint32_t wait) in iterate_all_wait()
51 static void set_mono_time_callback(Tox *tox, State *state) in set_mono_time_callback()
60 static void run_auto_test(uint32_t tox_count, void test(Tox **toxes, State *state), bool chain) in run_auto_test()
63 Tox **toxes = (Tox **)calloc(tox_count, sizeof(Tox *)); in run_auto_test()
H A Dconference_invite_merge_test.c26 Tox *tox, uint32_t friend_number, Tox_Conference_Type type, in handle_conference_invite()
41 Tox *tox, uint32_t conference_number, void *user_data) in handle_conference_connected()
48 static void iterate_alive(Tox **toxes, State *state) in iterate_alive()
62 static void save(Tox **toxes, State *state, uint32_t n) in save()
76 static void kill(Tox **toxes, State *state, uint32_t n) in kill()
83 static void reload(Tox **toxes, State *state, uint32_t n) in reload()
105 static void wait_connected(Tox **toxes, State *state, uint32_t n, uint32_t friendnumber) in wait_connected()
112 static void do_invite(Tox **toxes, State *state, uint32_t inviter, uint32_t invitee, uint32_t frien… in do_invite()
127 static bool group_complete(Tox **toxes, State *state) in group_complete()
150 static void wait_group_complete(Tox **toxes, State *state) in wait_group_complete()
[all …]
H A Dsave_friend_test.c25 static void set_random(Tox *m, bool (*setter)(Tox *, const uint8_t *, size_t, Tox_Err_Set_Info *), … in set_random() argument
37 static void namechange_callback(Tox *tox, uint32_t friend_number, const uint8_t *name, size_t lengt… in namechange_callback()
44 static void statuschange_callback(Tox *tox, uint32_t friend_number, const uint8_t *message, size_t … in statuschange_callback()
56 Tox *const tox1 = tox_new_log(nullptr, nullptr, nullptr); in main()
57 Tox *const tox2 = tox_new_log(nullptr, nullptr, nullptr); in main()
122 Tox *const tox_to_compare = tox_new_log(options, nullptr, nullptr); in main()
/dports/net-im/uTox/uTox/cmake/
H A DFindlibtox.cmake1 # - Try to find Tox
3 # LIBTOX_FOUND - System has Tox
4 # LIBTOX_INCLUDE_DIRS - The Tox include directories
5 # LIBTOX_LIBRARIES - The libraries needed to use Tox
6 # LIBTOX_DEFINITIONS - Compiler switches required for using Tox

12345678910>>...35