Cleans up the sessions list which has been unneeded by commit
8572afb4
("obexd: Make use of transport drivers and some cleanups").
Change-Id: Ie06072fa6d052bd7e5bdc824e8250362bd914cae
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
#include "service.h"
#include "transport.h"
-static GSList *sessions = NULL;
-
typedef struct {
uint8_t version;
uint8_t flags;
static void obex_session_free(struct obex_session *os)
{
- sessions = g_slist_remove(sessions, os);
-
if (os->io) {
g_io_channel_shutdown(os->io, TRUE, NULL);
g_io_channel_unref(os->io);
obex_getsockname(os, &os->src);
obex_getpeername(os, &os->dst);
- sessions = g_slist_prepend(sessions, os);
-
return 0;
}