00001 /****************************************************************************/ 00002 /* */ 00003 /* This file is part of QSopt_ex. */ 00004 /* */ 00005 /* (c) Copyright 2006 by David Applegate, William Cook, Sanjeeb Dash, */ 00006 /* and Daniel Espinoza */ 00007 /* */ 00008 /* Sanjeeb Dash ownership of copyright in QSopt_ex is derived from his */ 00009 /* copyright in QSopt. */ 00010 /* */ 00011 /* This code may be used under the terms of the GNU General Public License */ 00012 /* (Version 2.1 or later) as published by the Free Software Foundation. */ 00013 /* */ 00014 /* Alternatively, use is granted for research purposes only. */ 00015 /* */ 00016 /* It is your choice of which of these two licenses you are operating */ 00017 /* under. */ 00018 /* */ 00019 /* We make no guarantees about the correctness or usefulness of this code. */ 00020 /* */ 00021 /****************************************************************************/ 00022 00023 /* $RCSfile: reporter.h,v $ $Revision: 1.2 $ $Date: 2003/11/05 16:57:39 $ */ 00024 #ifndef REPORTER_FILE 00025 #define REPORTER_FILE 00026 00027 typedef int ( 00028 *qsreport_string_fct) ( 00029 void *dest, 00030 const char *s); 00031 00032 typedef struct qsstring_reporter 00033 { 00034 qsreport_string_fct report_fct; 00035 void *dest; 00036 } 00037 qsstring_reporter; 00038 00039 extern int ILL_fprintf ( 00040 void *dest, 00041 const char *s); 00042 00043 void ILLstring_reporter_init ( 00044 qsstring_reporter * reporter, 00045 qsreport_string_fct fct, 00046 void *dest); 00047 00048 void ILLstring_reporter_copy ( 00049 qsstring_reporter * dest, 00050 qsstring_reporter * src); 00051 00052 #define ILLstring_report(s, reporter) \ 00053 ((reporter)->report_fct((reporter)->dest, s) < 0) 00054 /* used from with ILL fct to report progress */ 00055 00056 /* REPORTER_FILE */ 00057 #endif
1.4.7