mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-04 19:19:23 +01:00
build: Adjust to the latest ELL signal API changes
This commit is contained in:
parent
a9c2d71874
commit
72a64fa7fb
@ -24,10 +24,12 @@
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <ell/ell.h>
|
||||
#include <stdio.h>
|
||||
#include <signal.h>
|
||||
|
||||
#include <readline/history.h>
|
||||
#include <readline/readline.h>
|
||||
#include <stdio.h>
|
||||
#include <ell/ell.h>
|
||||
|
||||
#include "agent.h"
|
||||
#include "command.h"
|
||||
@ -577,29 +579,19 @@ void display_quit(void)
|
||||
rl_crlf();
|
||||
}
|
||||
|
||||
static void signal_handler(struct l_signal *signal, uint32_t signo,
|
||||
void *user_data)
|
||||
static void signal_handler(void *user_data)
|
||||
{
|
||||
switch (signo) {
|
||||
case SIGWINCH:
|
||||
if (display_refresh.cmd)
|
||||
display_refresh_reset();
|
||||
break;
|
||||
}
|
||||
if (display_refresh.cmd)
|
||||
display_refresh_reset();
|
||||
}
|
||||
|
||||
void display_init(void)
|
||||
{
|
||||
sigset_t mask;
|
||||
|
||||
display_refresh.redo_entries = l_queue_new();
|
||||
|
||||
setlinebuf(stdout);
|
||||
|
||||
sigemptyset(&mask);
|
||||
sigaddset(&mask, SIGWINCH);
|
||||
|
||||
resize_signal = l_signal_create(&mask, signal_handler, NULL, NULL);
|
||||
resize_signal = l_signal_create(SIGWINCH, signal_handler, NULL, NULL);
|
||||
|
||||
rl_attempted_completion_function = command_completion;
|
||||
rl_completion_display_matches_hook = display_completion_matches;
|
||||
|
@ -25,6 +25,7 @@
|
||||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
#include <signal.h>
|
||||
#include <ell/ell.h>
|
||||
|
||||
#include "command.h"
|
||||
|
@ -25,10 +25,11 @@
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
#include <getopt.h>
|
||||
#include <errno.h>
|
||||
#include <signal.h>
|
||||
#include <sys/socket.h>
|
||||
#include <linux/genetlink.h>
|
||||
#include <linux/rtnetlink.h>
|
||||
|
@ -28,6 +28,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <getopt.h>
|
||||
#include <signal.h>
|
||||
#include <ell/ell.h>
|
||||
|
||||
#include "linux/nl80211.h"
|
||||
|
@ -27,6 +27,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <getopt.h>
|
||||
#include <signal.h>
|
||||
#include <linux/if_ether.h>
|
||||
#include <linux/rtnetlink.h>
|
||||
#include <net/if_arp.h>
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <signal.h>
|
||||
#include <ell/ell.h>
|
||||
|
||||
#include "wired/dbus.h"
|
||||
|
Loading…
Reference in New Issue
Block a user