Mercurial > pidgin
diff libpurple/ft.c @ 15640:35fa1d1c4ef2
Patch from Richard 'wabz' Nelson to add file-transfer ui. Amazing stuff\!
| author | Sadrul Habib Chowdhury <imadil@gmail.com> |
|---|---|
| date | Thu, 15 Feb 2007 22:43:24 +0000 |
| parents | 5fe8042783c1 |
| children | 32c366eeeb99 |
line wrap: on
line diff
--- a/libpurple/ft.c Thu Feb 15 19:25:28 2007 +0000 +++ b/libpurple/ft.c Thu Feb 15 22:43:24 2007 +0000 @@ -35,9 +35,16 @@ #define FT_MAX_BUFFER_SIZE 65535 static GaimXferUiOps *xfer_ui_ops = NULL; +static GList *xfers; static int gaim_xfer_choose_file(GaimXfer *xfer); +GList * +gaim_xfers_get_all() +{ + return xfers; +} + GaimXfer * gaim_xfer_new(GaimAccount *account, GaimXferType type, const char *who) { @@ -63,6 +70,7 @@ if (ui_ops != NULL && ui_ops->new_xfer != NULL) ui_ops->new_xfer(xfer); + xfers = g_list_prepend(xfers, xfer); return xfer; } @@ -90,6 +98,7 @@ g_free(xfer->local_filename); g_free(xfer); + xfers = g_list_remove(xfers, xfer); } void
