1*01826a49SYabin Cui /* 2*01826a49SYabin Cui * Copyright (c) Yann Collet, Meta Platforms, Inc. 3*01826a49SYabin Cui * All rights reserved. 4*01826a49SYabin Cui * 5*01826a49SYabin Cui * This source code is licensed under both the BSD-style license (found in the 6*01826a49SYabin Cui * LICENSE file in the root directory of this source tree) and the GPLv2 (found 7*01826a49SYabin Cui * in the COPYING file in the root directory of this source tree). 8*01826a49SYabin Cui * You may select, at your option, one of the above-listed licenses. 9*01826a49SYabin Cui */ 10*01826a49SYabin Cui 11*01826a49SYabin Cui #ifndef EXTERNAL_MATCHFINDER 12*01826a49SYabin Cui #define EXTERNAL_MATCHFINDER 13*01826a49SYabin Cui 14*01826a49SYabin Cui #define ZSTD_STATIC_LINKING_ONLY 15*01826a49SYabin Cui #include "zstd.h" 16*01826a49SYabin Cui 17*01826a49SYabin Cui /* See external_matchfinder.c for details on each test case */ 18*01826a49SYabin Cui typedef enum { 19*01826a49SYabin Cui EMF_ZERO_SEQS = 0, 20*01826a49SYabin Cui EMF_ONE_BIG_SEQ = 1, 21*01826a49SYabin Cui EMF_LOTS_OF_SEQS = 2, 22*01826a49SYabin Cui EMF_BIG_ERROR = 3, 23*01826a49SYabin Cui EMF_SMALL_ERROR = 4, 24*01826a49SYabin Cui EMF_INVALID_OFFSET = 5, 25*01826a49SYabin Cui EMF_INVALID_MATCHLEN = 6, 26*01826a49SYabin Cui EMF_INVALID_LITLEN = 7, 27*01826a49SYabin Cui EMF_INVALID_LAST_LITS = 8 28*01826a49SYabin Cui } EMF_testCase; 29*01826a49SYabin Cui 30*01826a49SYabin Cui size_t zstreamSequenceProducer( 31*01826a49SYabin Cui void* sequenceProducerState, 32*01826a49SYabin Cui ZSTD_Sequence* outSeqs, size_t outSeqsCapacity, 33*01826a49SYabin Cui const void* src, size_t srcSize, 34*01826a49SYabin Cui const void* dict, size_t dictSize, 35*01826a49SYabin Cui int compressionLevel, 36*01826a49SYabin Cui size_t windowSize 37*01826a49SYabin Cui ); 38*01826a49SYabin Cui 39*01826a49SYabin Cui #endif /* EXTERNAL_MATCHFINDER */ 40