diff options
author | michael bishop <cleverca22@gmail.com> | 2016-09-09 10:30:35 -0300 |
---|---|---|
committer | michael bishop <cleverca22@gmail.com> | 2016-09-10 01:09:37 -0300 |
commit | 05f474b4df8171412237f46c943822edd202b4a9 (patch) | |
tree | 7cf886de28682fe5d4c40de034c9ebfae75d3eae /other | |
parent | 406d292107f66a06f8db695645345b13ae8acc8b (diff) |
make the majority of the callbacks stateless and add some status to a testcase
Diffstat (limited to 'other')
-rw-r--r-- | other/apidsl/tox.in.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/other/apidsl/tox.in.h b/other/apidsl/tox.in.h index 959eb0d6..7953d4f6 100644 --- a/other/apidsl/tox.in.h +++ b/other/apidsl/tox.in.h | |||
@@ -1366,7 +1366,7 @@ namespace friend { | |||
1366 | * This callback is not called when adding friends. It is assumed that when | 1366 | * This callback is not called when adding friends. It is assumed that when |
1367 | * adding friends, their connection status is initially offline. | 1367 | * adding friends, their connection status is initially offline. |
1368 | */ | 1368 | */ |
1369 | event connection_status { | 1369 | event connection_status const { |
1370 | /** | 1370 | /** |
1371 | * @param friend_number The friend number of the friend whose connection status | 1371 | * @param friend_number The friend number of the friend whose connection status |
1372 | * changed. | 1372 | * changed. |
@@ -1687,7 +1687,7 @@ namespace file { | |||
1687 | * This event is triggered when a file control command is received from a | 1687 | * This event is triggered when a file control command is received from a |
1688 | * friend. | 1688 | * friend. |
1689 | */ | 1689 | */ |
1690 | event recv_control { | 1690 | event recv_control const { |
1691 | /** | 1691 | /** |
1692 | * When receiving ${CONTROL.CANCEL}, the client should release the | 1692 | * When receiving ${CONTROL.CANCEL}, the client should release the |
1693 | * resources associated with the file number and consider the transfer failed. | 1693 | * resources associated with the file number and consider the transfer failed. |
@@ -1916,7 +1916,7 @@ namespace file { | |||
1916 | /** | 1916 | /** |
1917 | * This event is triggered when Core is ready to send more file data. | 1917 | * This event is triggered when Core is ready to send more file data. |
1918 | */ | 1918 | */ |
1919 | event chunk_request { | 1919 | event chunk_request const { |
1920 | /** | 1920 | /** |
1921 | * If the length parameter is 0, the file transfer is finished, and the client's | 1921 | * If the length parameter is 0, the file transfer is finished, and the client's |
1922 | * resources associated with the file number should be released. After a call | 1922 | * resources associated with the file number should be released. After a call |
@@ -1957,7 +1957,7 @@ namespace file { | |||
1957 | /** | 1957 | /** |
1958 | * This event is triggered when a file transfer request is received. | 1958 | * This event is triggered when a file transfer request is received. |
1959 | */ | 1959 | */ |
1960 | event recv { | 1960 | event recv const { |
1961 | /** | 1961 | /** |
1962 | * The client should acquire resources to be associated with the file transfer. | 1962 | * The client should acquire resources to be associated with the file transfer. |
1963 | * Incoming file transfers start in the PAUSED state. After this callback | 1963 | * Incoming file transfers start in the PAUSED state. After this callback |
@@ -1985,7 +1985,7 @@ namespace file { | |||
1985 | * This event is first triggered when a file transfer request is received, and | 1985 | * This event is first triggered when a file transfer request is received, and |
1986 | * subsequently when a chunk of file data for an accepted request was received. | 1986 | * subsequently when a chunk of file data for an accepted request was received. |
1987 | */ | 1987 | */ |
1988 | event recv_chunk { | 1988 | event recv_chunk const { |
1989 | /** | 1989 | /** |
1990 | * When length is 0, the transfer is finished and the client should release the | 1990 | * When length is 0, the transfer is finished and the client should release the |
1991 | * resources it acquired for the transfer. After a call with length = 0, the | 1991 | * resources it acquired for the transfer. After a call with length = 0, the |
@@ -2109,7 +2109,7 @@ namespace friend { | |||
2109 | } | 2109 | } |
2110 | 2110 | ||
2111 | 2111 | ||
2112 | event lossy_packet { | 2112 | event lossy_packet const { |
2113 | /** | 2113 | /** |
2114 | * @param friend_number The friend number of the friend who sent a lossy packet. | 2114 | * @param friend_number The friend number of the friend who sent a lossy packet. |
2115 | * @param data A byte array containing the received packet data. | 2115 | * @param data A byte array containing the received packet data. |
@@ -2119,7 +2119,7 @@ namespace friend { | |||
2119 | } | 2119 | } |
2120 | 2120 | ||
2121 | 2121 | ||
2122 | event lossless_packet { | 2122 | event lossless_packet const { |
2123 | /** | 2123 | /** |
2124 | * @param friend_number The friend number of the friend who sent the packet. | 2124 | * @param friend_number The friend number of the friend who sent the packet. |
2125 | * @param data A byte array containing the received packet data. | 2125 | * @param data A byte array containing the received packet data. |