1*5d7b4d43SMatthew Ahrens /* 2*5d7b4d43SMatthew Ahrens * CDDL HEADER START 3*5d7b4d43SMatthew Ahrens * 4*5d7b4d43SMatthew Ahrens * This file and its contents are supplied under the terms of the 5*5d7b4d43SMatthew Ahrens * Common Development and Distribution License ("CDDL"), version 1.0. 6*5d7b4d43SMatthew Ahrens * You may only use this file in accordance with the terms of version 7*5d7b4d43SMatthew Ahrens * 1.0 of the CDDL. 8*5d7b4d43SMatthew Ahrens * 9*5d7b4d43SMatthew Ahrens * A full copy of the text of the CDDL should have accompanied this 10*5d7b4d43SMatthew Ahrens * source. A copy of the CDDL is also available via the Internet at 11*5d7b4d43SMatthew Ahrens * http://www.illumos.org/license/CDDL. 12*5d7b4d43SMatthew Ahrens * 13*5d7b4d43SMatthew Ahrens * CDDL HEADER END 14*5d7b4d43SMatthew Ahrens */ 15*5d7b4d43SMatthew Ahrens 16*5d7b4d43SMatthew Ahrens /* 17*5d7b4d43SMatthew Ahrens * Copyright (c) 2013 by Delphix. All rights reserved. 18*5d7b4d43SMatthew Ahrens */ 19*5d7b4d43SMatthew Ahrens 20*5d7b4d43SMatthew Ahrens #ifndef _SYS_BLKPTR_H 21*5d7b4d43SMatthew Ahrens #define _SYS_BLKPTR_H 22*5d7b4d43SMatthew Ahrens 23*5d7b4d43SMatthew Ahrens #include <sys/spa.h> 24*5d7b4d43SMatthew Ahrens #include <sys/zio.h> 25*5d7b4d43SMatthew Ahrens 26*5d7b4d43SMatthew Ahrens #ifdef __cplusplus 27*5d7b4d43SMatthew Ahrens extern "C" { 28*5d7b4d43SMatthew Ahrens #endif 29*5d7b4d43SMatthew Ahrens 30*5d7b4d43SMatthew Ahrens void encode_embedded_bp_compressed(blkptr_t *, void *, 31*5d7b4d43SMatthew Ahrens enum zio_compress, int, int); 32*5d7b4d43SMatthew Ahrens void decode_embedded_bp_compressed(const blkptr_t *, void *); 33*5d7b4d43SMatthew Ahrens 34*5d7b4d43SMatthew Ahrens #ifdef __cplusplus 35*5d7b4d43SMatthew Ahrens } 36*5d7b4d43SMatthew Ahrens #endif 37*5d7b4d43SMatthew Ahrens 38*5d7b4d43SMatthew Ahrens #endif /* _SYS_BLKPTR_H */ 39