wimax-tools 1.4.4
|
#include <sys/types.h>
#include <linux/wimax/i2400m.h>
Go to the source code of this file.
Typedefs | |
typedef int(* | i2400m_reply_cb )(struct i2400m *, void *priv, const struct i2400m_l3l4_hdr *reply, size_t reply_size) |
typedef void(* | i2400m_report_cb )(struct i2400m *i2400m, const struct i2400m_l3l4_hdr *l3l4, size_t l3l4_size) |
Callback for handling i2400m reports. | |
Functions | |
int | i2400m_create (struct i2400m **, const char *, void *, i2400m_report_cb) |
Create a i2400m handle. | |
int | i2400m_create_from_handle (struct i2400m **, struct wimaxll_handle *, void *, i2400m_report_cb) |
Create a i2400m handle from an existing WiMAX handle. | |
void | i2400m_destroy (struct i2400m *) |
Destroy a descriptor created with i2400m_create() | |
int | i2400m_msg_to_dev (struct i2400m *, const struct i2400m_l3l4_hdr *, size_t, i2400m_reply_cb, void *) |
Execute an i2400m command and wait for a response. | |
void * | i2400m_priv (struct i2400m *) |
Return the private data associated to a i2400m. | |
struct wimaxll_handle * | i2400m_wmx (struct i2400m *) |
Return the libwimaxll handle associated to a i2400m. | |
ssize_t | i2400m_tlv_match (const struct i2400m_tlv_hdr *, enum i2400m_tlv, ssize_t) |
Return if a TLV is of a give type and size. | |
struct i2400m_tlv_hdr * | i2400m_tlv_buffer_walk (const void *, size_t, const struct i2400m_tlv_hdr *) |
Iterate over a buffer of TLVs. | |
struct i2400m_tlv_hdr * | i2400m_tlv_find (const struct i2400m_tlv_hdr *, size_t, enum i2400m_tlv, ssize_t) |
Find a TLV by type (and maybe length) in a buffer of TLVs. |
typedef int(* i2400m_reply_cb)(struct i2400m *, void *priv, const struct i2400m_l3l4_hdr *reply, size_t reply_size) |
typedef void(* i2400m_report_cb)(struct i2400m *i2400m, const struct i2400m_l3l4_hdr *l3l4, size_t l3l4_size) |
Callback for handling i2400m reports.
This function is called when the i2400m sends a report/indication.
You cannot execute commands or wait for other reports from this callback or it woul deadlock. You need to spawn off a thread or do some other arrangement for it.
i2400m | i2400m device descriptor; use i2400m_priv() to obtain the private pointer for it |
l3l4 | Pointer to the report data in L3L4 message format; note this buffer is only valid in this execution context. Once the callback returns, it will be destroyed. |
l3l4_size | Size of the buffer pointed to by l3l4. |