Adds a log function that will be called for each log message that is flagged
with a log level that appears in given log level. This function returns
an id that you can use for removing the log function again (using
gp_log_remove_func).
Takes the data and creates a formatted hexdump string. If you would like
to log text messages, use gp_log instead.
domain :
the domain
data :
the data to be logged
size :
the size of the data
GP_LOG()
#define GP_LOG(level, msg, params...)
Calls gp_log with an automatically generated domain.
You have to define GP_MODULE as "mymod" for your module
mymod before you can use #GP_LOG().
level :
gphoto2 log level to log message under
msg :
message to log
params... :
GP_DEBUG()
#define GP_DEBUG(msg, params...)
Logs message at log level GP_LOG_DEBUG by calling #gp_log() with
an automatically generated domain
You have to define GP_MODULE as "mymod" for your module
mymod before using #GP_DEBUG().