Logo Search packages:      
Sourcecode: libgphoto2 version File versions  Download package

void gp_logv ( GPLogLevel  level,
const char *  domain,
const char *  format,
va_list  args 
)

Log a debug or error message with va_list.

Parameters:
level gphoto2 log level
domain the domain
format the format
args the va_list corresponding to format
Logs a message at the given log level. You would normally use this function to log as yet unformatted strings.

Definition at line 260 of file gphoto2-port-log.c.

References LogFunc::func.

Referenced by gp_context_message(), and gp_log().

{
      int i;
#ifdef HAVE_VA_COPY
      va_list xargs;
#endif

      for (i = 0; i < log_funcs_count; i++) {
            if (log_funcs[i].level >= level) {
#ifdef HAVE_VA_COPY
                  va_copy (xargs, args);
                  log_funcs[i].func (level, domain, format, xargs,
                                 log_funcs[i].data);
#else
                  log_funcs[i].func (level, domain, format, args,
                                 log_funcs[i].data);
#endif
            }
      }
}


Generated by  Doxygen 1.6.0   Back to index