https://github.com/torvalds/linux
Raw File
Tip revision: 15ade5d2e7775667cf191cf2f94327a4889f8b9d authored by Linus Torvalds on 08 April 2019, 00:09:59 UTC
Linux 5.1-rc4
Tip revision: 15ade5d
infutil.h
/* infutil.h -- types and macros common to blocks and codes
 * Copyright (C) 1995-1998 Mark Adler
 * For conditions of distribution and use, see copyright notice in zlib.h 
 */

/* WARNING: this file should *not* be used by applications. It is
   part of the implementation of the compression library and is
   subject to change. Applications should only use zlib.h.
 */

#ifndef _INFUTIL_H
#define _INFUTIL_H

#include <linux/zlib.h>

/* memory allocation for inflation */

struct inflate_workspace {
	struct inflate_state inflate_state;
	unsigned char working_window[1 << MAX_WBITS];
};

#define WS(z) ((struct inflate_workspace *)(z->workspace))

#endif
back to top