35 #ifndef __wimaxll__i2400m_h__
36 #define __wimaxll__i2400m_h__
38 #include <sys/types.h>
39 #include <linux/wimax/i2400m.h>
58 struct i2400m *,
void *priv,
59 const struct i2400m_l3l4_hdr *reply,
size_t reply_size);
78 struct i2400m *i2400m,
79 const struct i2400m_l3l4_hdr *l3l4,
size_t l3l4_size);
91 const struct i2400m_tlv_hdr *,
enum i2400m_tlv, ssize_t);
94 const void *,
size_t,
const struct i2400m_tlv_hdr *);
97 const struct i2400m_tlv_hdr *,
size_t,
enum i2400m_tlv, ssize_t);
A WiMax control pipe handle.
Definition: internal.h:219
int i2400m_create(struct i2400m **, const char *, void *, i2400m_report_cb)
Create a i2400m handle.
Definition: i2400m.c:249
struct i2400m_tlv_hdr * i2400m_tlv_buffer_walk(const void *, size_t, const struct i2400m_tlv_hdr *)
Iterate over a buffer of TLVs.
Definition: i2400m.c:482
int(* i2400m_reply_cb)(struct i2400m *, void *priv, const struct i2400m_l3l4_hdr *reply, size_t reply_size)
Definition: i2400m.h:57
int i2400m_create_from_handle(struct i2400m **, struct wimaxll_handle *, void *, i2400m_report_cb)
Create a i2400m handle from an existing WiMAX handle.
Definition: i2400m.c:293
void(* i2400m_report_cb)(struct i2400m *i2400m, const struct i2400m_l3l4_hdr *l3l4, size_t l3l4_size)
Callback for handling i2400m reports.
Definition: i2400m.h:77
void i2400m_destroy(struct i2400m *)
Destroy a descriptor created with i2400m_create()
Definition: i2400m.c:320
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.
Definition: i2400m.c:547
void * i2400m_priv(struct i2400m *)
Return the private data associated to a i2400m.
Definition: i2400m.c:342
struct wimaxll_handle * i2400m_wmx(struct i2400m *)
Return the libwimaxll handle associated to a i2400m.
Definition: i2400m.c:356
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.
Definition: i2400m.c:396
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.
Definition: i2400m.c:442