From 05f474b4df8171412237f46c943822edd202b4a9 Mon Sep 17 00:00:00 2001 From: michael bishop Date: Fri, 9 Sep 2016 10:30:35 -0300 Subject: make the majority of the callbacks stateless and add some status to a testcase --- other/apidsl/tox.in.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'other/apidsl') 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 { * This callback is not called when adding friends. It is assumed that when * adding friends, their connection status is initially offline. */ - event connection_status { + event connection_status const { /** * @param friend_number The friend number of the friend whose connection status * changed. @@ -1687,7 +1687,7 @@ namespace file { * This event is triggered when a file control command is received from a * friend. */ - event recv_control { + event recv_control const { /** * When receiving ${CONTROL.CANCEL}, the client should release the * resources associated with the file number and consider the transfer failed. @@ -1916,7 +1916,7 @@ namespace file { /** * This event is triggered when Core is ready to send more file data. */ - event chunk_request { + event chunk_request const { /** * If the length parameter is 0, the file transfer is finished, and the client's * resources associated with the file number should be released. After a call @@ -1957,7 +1957,7 @@ namespace file { /** * This event is triggered when a file transfer request is received. */ - event recv { + event recv const { /** * The client should acquire resources to be associated with the file transfer. * Incoming file transfers start in the PAUSED state. After this callback @@ -1985,7 +1985,7 @@ namespace file { * This event is first triggered when a file transfer request is received, and * subsequently when a chunk of file data for an accepted request was received. */ - event recv_chunk { + event recv_chunk const { /** * When length is 0, the transfer is finished and the client should release the * resources it acquired for the transfer. After a call with length = 0, the @@ -2109,7 +2109,7 @@ namespace friend { } - event lossy_packet { + event lossy_packet const { /** * @param friend_number The friend number of the friend who sent a lossy packet. * @param data A byte array containing the received packet data. @@ -2119,7 +2119,7 @@ namespace friend { } - event lossless_packet { + event lossless_packet const { /** * @param friend_number The friend number of the friend who sent the packet. * @param data A byte array containing the received packet data. -- cgit v1.2.3