/alps/pcitool

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to pcilib/error.h

  • Committer: Suren A. Chilingaryan
  • Date: 2015-06-22 16:32:27 UTC
  • Revision ID: csa@suren.me-20150622163227-xrajwpfxhequsi7j
Keep C++ compilers happy

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
    PCILIB_ERROR_BUSY = EBUSY
32
32
} pcilib_errot_t;
33
33
 
 
34
#ifdef __cplusplus
 
35
extern "C" {
 
36
#endif
 
37
 
34
38
void pcilib_log_message(const char *file, int line, pcilib_log_flags_t flags, pcilib_log_priority_t prio, const char *msg, ...);
35
39
void pcilib_log_vmessage(const char *file, int line, pcilib_log_flags_t flags, pcilib_log_priority_t prio, const char *msg, va_list va);
36
40
 
 
41
 
 
42
#ifdef __cplusplus
 
43
}
 
44
#endif
 
45
 
37
46
#define pcilib_log(prio, ...) \
38
47
    pcilib_log_message(__FILE__, __LINE__, PCILIB_LOG_DEFAULT, prio, __VA_ARGS__)
39
48