1 /******************************************************************************* 2 3 License: 4 This software was developed at the National Institute of Standards and 5 Technology (NIST) by employees of the Federal Government in the course 6 of their official duties. Pursuant to title 17 Section 105 of the 7 United States Code, this software is not subject to copyright protection 8 and is in the public domain. NIST assumes no responsibility whatsoever for 9 its use by other parties, and makes no guarantees, expressed or implied, 10 about its quality, reliability, or any other characteristic. 11 12 Disclaimer: 13 This software was developed to promote biometric standards and biometric 14 technology testing for the Federal Government in accordance with the USA 15 PATRIOT Act and the Enhanced Border Security and Visa Entry Reform Act. 16 Specific hardware and software products identified in this software were used 17 in order to perform the software development. In no case does such 18 identification imply recommendation or endorsement by the National Institute 19 of Standards and Technology, nor does it imply that the products and equipment 20 identified are necessarily the best available for the purpose. 21 22 *******************************************************************************/ 23 24 #ifndef _LOG_H 25 #define _LOG_H 26 27 /* Definitions and references to support log report files. */ 28 /* UPDATED: 03/16/2005 by MDG */ 29 30 #include <stdio.h> 31 #include <stdlib.h> 32 #include <stdarg.h> 33 34 #ifdef LOG_REPORT 35 /* Uncomment the following line to enable logging. */ 36 #define LOG_FILE "log.txt" 37 #endif 38 39 extern FILE *g_logfp; 40 extern int g_avrdir; 41 extern float g_dir_strength; 42 extern int g_nvalid; 43 44 extern int open_logfile(void); 45 extern int close_logfile(void); 46 extern void print2log(char *, ...); 47 48 #endif 49