/*1* Copyright (c) Yann Collet, Facebook, Inc.2* All rights reserved.3*4* This source code is licensed under both the BSD-style license (found in the5* LICENSE file in the root directory of this source tree) and the GPLv2 (found6* in the COPYING file in the root directory of this source tree).7* You may select, at your option, one of the above-listed licenses.8*/910/* This library is designed for a single-threaded console application.11* It exit() and printf() into stderr when it encounters an error condition. */1213#ifndef DIBIO_H_00314#define DIBIO_H_003151617/*-*************************************18* Dependencies19***************************************/20#define ZDICT_STATIC_LINKING_ONLY21#include "../lib/zdict.h" /* ZDICT_params_t */222324/*-*************************************25* Public functions26***************************************/27/*! DiB_trainFromFiles() :28Train a dictionary from a set of files provided by `fileNamesTable`.29Resulting dictionary is written into file `dictFileName`.30`parameters` is optional and can be provided with values set to 0, meaning "default".31@return : 0 == ok. Any other : error.32*/33int DiB_trainFromFiles(const char* dictFileName, size_t maxDictSize,34const char** fileNamesTable, int nbFiles, size_t chunkSize,35ZDICT_legacy_params_t* params, ZDICT_cover_params_t* coverParams,36ZDICT_fastCover_params_t* fastCoverParams, int optimize, unsigned memLimit);3738#endif394041