VirtualBox

Ignore:
Timestamp:
Jul 16, 2024 11:47:19 AM (5 months ago)
Author:
vboxsync
Message:

iprt/req.h,*: Adjustments of the RTReqQueue API to fit darwin/arm64 restrictions. bugref:10725

Location:
trunk/src/VBox/Devices/Network/slirp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/hostres.c

    r98103 r105353  
    175175
    176176
    177 static void hostres_async(struct response *res);
    178 static void hostres_slirp_reply(struct response *res);
     177static DECLCALLBACK(void) hostres_async(struct response *res);
     178static DECLCALLBACK(void) hostres_slirp_reply(struct response *res);
    179179
    180180
     
    205205    res->end = res->qlen = mlen;
    206206
    207     rc = slirp_call_hostres(pData->pvUser, NULL, 0,
    208                             RTREQFLAGS_VOID | RTREQFLAGS_NO_WAIT,
    209                             (PFNRT)hostres_async, 1, res);
    210 
     207    rc = slirp_call_hostres(pData->pvUser, NULL, 0, RTREQFLAGS_VOID | RTREQFLAGS_NO_WAIT, (PFNRT)hostres_async, 1, res);
    211208    if (RT_FAILURE(rc))
    212209    {
     
    341338    free_labels(res->labels);
    342339
    343     rc = slirp_call(res->pData->pvUser, NULL, 0,
    344                     RTREQFLAGS_VOID | RTREQFLAGS_NO_WAIT,
    345                     (PFNRT)hostres_slirp_reply, 1, res);
    346 
     340    rc = slirp_call(res->pData->pvUser, NULL, 0, RTREQFLAGS_VOID | RTREQFLAGS_NO_WAIT, (PFNRT)hostres_slirp_reply, 1, res);
    347341    if (RT_FAILURE(rc))
    348342    {
  • trunk/src/VBox/Devices/Network/slirp/libslirp.h

    r98103 r105353  
    8484
    8585int slirp_call(void *pvUser, PRTREQ *ppReq, RTMSINTERVAL cMillies,
    86                unsigned fFlags, PFNRT pfnFunction, unsigned cArgs, ...);
     86               unsigned fFlags, PFNRT pfnFunction, unsigned cArgs, ...) RT_IPRT_CALL_ATTR(5, 6, 7);
    8787
    8888int slirp_call_hostres(void *pvUser, PRTREQ *ppReq, RTMSINTERVAL cMillies,
    89                        unsigned fFlags, PFNRT pfnFunction, unsigned cArgs, ...);
     89                       unsigned fFlags, PFNRT pfnFunction, unsigned cArgs, ...) RT_IPRT_CALL_ATTR(5, 6, 7);
    9090
    9191
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette