50 |
typedef enum { |
typedef enum { |
51 |
PBUF_RAM, |
PBUF_RAM, |
52 |
PBUF_ROM, |
PBUF_ROM, |
53 |
|
PBUF_REF, |
54 |
PBUF_POOL |
PBUF_POOL |
55 |
} pbuf_flag; |
} pbuf_flag; |
56 |
|
|
60 |
#define PBUF_FLAG_ROM 0x01 /* Flags that pbuf data is stored in ROM. */ |
#define PBUF_FLAG_ROM 0x01 /* Flags that pbuf data is stored in ROM. */ |
61 |
#define PBUF_FLAG_POOL 0x02 /* Flags that the pbuf comes from the |
#define PBUF_FLAG_POOL 0x02 /* Flags that the pbuf comes from the |
62 |
pbuf pool. */ |
pbuf pool. */ |
63 |
|
#define PBUF_FLAG_REF 0x03 |
64 |
|
|
65 |
struct pbuf { |
struct pbuf { |
66 |
struct pbuf *next; |
struct pbuf *next; |
151 |
the pbuf chain or NULL if the pbuf p was not chained. */ |
the pbuf chain or NULL if the pbuf p was not chained. */ |
152 |
struct pbuf *pbuf_dechain(struct pbuf *p); |
struct pbuf *pbuf_dechain(struct pbuf *p); |
153 |
|
|
154 |
|
struct pbuf *pbuf_unref(struct pbuf *f); |
155 |
|
|
156 |
|
|
157 |
#endif /* __LWIP_PBUF_H__ */ |
#endif /* __LWIP_PBUF_H__ */ |