Moved wmudDbERror struct to db.h
Signed-off by: Gergely POLONKAI <polesz@w00d5t0ck.info>
This commit is contained in:
parent
92ff91b989
commit
63d8d917bf
14
wmud/db.h
14
wmud/db.h
@ -25,6 +25,20 @@
|
|||||||
|
|
||||||
extern GQuark WMUD_DB_ERROR;
|
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_init(GError **err);
|
||||||
gboolean wmud_db_load_players(GError **err);
|
gboolean wmud_db_load_players(GError **err);
|
||||||
gboolean wmud_db_save_player(wmudPlayer *player, GError **err);
|
gboolean wmud_db_save_player(wmudPlayer *player, GError **err);
|
||||||
|
@ -109,19 +109,5 @@ typedef struct _wmudClient {
|
|||||||
gint login_try_count;
|
gint login_try_count;
|
||||||
} wmudClient;
|
} 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__ */
|
#endif /* __WMUD_TYPES_H__ */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user