mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Removed backwards compatibility code from core.
That function should be static.
This commit is contained in:
parent
d015879cd3
commit
8e59a826cb
|
@ -1002,7 +1002,7 @@ void callback_file_data(Messenger *m, void (*function)(Messenger *m, uint32_t, u
|
|||
* return 1 on success
|
||||
* return 0 on failure
|
||||
*/
|
||||
int file_sendrequest(const Messenger *m, int32_t friendnumber, uint8_t filenumber, uint64_t filesize,
|
||||
static int file_sendrequest(const Messenger *m, int32_t friendnumber, uint8_t filenumber, uint64_t filesize,
|
||||
const uint8_t *filename, uint16_t filename_length)
|
||||
{
|
||||
if (friend_not_valid(m, friendnumber))
|
||||
|
@ -1612,11 +1612,6 @@ static int handle_packet(void *object, int i, uint8_t *temp, uint16_t len)
|
|||
if (packet_id == PACKET_ID_ONLINE && len == 1) {
|
||||
set_friend_status(m, i, FRIEND_ONLINE);
|
||||
send_online_packet(m, i);
|
||||
} else if (packet_id == PACKET_ID_NICKNAME || packet_id == PACKET_ID_STATUSMESSAGE
|
||||
|| packet_id == PACKET_ID_USERSTATUS) {
|
||||
/* Some backward compatibility, TODO: remove. */
|
||||
set_friend_status(m, i, FRIEND_ONLINE);
|
||||
send_online_packet(m, i);
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
|
|
|
@ -575,14 +575,6 @@ void callback_file_data(Messenger *m, void (*function)(Messenger *m, uint32_t, u
|
|||
uint16_t length,
|
||||
void *), void *userdata);
|
||||
|
||||
/* Send a file send request.
|
||||
* Maximum filename length is 255 bytes.
|
||||
* return 1 on success
|
||||
* return 0 on failure
|
||||
*/
|
||||
int file_sendrequest(const Messenger *m, int32_t friendnumber, uint8_t filenumber, uint64_t filesize,
|
||||
const uint8_t *filename, uint16_t filename_length);
|
||||
|
||||
/* Send a file send request.
|
||||
* Maximum filename length is 255 bytes.
|
||||
* return file number on success
|
||||
|
|
Loading…
Reference in New Issue
Block a user