9 #ifndef _SQUAREBALL_ERROR_H 10 #define _SQUAREBALL_ERROR_H 42 typedef char* (*sb_error_to_string_func_t) (
void *data);
void(* sb_free_func_t)(void *ptr)
Definition: sb-mem.h:31
const void * sb_error_get_data(sb_error_t *err)
sb_free_func_t free_func
Definition: sb-error.h:64
const char * name
Definition: sb-error.h:54
const char * sb_error_get_type_name(sb_error_t *err)
char *(* sb_error_to_string_func_t)(void *data)
Definition: sb-error.h:42
void sb_error_free(sb_error_t *err)
Memory allocation related helpers.
Definition: sb-error.h:49
const char * sb_error_to_string(sb_error_t *err)
sb_error_to_string_func_t to_string_func
Definition: sb-error.h:59
sb_error_t * sb_error_new_from_type(sb_error_type_t *type, void *data)
struct _sb_error_t sb_error_t
Definition: sb-error.h:71