Changeset 839 for branches/prototype-v0/zoo-project/zoo-kernel/mimetypes.h
- Timestamp:
- Aug 7, 2017, 2:56:24 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/prototype-v0/zoo-project/zoo-kernel/mimetypes.h
r601 r839 180 180 { "application/vnd.dece.unspecified", "uvx" }, 181 181 { "application/vnd.dece.zip", "uvz" }, 182 { "application/vnd.denovo.fcselayout-link", "fe_launch" }, 182 { "application/vnd.denovo.fcselayout-link", "fe_launch" }, 183 183 { "application/vnd.dna", "dna" }, 184 184 { "application/vnd.dolby.mlp", "mlp" }, … … 836 836 return ext; 837 837 } 838 839 static int isGeographic(const char* mimeType){ 840 char* imageMimeType[4]={ 841 "image/tiff", 842 "image/png", 843 "image/jpeg", 844 "application/vnd.google-earth.kmz" 845 }; 846 char* vectorMimeType[5]={ 847 "text/xml", 848 "application/json", 849 "application/gml+xml", 850 "application/zip", 851 "application/vnd.google-earth.kml+xml" 852 }; 853 int i=0; 854 for(;i<4;i++){ 855 if(strncmp(imageMimeType[i],mimeType,strlen(imageMimeType[i]))==0) 856 return 1; 857 } 858 i=0; 859 for(;i<5;i++){ 860 if(strncmp(vectorMimeType[i],mimeType,strlen(vectorMimeType[i]))==0) 861 return 2; 862 } 863 return -1; 864 }
Note: See TracChangeset
for help on using the changeset viewer.