亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? pbuf.h

?? 這是我在ARM7Samsung3C44B0x芯片的實驗板上開發的貪吃蛇游戲的源代碼
?? H
字號:
/*
 * Copyright (c) 2001, Swedish Institute of Computer Science.
 * All rights reserved. 
 *
 * Redistribution and use in source and binary forms, with or without 
 * modification, are permitted provided that the following conditions 
 * are met: 
 * 1. Redistributions of source code must retain the above copyright 
 *    notice, this list of conditions and the following disclaimer. 
 * 2. Redistributions in binary form must reproduce the above copyright 
 *    notice, this list of conditions and the following disclaimer in the 
 *    documentation and/or other materials provided with the distribution. 
 * 3. Neither the name of the Institute nor the names of its contributors 
 *    may be used to endorse or promote products derived from this software 
 *    without specific prior written permission. 
 *
 * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 
 * SUCH DAMAGE. 
 *
 * This file is part of the lwIP TCP/IP stack.
 * 
 * Author: Adam Dunkels <adam@sics.se>
 *
 * $Id: pbuf.h,v 1.2 2002/01/23 10:54:00 adam Exp $
 */
/*-----------------------------------------------------------------------------------*/
#ifndef __LWIP_PBUF_H__
#define __LWIP_PBUF_H__

#include "lwip/debug.h"
#include "lwip/arch.h"


#define PBUF_TRANSPORT_HLEN 20
#define PBUF_IP_HLEN        20

typedef enum {
  PBUF_TRANSPORT,
  PBUF_IP,
  PBUF_LINK,
  PBUF_RAW
} pbuf_layer;

typedef enum {
  PBUF_RAM,
  PBUF_ROM,
  PBUF_POOL
} pbuf_flag;

/* Definitions for the pbuf flag field (these are not the flags that
   are passed to pbuf_alloc()). */
#define PBUF_FLAG_RAM   0x00    /* Flags that pbuf data is stored in RAM. */
#define PBUF_FLAG_ROM   0x01    /* Flags that pbuf data is stored in ROM. */
#define PBUF_FLAG_POOL  0x02    /* Flags that the pbuf comes from the
				   pbuf pool. */

struct pbuf {
  struct pbuf *next;
  
  /* high 4 bits, flags, low 4 bits reference count */
  u8_t flags, ref;
  void *payload;
  
  /* Total length of buffer + additionally chained buffers. */
  u16_t tot_len;
  /* Length of this buffer. */
  u16_t len;  
  
};

/* pbuf_init():

   Initializes the pbuf module. The num parameter determines how many
   pbufs that should be allocated to the pbuf pool, and the size
   parameter specifies the size of the data allocated to those.  */
void pbuf_init(void);

/* pbuf_alloc():
   
   Allocates a pbuf at protocol layer l. The actual memory allocated
   for the pbuf is determined by the layer at which the pbuf is
   allocated and the requested size (from the size parameter). The
   flag parameter decides how and where the pbuf should be allocated
   as follows:
 
   * PBUF_RAM: buffer memory for pbuf is allocated as one large
               chunk. This includesprotocol headers as well.
   
   * RBUF_ROM: no buffer memory is allocated for the pbuf, even for
                protocol headers.  Additional headers must be
                prepended by allocating another pbuf and chain in to
                the front of the ROM pbuf.

   * PBUF_ROOL: the pbuf is allocated as a pbuf chain, with pbufs from
                the pbuf pool that is allocated during pbuf_init().  */
struct pbuf *pbuf_alloc(pbuf_layer l, u16_t size, pbuf_flag flag);

/* pbuf_realloc():

   Shrinks the pbuf to the size given by the size parameter. 
 */
void pbuf_realloc(struct pbuf *p, u16_t size); 

/* pbuf_header():

   Tries to move the p->payload pointer header_size number of bytes
   upward within the pbuf. The return value is non-zero if it
   fails. If so, an additional pbuf should be allocated for the header
   and it should be chained to the front. */
u8_t pbuf_header(struct pbuf *p, s16_t header_size);

/* pbuf_ref():

   Increments the reference count of the pbuf p.
 */
void pbuf_ref(struct pbuf *p);

/* pbuf_free():

   Decrements the reference count and deallocates the pbuf if the
   reference count is zero. If the pbuf is a chain all pbufs in the
   chain are deallocated.  */
u8_t pbuf_free(struct pbuf *p);

/* pbuf_clen():

   Returns the length of the pbuf chain. */
u8_t pbuf_clen(struct pbuf *p);  

/* pbuf_chain():

   Chains pbuf t on the end of pbuf h. Pbuf h will have it's tot_len
   field adjusted accordingly. Pbuf t should no be used any more after
   a call to this function, since pbuf t is now a part of pbuf h.  */
void pbuf_chain(struct pbuf *h, struct pbuf *t);

/* pbuf_dechain():

   Picks off the first pbuf from the pbuf chain p. Returns the tail of
   the pbuf chain or NULL if the pbuf p was not chained. */
struct pbuf *pbuf_dechain(struct pbuf *p);

#endif /* __LWIP_PBUF_H__ */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲影院在线观看| 亚洲免费资源在线播放| 蜜桃av一区二区三区| 精品蜜桃在线看| 91丝袜美女网| 久久精品久久综合| 亚洲男人的天堂在线观看| 国产日韩欧美一区二区三区乱码| 91在线高清观看| 欧美在线免费观看视频| 美女精品一区二区| 久久精品国产一区二区三区免费看| 亚洲第一在线综合网站| 国产精品视频免费| 精品国产sm最大网站免费看| 欧美亚洲综合一区| 日本乱码高清不卡字幕| 国产伦精品一区二区三区在线观看| 亚洲精品国产成人久久av盗摄| 久久嫩草精品久久久精品| 欧美三级电影网站| av中文字幕一区| 国产不卡在线播放| 久久99国产精品久久| 日本在线播放一区二区三区| 一片黄亚洲嫩模| 亚洲日本丝袜连裤袜办公室| 国产精品国产三级国产三级人妇 | 91官网在线免费观看| 欧美无乱码久久久免费午夜一区 | 欧美疯狂性受xxxxx喷水图片| jvid福利写真一区二区三区| 日本高清不卡在线观看| 91精品国产91久久久久久一区二区 | 91精品国产综合久久福利| 欧美成人精品1314www| 国产精品久久久久久久久晋中 | 欧美日本国产视频| 欧美三区在线视频| 久久久午夜精品| 天天操天天干天天综合网| 亚洲成人动漫一区| 国产一区二区三区美女| 欧美日韩一区久久| 国产精品美女久久久久久久久| 天涯成人国产亚洲精品一区av| 粉嫩蜜臀av国产精品网站| 欧美日韩性生活| 亚洲少妇30p| 懂色av一区二区三区蜜臀| 欧美精品日韩综合在线| 亚洲三级免费观看| 高清在线不卡av| 精品久久人人做人人爱| 日韩电影在线免费看| 色综合色狠狠综合色| 欧美三级三级三级| 亚洲精品日韩综合观看成人91| 国产精品香蕉一区二区三区| 91日韩在线专区| 久久久精品免费免费| 麻豆精品久久久| 日韩一区二区麻豆国产| 欧美tk丨vk视频| 亚洲一区电影777| 欧美在线视频你懂得| 亚洲欧美另类小说| 99精品桃花视频在线观看| 欧美影视一区在线| 亚洲激情图片小说视频| 色综合久久综合网欧美综合网| 中文字幕在线播放不卡一区| 亚洲第一会所有码转帖| 在线观看日韩一区| 婷婷亚洲久悠悠色悠在线播放| 欧美性xxxxxx少妇| 亚洲五码中文字幕| 东方aⅴ免费观看久久av| 久久久一区二区三区| 国产在线视视频有精品| 欧美日韩欧美一区二区| 亚洲成人动漫精品| 91精品国产高清一区二区三区| 热久久久久久久| 欧美亚洲国产bt| 午夜精品久久久久久久久久久 | 久久久久一区二区三区四区| 国产在线播放一区| 中文字幕av一区二区三区| 亚洲永久免费av| 日韩丝袜情趣美女图片| 精品在线免费观看| 国产欧美日韩亚州综合| 99久久精品国产网站| 亚洲一区二区在线免费看| 91麻豆精品国产无毒不卡在线观看| 国产精品久久久久久久久晋中| 91在线丨porny丨国产| 亚洲国产精品一区二区尤物区| 欧美一激情一区二区三区| 狠狠色丁香久久婷婷综合丁香| 国产日产欧美精品一区二区三区| 91丨porny丨在线| 日本欧美加勒比视频| 中文字幕不卡三区| 日韩一区二区免费视频| www.久久久久久久久| 日日夜夜精品视频免费| 欧美色视频在线| 国产一区中文字幕| 亚洲综合色在线| 国产视频在线观看一区二区三区| 蜜臀久久99精品久久久久久9| 国产农村妇女精品| 欧美精品 日韩| 丁香婷婷综合网| 石原莉奈在线亚洲二区| 国产精品视频yy9299一区| 欧美日韩一二三区| 99久久99久久精品免费观看| 欧美a级一区二区| 亚洲国产欧美在线人成| 国产欧美日韩在线看| 欧美一区二区黄色| 欧日韩精品视频| 成人av网在线| 亚洲国产精品人人做人人爽| 久久久久久电影| 日韩一区二区免费在线观看| 91国偷自产一区二区开放时间| 精品一区二区综合| 天堂成人免费av电影一区| 自拍视频在线观看一区二区| 国产亚洲一区二区三区四区| 欧美一区二区视频在线观看| 欧美在线小视频| 在线视频欧美精品| 91视视频在线直接观看在线看网页在线看| 久久99精品久久久久久久久久久久| 亚洲尤物视频在线| 一区二区三区加勒比av| 日韩毛片精品高清免费| 亚洲视频一区二区免费在线观看| 中文字幕av免费专区久久| 国产日韩欧美精品一区| 久久综合网色—综合色88| 一本到不卡免费一区二区| av影院午夜一区| 99综合影院在线| 色综合久久久久久久久久久| 94-欧美-setu| 欧美亚洲一区二区在线| 91成人网在线| 欧美美女网站色| 欧美一级高清大全免费观看| 欧美一区二区三区男人的天堂| 欧美高清性hdvideosex| 91精品国产综合久久精品图片 | 中文字幕电影一区| 亚洲视频一区二区免费在线观看| **欧美大码日韩| 亚洲综合色自拍一区| 无吗不卡中文字幕| 激情综合色播激情啊| 国产不卡在线视频| 在线视频综合导航| 欧美一区二区精美| 国产色综合一区| 亚洲欧美激情一区二区| 亚洲妇女屁股眼交7| 日韩精品乱码免费| 国产精品资源在线| 91免费版pro下载短视频| 欧美日韩一区二区在线视频| 91精品国产色综合久久ai换脸 | 日韩一级免费观看| 精品福利在线导航| 日韩伦理免费电影| 蜜桃视频一区二区三区在线观看| 国产在线精品一区二区| 一本色道久久综合狠狠躁的推荐| 欧美日韩国产精品自在自线| 欧美岛国在线观看| 日韩欧美一级特黄在线播放| 精品国产一二三区| 亚洲嫩草精品久久| 加勒比av一区二区| 91福利在线播放| 久久精子c满五个校花| 亚洲午夜三级在线| 国产精一品亚洲二区在线视频| 97久久超碰国产精品电影| 欧美v日韩v国产v| 亚洲天堂精品在线观看| 免费在线看一区| 91福利国产精品| 国产精品国产自产拍高清av| 日韩精品一区第一页| 99久久精品国产导航| 久久综合久久综合久久|