summaryrefslogtreecommitdiff
path: root/include/tinyff/result.h
blob: 9b17d4aaa40cb43e720f6c4ebeda0af96aaf5e51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef RESULT_H
#define RESULT_H

typedef enum {
    FF_RESULT_OK = 0,

    // File
    FF_RESULT_ERROR_INVALID_FILE_SIGNITURE,
    FF_RESULT_ERROR_INVALID_FILE,
    FF_RESULT_ERROR_READ_FILE_FAILURE,

    // Memory
    FF_RESULT_ERROR_MEMORY_ALLOCATION,

    // More will be created when more errors occur
} ff_result;

#endif