ndef: Simplify the exported MIME type D-Bus type further
authorSamuel Ortiz <sameo@linux.intel.com>
Thu, 17 Oct 2013 23:12:16 +0000 (01:12 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 17 Oct 2013 23:12:16 +0000 (01:12 +0200)
And make it less confusable with the MIMEType property.

doc/tag-api.txt
src/ndef.c

index 2fbde60..d11bd81 100644 (file)
@@ -87,7 +87,7 @@ Properties    string Type [readonly]
 
                        Possible values are "SmartPoster", "Text", "URI",
                        "HandoverRequest", "HandoverSelect", "HandoverCarrier",
-                       "AAR" for Android Application Record and "MIMEType" for
+                       "AAR" for Android Application Record and "MIME" for
                        RFC 2046 MIME types.
 
                string Encoding [readonly]
index 5c241c8..c299f92 100644 (file)
@@ -488,7 +488,7 @@ static void append_record(struct near_ndef_record *record,
                break;
 
        case RECORD_TYPE_MIME_TYPE:
-               type = "MIMEType";
+               type = "MIME";
                near_dbus_dict_append_basic(dict, "Type",
                                        DBUS_TYPE_STRING, &type);
                append_mime_payload(record->mime, dict);