#include <netinet/in.h>
#include <linux/if.h>
#include <sys/ipc.h>
#include <sys/msg.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include "iwc_print.h"
Go to the source code of this file.
Data Structures | |
struct | ioctl_msg |
Defines | |
#define | VIF_NOTIFY_KEY 1337 |
#define | IOCTL_MSG_SIZE sizeof(ioctl_msg) |
#define | VIF_SIOCSIW 0x10 |
Functions | |
int | iwc_notify_init () |
int | iwc_notify_remove (int msgq_id) |
void | iwc_notify_poll (void *msg_handler) |
Definition in file iwc_notify.c.
#define IOCTL_MSG_SIZE sizeof(ioctl_msg) |
Definition at line 41 of file iwc_notify.c.
#define VIF_NOTIFY_KEY 1337 |
Name of notification message queue
Definition at line 32 of file iwc_notify.c.
#define VIF_SIOCSIW 0x10 |
Message type: ioctl() set wireless parameter
Definition at line 42 of file iwc_notify.c.
int iwc_notify_init | ( | ) |
Initialize notification message queue
Definition at line 52 of file iwc_notify.c.
void iwc_notify_poll | ( | void * | msg_handler | ) |
Poll the notification queue for arriving messages. On message reception run the given msg_handler function with the message content
msg_handler | Pointer to a client function handling parameter changes. Its signature is void func(int ioctl_type, char *dev_name) |
Definition at line 82 of file iwc_notify.c.
int iwc_notify_remove | ( | int | msgq_id | ) |
Delete notification message queue
msgq_id | Message queue ID |
Definition at line 70 of file iwc_notify.c.