|
1 | | -/* $Id: Wayland.h 114620 2026-07-04 00:00:20Z knut.osmundsen@oracle.com $ */ |
| 1 | +/* $Id: Wayland.h 114738 2026-07-21 13:40:26Z knut.osmundsen@oracle.com $ */ |
2 | 2 | /** @file |
3 | 3 | * Guest / Host common code - Wayland. |
4 | 4 | */ |
@@ -155,8 +155,23 @@ VBGH_DECL(int) VbghWaylandReadFdToBuffer(int fd, RTMSINTERVAL cMsTi |
155 | 155 | VBGH_DECL(void) VbghWaylandReadFdToBufferFree(void *pvBuf); |
156 | 156 | VBGH_DECL(int) VbghWaylandWriteBufferToFd(void const *pvBuf, size_t cbBuf, int fdDst, RTMSINTERVAL cMsTimeout); |
157 | 157 |
|
158 | | -VBGH_DECL(int) VbghWaylandRunloopForDisplay(struct wl_display *pDisplay, RTPIPE hPipeWakeup, RTPIPE hPipeMonClose, |
159 | | - RTMSINTERVAL cMsPollInterval, bool volatile *pfReturn); |
| 158 | +/** |
| 159 | + * Callback for servicing the VbghWaylandRunloopForDisplay wakeup pipe. |
| 160 | + * |
| 161 | + * @returns VBox status code. Any failure status leads to the pipe being |
| 162 | + * excluded from the poll. |
| 163 | + * @param hPipe The wakeup pipe (read). |
| 164 | + * @param pfReturn The return indicator, if given. |
| 165 | + * @param pvUser User argument. |
| 166 | + */ |
| 167 | +typedef DECLCALLBACKTYPE(int, FNVBGHWAYLANDRLWAKEUPPIPE,(RTPIPE hPipe, bool volatile *pfReturn, void *pvUser)); |
| 168 | +/** Pointer to a FNVBGHWAYLANDRLWAKEUPPIPE function. */ |
| 169 | +typedef FNVBGHWAYLANDRLWAKEUPPIPE *PFNVBGHWAYLANDRLWAKEUPPIPE; |
| 170 | + |
| 171 | +VBGH_DECL(int) VbghWaylandRunloopForDisplay(struct wl_display *pDisplay, RTPIPE hPipeWakeup, |
| 172 | + PFNVBGHWAYLANDRLWAKEUPPIPE pfnWakeup, void *pvWakeupUser, |
| 173 | + RTPIPE hPipeMonClose, RTMSINTERVAL cMsPollInterval, |
| 174 | + bool volatile *pfReturn); |
160 | 175 |
|
161 | 176 | RT_C_DECLS_END |
162 | 177 |
|
|
0 commit comments