summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorLinus Walleij <triad@df.lth.se>2009-06-20 12:37:46 +0000
committerLinus Walleij <triad@df.lth.se>2009-06-20 12:37:46 +0000
commit0e47b5a42927b5cb71e6798c32b8ea4d64152c3b (patch)
treeb32f75823e521acf7e401c70f838f1fd39f6fef7 /examples
parentef711cb7a1446b99a3fcef8e2512675372d3c024 (diff)
downloadlibmtp-0e47b5a42927b5cb71e6798c32b8ea4d64152c3b.tar.gz
Detect VCF files
Diffstat (limited to 'examples')
-rw-r--r--examples/pathutils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/pathutils.c b/examples/pathutils.c
index 63bdbd7..419a543 100644
--- a/examples/pathutils.c
+++ b/examples/pathutils.c
@@ -213,6 +213,8 @@ find_filetype (const char * filename)
filetype = LIBMTP_FILETYPE_JPX;
} else if (!strcasecmp (ptype, "bin")) {
filetype = LIBMTP_FILETYPE_FIRMWARE;
+ } else if (!strcasecmp (ptype, "vcf")) {
+ filetype = LIBMTP_FILETYPE_VCARD3;
} else {
/* Tagging as unknown file type */
filetype = LIBMTP_FILETYPE_UNKNOWN;