#include "service.h"
#include "transport.h"
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+static GSList *sessions = NULL;
+#endif
+
typedef struct {
uint8_t version;
uint8_t flags;
static void obex_session_free(struct obex_session *os)
{
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+ sessions = g_slist_remove(sessions, os);
+#endif
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);
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+ sessions = g_slist_prepend(sessions, os);
+#endif
return 0;
}