34#ifndef _NETGRAPH_ATM_NGATMBASE_H_
35#define _NETGRAPH_ATM_NGATMBASE_H_
45struct uni_msg *_uni_msg_alloc(
size_t,
const char *,
int);
46struct uni_msg *_uni_msg_build(
const char *,
int,
void *, ...);
47void _uni_msg_destroy(
struct uni_msg *,
const char *,
int);
48int _uni_msg_unpack_mbuf(
struct mbuf *,
struct uni_msg **,
const char *,
int);
50#define uni_msg_alloc(S) _uni_msg_alloc((S), __FILE__, __LINE__)
51#define uni_msg_build(P...) _uni_msg_build(__FILE__, __LINE__, P)
52#define uni_msg_destroy(M) _uni_msg_destroy((M), __FILE__, __LINE__)
53#define uni_msg_unpack_mbuf(M, PP) \
54 _uni_msg_unpack_mbuf((M), (PP), __FILE__, __LINE__)
struct mbuf * uni_msg_pack_mbuf(struct uni_msg *, void *, size_t)
int uni_msg_unpack_mbuf(struct mbuf *, struct uni_msg **)
struct uni_msg * uni_msg_build(void *,...)
void uni_msg_destroy(struct uni_msg *)
struct uni_msg * uni_msg_alloc(size_t)