Hubbub
Typedefs | Enumerations | Functions
errors.h File Reference
#include <stddef.h>

Go to the source code of this file.

Typedefs

typedef enum hubbub_error hubbub_error
 

Enumerations

enum  hubbub_error {
  HUBBUB_OK = 0, HUBBUB_REPROCESS = 1, HUBBUB_ENCODINGCHANGE = 2, HUBBUB_PAUSED = 3,
  HUBBUB_NOMEM = 5, HUBBUB_BADPARM = 6, HUBBUB_INVALID = 7, HUBBUB_FILENOTFOUND = 8,
  HUBBUB_NEEDDATA = 9, HUBBUB_BADENCODING = 10, HUBBUB_UNKNOWN = 11
}
 

Functions

const char * hubbub_error_to_string (hubbub_error error)
 Convert a hubbub error code to a string. More...
 

Typedef Documentation

◆ hubbub_error

typedef enum hubbub_error hubbub_error

Enumeration Type Documentation

◆ hubbub_error

Enumerator
HUBBUB_OK 

No error.

HUBBUB_REPROCESS 
HUBBUB_ENCODINGCHANGE 
HUBBUB_PAUSED 

tokenisation is paused

HUBBUB_NOMEM 
HUBBUB_BADPARM 
HUBBUB_INVALID 
HUBBUB_FILENOTFOUND 
HUBBUB_NEEDDATA 
HUBBUB_BADENCODING 
HUBBUB_UNKNOWN 

Definition at line 18 of file errors.h.

Function Documentation

◆ hubbub_error_to_string()

const char* hubbub_error_to_string ( hubbub_error  error)

Convert a hubbub error code to a string.

Parameters
errorThe error code to convert
Returns
Pointer to string representation of error, or NULL if unknown.

Definition at line 18 of file errors.c.

References HUBBUB_BADENCODING, HUBBUB_BADPARM, HUBBUB_ENCODINGCHANGE, HUBBUB_FILENOTFOUND, HUBBUB_INVALID, HUBBUB_NEEDDATA, HUBBUB_NOMEM, HUBBUB_OK, HUBBUB_PAUSED, HUBBUB_REPROCESS, and HUBBUB_UNKNOWN.