1 /* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */ 2 /* EXIFPROBE - TIFF/JPEG/EXIF image file probe */ 3 /* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */ 4 /* Copyright (C) 2002,2005 by Duane H. Hesser. All rights reserved. */ 5 /* */ 6 /* See the file LICENSE.EXIFPROBE for terms of use. */ 7 /* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */ 8 9 #ifndef lint 10 static char *ModuleId = "@(#) $Id: maker_kodak.c,v 1.2 2005/07/24 22:56:26 alex Exp $"; 11 #endif 12 13 #include <stdio.h> 14 #include <string.h> 15 #include "datadefs.h" 16 #include "maker_datadefs.h" 17 #include "summary.h" 18 #include "maker.h" 19 #include "misc.h" 20 #include "maker_extern.h" 21 22 extern struct camera_id kodak_model_id[]; 23 24 /* Find the identifying number assigned to known Kodak camera models. */ 25 26 int kodak_model_number(char * model,char * software)27kodak_model_number(char *model,char *software) 28 { 29 struct camera_id *model_id; 30 int number = NO_MODEL; 31 32 for(model_id = &kodak_model_id[0]; model_id && model_id->name; ++model_id) 33 { 34 if(strncasecmp(model,model_id->name,model_id->namelen) == 0) 35 { 36 number = model_id->id; 37 setnoteversion(model_id->noteversion); 38 setnotetagset(model_id->notetagset); /* info only */ 39 break; 40 } 41 } 42 return(number); 43 } 44