VirtualBox

Changeset 82715 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Jan 10, 2020 2:04:36 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
135645
Message:

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

File:
1 edited

Legend:

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

    r82702 r82715  
    175175    /** Size (in bytes) of user data pointing at. Optional and can be 0. */
    176176    size_t cbUser;
     177    /**
     178     * Callback which gets invoked when a user connected.
     179     *
     180     * @returns VBox status code.
     181     * @param   pcszUser        User name.
     182     */
    177183    DECLCALLBACKMEMBER(int,  pfnOnUserConnect)(PRTFTPCALLBACKDATA pData, const char *pcszUser);
     184    /**
     185     * Callback which gets invoked when a user tries to authenticate with a password.
     186     *
     187     * @returns VBox status code.
     188     * @param   pcszUser        User name to authenticate.
     189     * @param   pcszPassword    Password to authenticate with.
     190     */
    178191    DECLCALLBACKMEMBER(int,  pfnOnUserAuthenticate)(PRTFTPCALLBACKDATA pData, const char *pcszUser, const char *pcszPassword);
     192    /**
     193     * Callback which gets invoked when a user disconnected.
     194     *
     195     * @returns VBox status code.
     196     * @param   pcszUser        User name which disconnected.
     197     */
    179198    DECLCALLBACKMEMBER(int,  pfnOnUserDisconnect)(PRTFTPCALLBACKDATA pData);
     199    /**
     200     * Callback which gets invoked when setting the current working directory.
     201     *
     202     * @returns VBox status code.
     203     * @param   pcszCWD         Current working directory to set.
     204     */
    180205    DECLCALLBACKMEMBER(int,  pfnOnPathSetCurrent)(PRTFTPCALLBACKDATA pData, const char *pcszCWD);
     206    /**
     207     * Callback which gets invoked when a client wants to retrieve the current working directory.
     208     *
     209     * @returns VBox status code.
     210     * @param   pszPWD          Where to store the current working directory.
     211     * @param   cbPWD           Size of buffer in bytes.
     212     */
    181213    DECLCALLBACKMEMBER(int,  pfnOnPathGetCurrent)(PRTFTPCALLBACKDATA pData, char *pszPWD, size_t cbPWD);
    182     DECLCALLBACKMEMBER(int,  pfnOnList)(PRTFTPCALLBACKDATA pData, void **ppvData, size_t *pcbData);
     214    /**
     215     * Callback which gets invoked when the client wants to move up a directory (relative to the current working directory).
     216     *
     217     * @returns VBox status code.
     218     */
     219    DECLCALLBACKMEMBER(int,  pfnOnPathUp)(PRTFTPCALLBACKDATA pData);
     220    /**
     221     * Callback which gets invoked when the client wants to list a directory or file.
     222     *
     223     * @param   pcszPath        Path of file / directory to list. Optional. If NULL, the current directory will be listed.
     224     * @param   ppvData         Where to return the listing data. Must be free'd by the caller.
     225     * @param   pcbvData        Where to return the listing data size in bytes.
     226     * @returns VBox status code.
     227     */
     228    DECLCALLBACKMEMBER(int,  pfnOnList)(PRTFTPCALLBACKDATA pData, const char *pcszPath, void **ppvData, size_t *pcbData);
    183229} RTFTPSERVERCALLBACKS;
    184230/** Pointer to a FTP server callback data table. */
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