Mercurial > pidgin
changeset 4539:05476ef20d58
[gaim-migrate @ 4818]
Added gaim_xfer_is_completed()
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Thu, 06 Feb 2003 08:42:38 +0000 |
parents | 009e206f260c |
children | d83c5b925a05 |
files | src/ft.c src/ft.h |
diffstat | 2 files changed, 18 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ft.c Thu Feb 06 04:32:54 2003 +0000 +++ b/src/ft.c Thu Feb 06 08:42:38 2003 +0000 @@ -187,6 +187,15 @@ return xfer->account; } +gboolean +gaim_xfer_is_completed(const struct gaim_xfer *xfer) +{ + if (xfer == NULL) + return TRUE; + + return xfer->completed; +} + const char * gaim_xfer_get_filename(const struct gaim_xfer *xfer) {
--- a/src/ft.h Thu Feb 06 04:32:54 2003 +0000 +++ b/src/ft.h Thu Feb 06 08:42:38 2003 +0000 @@ -171,6 +171,15 @@ struct gaim_account *gaim_xfer_get_account(const struct gaim_xfer *xfer); /** + * Returns the completed state for a file transfer. + * + * @param xfer The file transfer. + * + * @return The completed state. + */ +gboolean gaim_xfer_is_completed(const struct gaim_xfer *xfer); + +/** * Returns the name of the file being sent or received. * * @param xfer The file transfer.