Files
2026-03-14 23:57:17 -04:00

60 lines
2.6 KiB
C

/**
BSD 3-Clause License
Copyright (c) 2019, TheWover, Odzhan. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef ERRORS_H
#define ERRORS_H
#define FRITTER_ERROR_OK 0
#define FRITTER_ERROR_FILE_NOT_FOUND 1
#define FRITTER_ERROR_FILE_EMPTY 2
#define FRITTER_ERROR_FILE_ACCESS 3
#define FRITTER_ERROR_FILE_INVALID 4
#define FRITTER_ERROR_NET_PARAMS 5
#define FRITTER_ERROR_NO_MEMORY 6
#define FRITTER_ERROR_INVALID_ARCH 7
#define FRITTER_ERROR_INVALID_URL 8
#define FRITTER_ERROR_URL_LENGTH 9
#define FRITTER_ERROR_INVALID_PARAMETER 10
#define FRITTER_ERROR_RANDOM 11
#define FRITTER_ERROR_DLL_FUNCTION 12
#define FRITTER_ERROR_ARCH_MISMATCH 13
#define FRITTER_ERROR_DLL_PARAM 14
#define FRITTER_ERROR_RESERVED_15 15
#define FRITTER_ERROR_INVALID_FORMAT 16
#define FRITTER_ERROR_INVALID_ENGINE 17
#define FRITTER_ERROR_COMPRESSION 18
#define FRITTER_ERROR_INVALID_ENTROPY 19
#define FRITTER_ERROR_MIXED_ASSEMBLY 20
#define FRITTER_ERROR_HEADERS_INVALID 21
#define FRITTER_ERROR_DECOY_INVALID 22
#endif // ERRORS_H