Changeset 82715 in vbox for trunk/include/iprt
- Timestamp:
- Jan 10, 2020 2:04:36 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 135645
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/ftp.h
r82702 r82715 175 175 /** Size (in bytes) of user data pointing at. Optional and can be 0. */ 176 176 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 */ 177 183 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 */ 178 191 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 */ 179 198 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 */ 180 205 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 */ 181 213 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); 183 229 } RTFTPSERVERCALLBACKS; 184 230 /** Pointer to a FTP server callback data table. */
Note:
See TracChangeset
for help on using the changeset viewer.