mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Remove TOX_FILE_KIND typedef.
This commit is contained in:
parent
8e2957ec50
commit
c3e07b73d3
|
@ -1127,8 +1127,8 @@ void print_groupnamelistchange(Tox *m, int groupnumber, int peernumber, uint8_t
|
|||
print_groupchatpeers(m, groupnumber);
|
||||
}
|
||||
}
|
||||
void file_request_accept(Tox *tox, uint32_t friend_number, uint32_t file_number, TOX_FILE_KIND type,
|
||||
uint64_t file_size, const uint8_t *filename, size_t filename_length, void *user_data)
|
||||
void file_request_accept(Tox *tox, uint32_t friend_number, uint32_t file_number, uint32_t type, uint64_t file_size,
|
||||
const uint8_t *filename, size_t filename_length, void *user_data)
|
||||
{
|
||||
if (type != TOX_FILE_KIND_DATA) {
|
||||
new_lines("Refused invalid file type.");
|
||||
|
|
|
@ -124,8 +124,8 @@ int not_sending()
|
|||
|
||||
static char path[1024];
|
||||
|
||||
void file_request_accept(Tox *tox, uint32_t friend_number, uint32_t file_number, TOX_FILE_KIND type,
|
||||
uint64_t file_size, const uint8_t *filename, size_t filename_length, void *user_data)
|
||||
void file_request_accept(Tox *tox, uint32_t friend_number, uint32_t file_number, uint32_t type, uint64_t file_size,
|
||||
const uint8_t *filename, size_t filename_length, void *user_data)
|
||||
{
|
||||
if (type != TOX_FILE_KIND_DATA) {
|
||||
printf("Refused invalid file type.");
|
||||
|
|
|
@ -1389,7 +1389,7 @@ void tox_callback_friend_action(Tox *tox, tox_friend_action_cb *function, void *
|
|||
******************************************************************************/
|
||||
|
||||
|
||||
typedef enum TOX_FILE_KIND {
|
||||
enum TOX_FILE_KIND {
|
||||
/**
|
||||
* Arbitrary file data. Clients can choose to handle it based on the file name
|
||||
* or magic or any other way they choose.
|
||||
|
@ -1412,7 +1412,7 @@ typedef enum TOX_FILE_KIND {
|
|||
* transfer if it matches.
|
||||
*/
|
||||
TOX_FILE_KIND_AVATAR
|
||||
} TOX_FILE_KIND;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user