mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-24 21:53:37 +02:00
Renamed sfFtpListingDirectory_getFilename() to getName()
This commit is contained in:
1 parent
cc8637f65c
commit
00bd5c9a22
2 files changed
+9
-9
No files matched your search
@@ -155,25 +155,25 @@ CSFML_NETWORK_API sfFtpStatus sfFtpListingResponse_getStatus(const sfFtpListingR
|
||||
CSFML_NETWORK_API const char* sfFtpListingResponse_getMessage(const sfFtpListingResponse* ftpListingResponse);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Return the number of filenames contained in a FTP listing response
|
||||
/// \brief Return the number of directory/file names contained in a FTP listing response
|
||||
///
|
||||
/// \param ftpListingResponse Ftp listing response
|
||||
///
|
||||
/// \return Total number of filenames available
|
||||
/// \return Total number of names available
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_NETWORK_API size_t sfFtpListingResponse_getCount(const sfFtpListingResponse* ftpListingResponse);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Return a filename contained in a FTP listing response
|
||||
/// \brief Return a directory/file name contained in a FTP listing response
|
||||
///
|
||||
/// \param ftpListingResponse Ftp listing response
|
||||
/// \param index Index of the filename to get (in range [0 .. GetCount])
|
||||
/// \param index Index of the name to get (in range [0 .. getCount])
|
||||
///
|
||||
/// \return Array containing the requested filenames
|
||||
/// \return The requested name
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_NETWORK_API const char* sfFtpListingResponse_getFilename(const sfFtpListingResponse* ftpListingResponse, size_t index);
|
||||
CSFML_NETWORK_API const char* sfFtpListingResponse_getName(const sfFtpListingResponse* ftpListingResponse, size_t index);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Destroy a FTP directory response
|
||||
|
||||
@@ -68,16 +68,16 @@ size_t sfFtpListingResponse_getCount(const sfFtpListingResponse* ftpListingRespo
|
||||
{
|
||||
CSFML_CHECK_RETURN(ftpListingResponse, 0);
|
||||
|
||||
return ftpListingResponse->This.getFilenames().size();
|
||||
return ftpListingResponse->This.getListing().size();
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
const char* sfFtpListingResponse_getFilename(const sfFtpListingResponse* ftpListingResponse, size_t index)
|
||||
const char* sfFtpListingResponse_getName(const sfFtpListingResponse* ftpListingResponse, size_t index)
|
||||
{
|
||||
CSFML_CHECK_RETURN(ftpListingResponse, NULL);
|
||||
|
||||
return ftpListingResponse->This.getFilenames()[index].c_str();
|
||||
return ftpListingResponse->This.getListing()[index].c_str();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user