iwc_notify.c File Reference

Functions for handling creation, polling and removal of a IPC message queue for receiving vif parameter update notifications. More...

#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)


Detailed Description

Functions for handling creation, polling and removal of a IPC message queue for receiving vif parameter update notifications.

Definition in file iwc_notify.c.


Define Documentation

#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.


Function Documentation

int iwc_notify_init (  ) 

Initialize notification message queue

Returns:
Notification queue ID

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

Parameters:
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

Parameters:
msgq_id Message queue ID

Definition at line 70 of file iwc_notify.c.


Generated on Mon Feb 8 14:55:05 2010 for iwconnect by  doxygen 1.5.8