Skip to content

Commit 3304e13

Browse files
committed
doxygen: document GotFrameBufferUpdate() and FinishedFrameBufferUpdate()
Closes #292
1 parent 36a7127 commit 3304e13

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

rfb/rfbclient.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,23 @@ typedef void (*HandleKeyboardLedStateProc)(struct _rfbClient* client, int value,
188188
typedef rfbBool (*HandleCursorPosProc)(struct _rfbClient* client, int x, int y);
189189
typedef void (*SoftCursorLockAreaProc)(struct _rfbClient* client, int x, int y, int w, int h);
190190
typedef void (*SoftCursorUnlockScreenProc)(struct _rfbClient* client);
191+
/**
192+
Callback indicating that a rectangular area of the client's framebuffer was updated.
193+
As a server will usually send several rects per rfbFramebufferUpdate message, this
194+
callback is usually called multiple times per rfbFramebufferUpdate message.
195+
@param client The client whose framebuffer was (partially) updated
196+
@param x The x-coordinate of the upper left corner of the updated rectangle
197+
@param y The y-coordinate of the upper left corner of the updated rectangle
198+
@param w The width of the updated rectangle
199+
@param h The heigth of the updated rectangle
200+
*/
191201
typedef void (*GotFrameBufferUpdateProc)(struct _rfbClient* client, int x, int y, int w, int h);
202+
/**
203+
Callback indicating that a client has completely processed an rfbFramebufferUpdate
204+
message sent by a server.
205+
This is called exactly once per each handled rfbFramebufferUpdate message.
206+
@param client The client which finished processing an rfbFramebufferUpdate
207+
*/
192208
typedef void (*FinishedFrameBufferUpdateProc)(struct _rfbClient* client);
193209
typedef char* (*GetPasswordProc)(struct _rfbClient* client);
194210
typedef rfbCredential* (*GetCredentialProc)(struct _rfbClient* client, int credentialType);

0 commit comments

Comments
 (0)