/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */ /* EXIFPROBE - TIFF/JPEG/EXIF image file probe */ /* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */ /* Copyright (C) 2002,2005 by Duane H. Hesser. All rights reserved. */ /* */ /* See the file LICENSE.EXIFPROBE for terms of use. */ /* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */ #ifndef lint static char *ModuleId = "@(#) $Id: maker_traveler.c,v 1.2 2005/07/24 22:56:27 alex Exp $"; #endif #include #include #include "datadefs.h" #include "maker_datadefs.h" #include "summary.h" #include "maker.h" #include "misc.h" #include "maker_extern.h" extern struct camera_id traveler_model_id[]; /* Find the identifying number assigned to known Traveler camera */ /* models. */ int traveler_model_number(char *model,char *software) { struct camera_id *model_id; int number = NO_MODEL; for(model_id = &traveler_model_id[0]; model_id && model_id->name; ++model_id) { if(strncasecmp(model,model_id->name,model_id->namelen) == 0) { number = model_id->id; setnoteversion(model_id->noteversion); setnotetagset(model_id->notetagset); /* info only */ break; } } return(number); }