Logo Search packages:      
Sourcecode: libgphoto2 version File versions

void gp_context_message ( GPContext context,
const char *  format,
  ... 
)

Print a message to the context.

This sends a message to the passed context, to be printed by it in some kind of way, but do no other action.

To be used by camera drivers.

Parameters:
context A GPContext
format A sprintf style format string
... variable argument list depending on format string

Definition at line 253 of file gphoto2-context.c.

References GP_LOG_DEBUG, gp_logv(), _GPContext::message_func, and _GPContext::message_func_data.

{
      va_list args;

      /* Log the message */
      va_start (args, format);
      gp_logv (GP_LOG_DEBUG, "context", format, args);
      va_end (args);

      if (!context)
            return;

      if (context->message_func) {
            va_start (args, format);
            context->message_func (context, format, args,
                               context->message_func_data);
            va_end (args);
      }
}


Generated by  Doxygen 1.6.0   Back to index