From 5c7e49b9ce2f6299671601297fbcebb8dce66337 Mon Sep 17 00:00:00 2001 From: Robert Vollmer Date: Mon, 8 Jul 2024 00:52:16 +0200 Subject: [PATCH] Add declaration for iw_print_key() Without this, I always get the message `cffi library 'iwlib._iwlib' has no function, constant or global variable named 'iw_print_key'`. --- iwlib/_iwlib_build.py | 1 + 1 file changed, 1 insertion(+) diff --git a/iwlib/_iwlib_build.py b/iwlib/_iwlib_build.py index abea681..49f9e57 100644 --- a/iwlib/_iwlib_build.py +++ b/iwlib/_iwlib_build.py @@ -29,6 +29,7 @@ void iw_ether_ntop(const struct ether_addr *eth, char *buf); void iw_print_bitrate(char *buffer, int buflen, int bitrate); void iw_print_freq_value(char *buffer, int buflen, double freq); + void iw_print_key(char *buffer, int buflen, const unsigned char *key, int key_size, int key_flags); void iw_sockets_close(int sock); int ioctl(int fildes, unsigned long int request, ...); """