clang-format
This commit is contained in:
parent
4ca6ae3169
commit
d0ab7b0139
10 changed files with 402 additions and 340 deletions
|
@ -245,12 +245,13 @@ twc_tox_err_file_control(enum TOX_ERR_FILE_CONTROL error)
|
|||
"success",
|
||||
"the friend number passed did not designate a valid friend",
|
||||
"this client is currently not connected to the friend",
|
||||
"no file transfer with the given file number was found for the given friend",
|
||||
"no file transfer with the given file number was found for the given "
|
||||
"friend",
|
||||
"a RESUME control was sent, but the file transfer is running normally",
|
||||
"A RESUME control was sent, but the file transfer was paused by the other party",
|
||||
"A RESUME control was sent, but the file transfer was paused by the "
|
||||
"other party",
|
||||
"a PAUSE control was sent, but the file transfer was already paused",
|
||||
"packet queue is full"
|
||||
};
|
||||
"packet queue is full"};
|
||||
return messages[error];
|
||||
}
|
||||
|
||||
|
@ -259,10 +260,11 @@ twc_tox_err_file_get(enum TOX_ERR_FILE_GET error)
|
|||
{
|
||||
char *messages[] = {
|
||||
"success",
|
||||
"one of the arguments to the function was NULL when it was not expected",
|
||||
"one of the arguments to the function was NULL when it was not "
|
||||
"expected",
|
||||
"the friend number passed did not designate a valid friend",
|
||||
"no file transfer with the given number was found for the given friend"
|
||||
};
|
||||
"no file transfer with the given number was found for the given "
|
||||
"friend"};
|
||||
return messages[error];
|
||||
}
|
||||
|
||||
|
@ -273,11 +275,11 @@ twc_tox_err_file_seek(enum TOX_ERR_FILE_SEEK error)
|
|||
"success",
|
||||
"the friend number passed did not designate a valid friend",
|
||||
"the client is currently not connected to the friend",
|
||||
"no file transfer with the given file number was found for the given friend",
|
||||
"no file transfer with the given file number was found for the given "
|
||||
"friend",
|
||||
"file was not in a state where it could be seeked",
|
||||
"seek position was invalid",
|
||||
"packet queue is full"
|
||||
};
|
||||
"packet queue is full"};
|
||||
return messages[error];
|
||||
}
|
||||
|
||||
|
@ -286,12 +288,12 @@ twc_tox_err_file_send(enum TOX_ERR_FILE_SEND error)
|
|||
{
|
||||
char *messages[] = {
|
||||
"success",
|
||||
"one of the arguments of the function was NULL when it was not expected",
|
||||
"one of the arguments of the function was NULL when it was not "
|
||||
"expected",
|
||||
"the friend number passed did not designate a valid friend",
|
||||
"this client is currently not connected to the friend",
|
||||
"filename lenth exceeded TOX_MAX_FILENAME_LENGTH bytes",
|
||||
"too many ongoing transfers"
|
||||
};
|
||||
"too many ongoing transfers"};
|
||||
return messages[error];
|
||||
}
|
||||
|
||||
|
@ -303,11 +305,11 @@ twc_tox_err_file_send_chunk(enum TOX_ERR_FILE_SEND_CHUNK error)
|
|||
"the length parameter was non-zero, but data was NULL",
|
||||
"the friend number passed did not designate a valid friend",
|
||||
"this client is currently not connected to the friend",
|
||||
"no file transfer with the given file number was found for the given friend",
|
||||
"no file transfer with the given file number was found for the given "
|
||||
"friend",
|
||||
"not called from the request chunk callback",
|
||||
"attempted to send more or less data than requested",
|
||||
"packet queue is full",
|
||||
"position parameter was wrong"
|
||||
};
|
||||
"position parameter was wrong"};
|
||||
return messages[error];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue