Home | History | Annotate | Download | only in examples

Lines Matching refs:ptype

132   char *ptype;
136 ptype = strrchr(filename, '.');
138 ptype = rindex(filename,'.');
141 if (!ptype) {
142 ptype = "";
144 ++ptype;
148 if (!strcasecmp (ptype, "wav")) {
150 } else if (!strcasecmp (ptype, "mp3")) {
152 } else if (!strcasecmp (ptype, "wma")) {
154 } else if (!strcasecmp (ptype, "ogg")) {
156 } else if (!strcasecmp (ptype, "mp4")) {
158 } else if (!strcasecmp (ptype, "wmv")) {
160 } else if (!strcasecmp (ptype, "avi")) {
162 } else if (!strcasecmp (ptype, "mpeg") || !strcasecmp (ptype, "mpg")) {
164 } else if (!strcasecmp (ptype, "asf")) {
166 } else if (!strcasecmp (ptype, "qt") || !strcasecmp (ptype, "mov")) {
168 } else if (!strcasecmp (ptype, "wma")) {
170 } else if (!strcasecmp (ptype, "jpg") || !strcasecmp (ptype, "jpeg")) {
172 } else if (!strcasecmp (ptype, "jfif")) {
174 } else if (!strcasecmp (ptype, "tif") || !strcasecmp (ptype, "tiff")) {
176 } else if (!strcasecmp (ptype, "bmp")) {
178 } else if (!strcasecmp (ptype, "gif")) {
180 } else if (!strcasecmp (ptype, "pic") || !strcasecmp (ptype, "pict")) {
182 } else if (!strcasecmp (ptype, "png")) {
184 } else if (!strcasecmp (ptype, "wmf")) {
186 } else if (!strcasecmp (ptype, "ics")) {
188 } else if (!strcasecmp (ptype, "exe") || !strcasecmp (ptype, "com") ||
189 !strcasecmp (ptype, "bat") || !strcasecmp (ptype, "dll") ||
190 !strcasecmp (ptype, "sys")) {
192 } else if (!strcasecmp (ptype, "aac")) {
194 } else if (!strcasecmp (ptype, "mp2")) {
196 } else if (!strcasecmp (ptype, "flac")) {
198 } else if (!strcasecmp (ptype, "m4a")) {
200 } else if (!strcasecmp (ptype, "doc")) {
202 } else if (!strcasecmp (ptype, "xml")) {
204 } else if (!strcasecmp (ptype, "xls")) {
206 } else if (!strcasecmp (ptype, "ppt")) {
208 } else if (!strcasecmp (ptype, "mht")) {
210 } else if (!strcasecmp (ptype, "jp2")) {
212 } else if (!strcasecmp (ptype, "jpx")) {
214 } else if (!strcasecmp (ptype, "bin")) {
216 } else if (!strcasecmp (ptype, "vcf")) {
222 printf("type: %s, %d\n", ptype, filetype);