diff --git a/wmud/db.h b/wmud/db.h index 2c8869d..0bc8068 100644 --- a/wmud/db.h +++ b/wmud/db.h @@ -25,6 +25,20 @@ extern GQuark WMUD_DB_ERROR; +/** + * wmudDbError: + * @WMUD_DB_ERROR_CANTOPEN: Database file cannot be opened + * @WMUD_DB_ERROR_NOINIT: Database system was not initialized + * @WMUD_DB_ERROR_BADQUERY: Invalid database query + * + * Error codes returned by database handling functions. + */ +typedef enum { + WMUD_DB_ERROR_CANTOPEN, + WMUD_DB_ERROR_NOINIT, + WMUD_DB_ERROR_BADQUERY +} wmudDbError; + gboolean wmud_db_init(GError **err); gboolean wmud_db_load_players(GError **err); gboolean wmud_db_save_player(wmudPlayer *player, GError **err); diff --git a/wmud/wmud-types.h b/wmud/wmud-types.h index ed6a93b..bb194d1 100644 --- a/wmud/wmud-types.h +++ b/wmud/wmud-types.h @@ -109,19 +109,5 @@ typedef struct _wmudClient { gint login_try_count; } wmudClient; -/** - * wmudDbError: - * @WMUD_DB_ERROR_CANTOPEN: Database file cannot be opened - * @WMUD_DB_ERROR_NOINIT: Database system was not initialized - * @WMUD_DB_ERROR_BADQUERY: Invalid database query - * - * Error codes returned by database handling functions. - */ -typedef enum { - WMUD_DB_ERROR_CANTOPEN, - WMUD_DB_ERROR_NOINIT, - WMUD_DB_ERROR_BADQUERY -} wmudDbError; - #endif /* __WMUD_TYPES_H__ */