#include <glib.h>
#include <dlog.h>
#include <string.h>
-#include <mime_type.h>
#include <glib.h>
#include <gio/gio.h>
GError *err = NULL;
GDBusConnection *g_conn;
GDBusProxy *client_proxy;
- gchar *mime_type = NULL;
+ char *mime_type = NULL;
if (sending_info == NULL)
return;
BT_OBEX_OBJECT_PUSH_INTERFACE,
NULL, &err);
ret_if(client_proxy == NULL);
- if (mime_type_get_mime_type(sending_info->file_name_array[file_offset], &mime_type) == MIME_TYPE_ERROR_NONE) {
+ if (headed_plugin_info->plugin_headed_enabled) {
+ if (headed_plugin_info->headed_plugin->bt_get_mime_type(sending_info->file_name_array[file_offset],
+ &mime_type) == BLUETOOTH_ERROR_NONE) {
BT_DBG("MLME type = %s", mime_type);
/* For IOPT compliance, change "text/x-iMelody" to "audio/imelody"
strncpy(mime_type, "text/x-vcard", BT_MIME_TYPE_MAX_LEN);
BT_DBG("over writing mime type to = %s", mime_type);
}
+ }
}
BT_DBG("Calling SendFile");