diff --git a/libgphoto2_port/libgphoto2_port/gphoto2-port-log.c b/libgphoto2_port/libgphoto2_port/gphoto2-port-log.c index bedc331ef..164b34f25 100644 --- a/libgphoto2_port/libgphoto2_port/gphoto2-port-log.c +++ b/libgphoto2_port/libgphoto2_port/gphoto2-port-log.c @@ -46,11 +46,17 @@ #endif #ifndef DISABLE_DEBUGGING +/** + * \brief Internal logging function entry. + * + * Internal structure to remember the logging functions. + * Use gp_log_add_func() and gp_log_remove_func() to access it. + */ typedef struct { - unsigned int id; - GPLogLevel level; - GPLogFunc func; - void *data; + unsigned int id; /**< Internal id */ + GPLogLevel level; /**< Internal loglevel */ + GPLogFunc func; /**< Internal function pointer to call */ + void *data; /**< Private data supplied by caller */ } LogFunc; static LogFunc *log_funcs = NULL;