Moved wmudDbERror struct to db.h

Signed-off by: Gergely POLONKAI <polesz@w00d5t0ck.info>
This commit is contained in:
Polonkai Gergely 2012-03-27 19:47:29 +00:00
parent 92ff91b989
commit 63d8d917bf
2 changed files with 14 additions and 14 deletions

View File

@ -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);

View File

@ -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__ */