pgppktlist.h

来自「著名的加密软件的应用于电子邮件中」· C头文件 代码 · 共 43 行

H
43
字号
/*
* pgpPktList.h
*
* Copyright (C) 1996,1997 Pretty Good Privacy, Inc. All rights reserved.
*
* $Id: pgpPktList.h,v 1.2.2.1 1997/06/07 09:51:28 mhw Exp $
*/

#ifndef PGPPKTLIST_H
#define PGPPKTLIST_H

#include <stddef.h>	 /* For size_t */

#include "pgpUsuals.h"	/* For byte */

#ifdef __cplusplus
extern "C" {
#endif

/*
* This is a trivial interface. You may just access the members
* directly. buf may change from an included buffer to a pointer
* at some point, but that should not require any changes to the
* source code.
*/

struct PktList {
		struct PktList *next;
		int type;
		size_t len;
		byte buf[1];	/* Extensible */
};

struct PktList *pgpPktListNew(int type, byte const *buf, size_t len);
void pgpPktListFreeOne(struct PktList *list);
void pgpPktListFreeList(struct PktList *list);

#ifdef __cplusplus
}
#endif

#endif PGPPKTLIST_H

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?