Squash
0.7.0
|
Response status codes. More...
Enumerations | |
enum | SquashStatus { SQUASH_OK = 1, SQUASH_PROCESSING = 2, SQUASH_END_OF_STREAM = 3, SQUASH_FAILED = -1, SQUASH_UNABLE_TO_LOAD = -2, SQUASH_BAD_PARAM = -3, SQUASH_BAD_VALUE = -4, SQUASH_MEMORY = -5, SQUASH_BUFFER_FULL = -6, SQUASH_BUFFER_EMPTY = -7, SQUASH_STATE = -8, SQUASH_INVALID_OPERATION = -9, SQUASH_NOT_FOUND = -10, SQUASH_INVALID_BUFFER = -11, SQUASH_IO = -12 } |
Status codes. More... | |
Functions | |
const char * | squash_status_to_string (SquashStatus status) |
Get a string representation of a status code. More... | |
SquashStatus | squash_error (SquashStatus status) |
Emit an error. More... | |
Response status codes.
enum SquashStatus |
Status codes.
SquashStatus squash_error | ( | SquashStatus | status | ) |
Emit an error.
This function simply returns the argument which was passed to it. It exists only to make it easier to debug an error by setting a breakpoint on this function.
Note that only the initial point at which the error was generated should call this function. Do not call it when simply returning an error that was generated by another function.
status | the error |
const char* squash_status_to_string | ( | SquashStatus | status | ) |