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_traveler.c,v 1.2 2005/07/24 22:56:27 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 traveler_model_id[];
23 
24 /* Find the identifying number assigned to known Traveler camera      */
25 /* models.                                                            */
26 
27 int
traveler_model_number(char * model,char * software)28 traveler_model_number(char *model,char *software)
29 {
30     struct camera_id *model_id;
31     int number = NO_MODEL;
32 
33     for(model_id = &traveler_model_id[0]; model_id && model_id->name; ++model_id)
34     {
35         if(strncasecmp(model,model_id->name,model_id->namelen) == 0)
36         {
37             number = model_id->id;
38             setnoteversion(model_id->noteversion);
39             setnotetagset(model_id->notetagset);    /* info only      */
40             break;
41         }
42     }
43     return(number);
44 }
45