Skip to content

Commit e602016

Browse files
jeremie6windsamuel-gauthier
authored andcommitted
cdefs: fix lypy_log_cb prototype
The following error is raised when logging: > File "/usr/lib/python3/dist-packages/libyang/log.py", line 59, in configure_logging > TypeError: initializer for ctype 'void(*)(LY_LOG_LEVEL, char *, char *, char *, > uint64_t)' must be a pointer to same type, not cdata 'void(*)(LY_LOG_LEVEL, char *, char > *)' Fix lypy_log_cb's prototype. Fixes: 3849dd523d30 ("Port to libyang3") Signed-off-by: Jeremie Leska <jeremie.leska@6wind.com> Signed-off-by: Samuel Gauthier <samuel.gauthier@6wind.com>
1 parent ae31525 commit e602016

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cffi/cdefs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ enum ly_stmt {
178178
int ly_log_options(int);
179179

180180
LY_LOG_LEVEL ly_log_level(LY_LOG_LEVEL);
181-
extern "Python" void lypy_log_cb(LY_LOG_LEVEL, const char *, const char *);
181+
extern "Python" void lypy_log_cb(LY_LOG_LEVEL, const char *, const char *, const char *, uint64_t);
182182
void ly_set_log_clb(void (*)(LY_LOG_LEVEL, const char *, const char *, const char *, uint64_t));
183183
const struct ly_err_item *ly_err_first(const struct ly_ctx *);
184184
const struct ly_err_item *ly_err_last(const struct ly_ctx *);

0 commit comments

Comments
 (0)