diff --git a/obexd/plugins/pbap.c b/obexd/plugins/pbap.c
index 9794d27..88f4769 100644
--- a/obexd/plugins/pbap.c
+++ b/obexd/plugins/pbap.c
#define PHONEBOOKSIZE_LEN 2
#define NEWMISSEDCALLS_LEN 1
-#define MCH "telecom/mch.vcf"
-#define SIM1_MCH "SIM1/telecom/mch.vcf"
-
#define PBAP_CHANNEL 15
#define PBAP_RECORD "<?xml version=\"1.0\" encoding=\"UTF-8\" ?> \
} __attribute__ ((packed));
struct cache {
- gboolean ready;
gboolean valid;
guint32 index;
gchar *folder;
g_free(entry->tel);
g_free(entry);
}
-#if 0
-static void cache_foreach(struct cache *cache, cache_sort_f sort,
- cache_element_f elem, gpointer user_data)
-{
-
- GSList *l;
-
- /* TODO: sort not implemented */
-
- for (l = cache->entries; l; l = l->next) {
- struct cache_entry *entry = l->data;
-
- elem(entry, user_data);
- }
-}
-#endif
static gboolean entry_name_find(const struct cache_entry *entry,
const gchar *value)
{
struct apparam_field *param;
struct aparam_header *hdr;
+ guint64 val64;
guint32 len = 0;
guint16 val16;
- guint64 val64;
param = g_new0(struct apparam_field, 1);
/* PullvCardListing always get the contacts from the cache */
- /*
- * FIXME: When the name is given and the OBEX non header flags are
- * provided it is necessary to check if the cache still valid.
- */
if (pbap->cache.valid) {
cache_ready_notify(pbap);
goto done;
diff --git a/obexd/plugins/phonebook-ebook.c b/obexd/plugins/phonebook-ebook.c
index 7afcf09..dc82580 100644
--- a/obexd/plugins/phonebook-ebook.c
+++ b/obexd/plugins/phonebook-ebook.c
data->cb(vcard, len, 1, 0, data->user_data);
+ g_free(vcard);
g_free(data);
}