VirtualBox

Changeset 82723 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Jan 13, 2020 10:26:27 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
135661
Message:

IPRT/FTP: More protocol handling and callback work. bugref:9437

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/ftp.h

    r82715 r82723  
    3131#endif
    3232
     33#include <iprt/fs.h>
    3334#include <iprt/types.h>
    3435
     
    130131    /** Not logged in. */
    131132    RTFTPSERVER_REPLY_NOT_LOGGED_IN                  = 530,
     133    /** Requested action not taken. */
     134    RTFTPSERVER_REPLY_REQ_ACTION_NOT_TAKEN           = 550,
    132135    /** The usual 32-bit hack. */
    133136    RTFTPSERVER_REPLY_32BIT_HACK                     = 0x7fffffff
     
    179182     *
    180183     * @returns VBox status code.
     184     * @param   pData           Pointer to generic callback data.
    181185     * @param   pcszUser        User name.
    182186     */
     
    186190     *
    187191     * @returns VBox status code.
     192     * @param   pData           Pointer to generic callback data.
    188193     * @param   pcszUser        User name to authenticate.
    189194     * @param   pcszPassword    Password to authenticate with.
     
    194199     *
    195200     * @returns VBox status code.
    196      * @param   pcszUser        User name which disconnected.
     201     * @param   pData           Pointer to generic callback data.
    197202     */
    198203    DECLCALLBACKMEMBER(int,  pfnOnUserDisconnect)(PRTFTPCALLBACKDATA pData);
    199204    /**
     205     * Callback which gets invoked when the client wants to retrieve the size of a specific file.
     206     *
     207     * @returns VBox status code.
     208     * @param   pData           Pointer to generic callback data.
     209     * @param   pcszPath        Path of file to retrieve size for.
     210     * @param   puSize          Where to store the file size on success.
     211     */
     212    DECLCALLBACKMEMBER(int,  pfnOnFileGetSize)(PRTFTPCALLBACKDATA pData, const char *pcszPath, uint64_t *puSize);
     213    /**
     214     * Callback which gets invoked when the client wants to retrieve information about a file.
     215     *
     216     * @param   pData           Pointer to generic callback data.
     217     * @param   pcszPath        Path of file / directory to "stat". Optional. If NULL, the current directory will be used.
     218     * @param   pFsObjInfo      Where to return the RTFSOBJINFO data on success.
     219     * @returns VBox status code.
     220     */
     221    DECLCALLBACKMEMBER(int,  pfnOnFileStat)(PRTFTPCALLBACKDATA pData, const char *pcszPath, PRTFSOBJINFO pFsObjInfo);
     222    /**
    200223     * Callback which gets invoked when setting the current working directory.
    201224     *
    202225     * @returns VBox status code.
     226     * @param   pData           Pointer to generic callback data.
    203227     * @param   pcszCWD         Current working directory to set.
    204228     */
     
    208232     *
    209233     * @returns VBox status code.
     234     * @param   pData           Pointer to generic callback data.
    210235     * @param   pszPWD          Where to store the current working directory.
    211236     * @param   cbPWD           Size of buffer in bytes.
     
    216241     *
    217242     * @returns VBox status code.
     243     * @param   pData           Pointer to generic callback data.
    218244     */
    219245    DECLCALLBACKMEMBER(int,  pfnOnPathUp)(PRTFTPCALLBACKDATA pData);
     
    221247     * Callback which gets invoked when the client wants to list a directory or file.
    222248     *
     249     * @param   pData           Pointer to generic callback data.
    223250     * @param   pcszPath        Path of file / directory to list. Optional. If NULL, the current directory will be listed.
    224251     * @param   ppvData         Where to return the listing data. Must be free'd by the caller.
Note: See TracChangeset for help on using the changeset viewer.

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