VirtualBox

Changeset 51739 in vbox


Ignore:
Timestamp:
Jun 26, 2014 1:04:36 PM (10 years ago)
Author:
vboxsync
Message:

Runtime/PKZip: provide stubs

Location:
trunk/src/VBox/Runtime/common/zip
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/zip/pkzip.cpp

    r51732 r51739  
    5757
    5858/**
     59 * @interface_method_impl{RTVFSOBJOPS,pfnClose}
     60 */
     61static DECLCALLBACK(int) memFssIos_Close(void *pvThis)
     62{
     63    NOREF(pvThis);
     64    return VINF_SUCCESS;
     65}
     66
     67/**
    5968 * @interface_method_impl{RTVFSOBJOPS,pfnQueryInfo}
    6069 */
     
    106115
    107116/**
     117 * @interface_method_impl{RTVFSIOSTREAMOPS,pfnWrite}
     118 */
     119static DECLCALLBACK(int) memFssIos_Write(void *pvThis, RTFOFF off, PCRTSGBUF pSgBuf, bool fBlocking, size_t *pcbWritten)
     120{
     121    return VERR_NOT_IMPLEMENTED;
     122}
     123
     124/**
     125 * @interface_method_impl{RTVFSIOSTREAMOPS,pfnFlush}
     126 */
     127static DECLCALLBACK(int) memFssIos_Flush(void *pvThis)
     128{
     129    return VERR_NOT_IMPLEMENTED;
     130}
     131
     132/**
     133 * @interface_method_impl{RTVFSIOSTREAMOPS,pfnPollOne}
     134 */
     135static DECLCALLBACK(int) memFssIos_PollOne(void *pvThis, uint32_t fEvents, RTMSINTERVAL cMillies, bool fIntr, uint32_t *pfRetEvents)
     136{
     137    return VERR_NOT_IMPLEMENTED;
     138}
     139
     140/**
     141 * @interface_method_impl{RTVFSIOSTREAMOPS,pfnTell}
     142 */
     143static DECLCALLBACK(int) memFssIos_Tell(void *pvThis, PRTFOFF poffActual)
     144{
     145    PMEMIOSTREAM pThis = (PMEMIOSTREAM)pvThis;
     146    *poffActual = pThis->off;
     147    return VINF_SUCCESS;
     148}
     149
     150/**
    108151 * Memory I/O object stream operations.
    109152 */
     
    114157        RTVFSOBJTYPE_IO_STREAM,
    115158        "MemFsStream::IoStream",
    116         NULL /*Close*/,
     159        memFssIos_Close,
    117160        memFssIos_QueryInfo,
    118161        RTVFSOBJOPS_VERSION
     
    121164    RTVFSIOSTREAMOPS_FEAT_NO_SG,
    122165    memFssIos_Read,
    123     NULL /*Write*/,
    124     NULL /*Flush*/,
    125     NULL /*PollOne*/,
    126     NULL /*Tell*/,
     166    memFssIos_Write,
     167    memFssIos_Flush,
     168    memFssIos_PollOne,
     169    memFssIos_Tell,
    127170    NULL /*Skip*/,
    128171    NULL /*ZeroFill*/,
  • trunk/src/VBox/Runtime/common/zip/pkzipvfs.cpp

    r51712 r51739  
    983983}
    984984
     985static DECLCALLBACK(int) rtZipPkzipFssIos_Write(void *pvThis, RTFOFF off, PCRTSGBUF pSgBuf, bool fBlocking, size_t *pcWritten)
     986{
     987    return VERR_NOT_IMPLEMENTED;
     988}
     989
     990static DECLCALLBACK(int) rtZipPkzipFssIos_Flush(void *pvThis)
     991{
     992    return VERR_NOT_IMPLEMENTED;
     993}
    985994
    986995/**
     
    10351044    RTVFSIOSTREAMOPS_FEAT_NO_SG,
    10361045    rtZipPkzipFssIos_Read,
    1037     NULL /*Write*/,
    1038     NULL /*Flush*/,
     1046    rtZipPkzipFssIos_Write,
     1047    rtZipPkzipFssIos_Flush,
    10391048    rtZipPkzipFssIos_PollOne,
    10401049    rtZipPkzipFssIos_Tell,
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