/normxcorr/trunk

To get this branch, use:
bzr branch http://suren.me/webbzr/normxcorr/trunk

« back to all changes in this revision

Viewing changes to dict_hw/src/normxcorr_hw_msg.h

  • Committer: Suren A. Chilingaryan
  • Date: 2009-12-13 02:20:05 UTC
  • Revision ID: csa@dside.dyndns.org-20091213022005-m932to8hhihwuw5r
Support for TIFF images in C code and stand-alone console application

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include <stdio.h>
2
 
#include <stdarg.h>
3
 
 
4
 
static void reportErrorDefault(const char *msg, ...) {
5
 
    char res[1024];
6
 
    
7
 
    va_list ap;
8
 
    
9
 
    va_start(ap, msg);
10
 
    vsnprintf(res, 1024, msg, ap);
11
 
    va_end(ap);
12
 
    
13
 
    printf("%s\n", res);
14
 
}
15
 
 
16
 
static void reportMessageDefault(const char *msg, ...) {
17
 
    char res[1024];
18
 
 
19
 
    va_list ap;
20
 
    
21
 
    va_start(ap, msg);
22
 
    vsnprintf(res, 1024, msg, ap);
23
 
    va_end(ap);
24
 
    
25
 
    printf("%s\n", res);
26
 
}
27
 
 
28
 
static void (*reportError)(const char *msg, ...) = reportErrorDefault;
29
 
static void (*reportMessage)(const char *msg, ...) = reportMessageDefault;
 
1
#ifndef _DICT_HW_MSG_H
 
2
#define _DICT_HW_MSG_H
 
3
 
 
4
#include "dict_hw.h"
 
5
 
 
6
extern void (*reportError)(const char *msg, ...);
 
7
extern void (*reportMessage)(const char *msg, ...);
 
8
 
 
9
int reportSet(DICTLogger error_reporter, DICTLogger message_writer);
 
10
 
 
11
#endif /* _DICT_HW_MSG */