dect
/
libdect
Archived
13
0
Fork 0

ie: export IE allocation functions

Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
Patrick McHardy 2010-01-10 21:01:03 +01:00
parent f6ca647b59
commit 1583ff8d96
2 changed files with 3 additions and 4 deletions

View File

@ -46,6 +46,9 @@ struct dect_ie_common {
#define dect_ie_container(res, ie) container_of(ie, typeof(*res), common)
extern struct dect_ie_common *dect_ie_alloc(const struct dect_handle *dh, size_t size);
extern void dect_ie_destroy(const struct dect_handle *dh, struct dect_ie_common *ie);
static inline struct dect_ie_common *__dect_ie_init(struct dect_ie_common *ie)
{
ie->refcnt = 1;

View File

@ -400,10 +400,6 @@ struct dect_msg_common {
struct dect_ie_common *ie[0];
};
extern struct dect_ie_common *dect_ie_alloc(const struct dect_handle *dh,
unsigned int size);
extern void dect_ie_destroy(const struct dect_handle *dh, struct dect_ie_common *ie);
extern void *dect_ie_collection_alloc(const struct dect_handle *dh, unsigned int size);
struct dect_msg_buf;