Remove TOX_FILE_KIND typedef.

This commit is contained in:
irungentoo 2015-03-13 15:38:44 -04:00
parent 8e2957ec50
commit c3e07b73d3
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98
3 changed files with 6 additions and 6 deletions

View File

@ -1127,8 +1127,8 @@ void print_groupnamelistchange(Tox *m, int groupnumber, int peernumber, uint8_t
print_groupchatpeers(m, groupnumber); print_groupchatpeers(m, groupnumber);
} }
} }
void file_request_accept(Tox *tox, uint32_t friend_number, uint32_t file_number, TOX_FILE_KIND type, void file_request_accept(Tox *tox, uint32_t friend_number, uint32_t file_number, uint32_t type, uint64_t file_size,
uint64_t file_size, const uint8_t *filename, size_t filename_length, void *user_data) const uint8_t *filename, size_t filename_length, void *user_data)
{ {
if (type != TOX_FILE_KIND_DATA) { if (type != TOX_FILE_KIND_DATA) {
new_lines("Refused invalid file type."); new_lines("Refused invalid file type.");

View File

@ -124,8 +124,8 @@ int not_sending()
static char path[1024]; static char path[1024];
void file_request_accept(Tox *tox, uint32_t friend_number, uint32_t file_number, TOX_FILE_KIND type, void file_request_accept(Tox *tox, uint32_t friend_number, uint32_t file_number, uint32_t type, uint64_t file_size,
uint64_t file_size, const uint8_t *filename, size_t filename_length, void *user_data) const uint8_t *filename, size_t filename_length, void *user_data)
{ {
if (type != TOX_FILE_KIND_DATA) { if (type != TOX_FILE_KIND_DATA) {
printf("Refused invalid file type."); printf("Refused invalid file type.");

View File

@ -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 * Arbitrary file data. Clients can choose to handle it based on the file name
* or magic or any other way they choose. * or magic or any other way they choose.
@ -1412,7 +1412,7 @@ typedef enum TOX_FILE_KIND {
* transfer if it matches. * transfer if it matches.
*/ */
TOX_FILE_KIND_AVATAR TOX_FILE_KIND_AVATAR
} TOX_FILE_KIND; };
/** /**