Documentation fix for WmudPlayer

This commit is contained in:
Gergely Polonkai 2013-06-21 13:56:41 +02:00
parent 054cda3e38
commit 419fc3fc7f
4 changed files with 29 additions and 4 deletions

View File

@ -19,6 +19,7 @@
<!--xi:include href="xml/types.xml"/--> <!--xi:include href="xml/types.xml"/-->
<xi:include href="xml/utils.xml"/> <xi:include href="xml/utils.xml"/>
<xi:include href="xml/wmudclient.xml"/> <xi:include href="xml/wmudclient.xml"/>
<xi:include href="xml/wmudplayer.xml"/>
<xi:include href="xml/configuration.xml"/> <xi:include href="xml/configuration.xml"/>
<xi:include href="xml/maintenance-thread.xml"/> <xi:include href="xml/maintenance-thread.xml"/>
<xi:include href="xml/game-thread.xml"/> <xi:include href="xml/game-thread.xml"/>

View File

@ -42,6 +42,29 @@ wmud_client_state_get_type
<TITLE>WmudPlayer</TITLE> <TITLE>WmudPlayer</TITLE>
<FILE>wmudplayer</FILE> <FILE>wmudplayer</FILE>
WmudPlayer WmudPlayer
WmudPlayerPrivate
WMUD_IS_PLAYER
WMUD_IS_PLAYER_CLASS
WMUD_PLAYER
WMUD_PLAYER_CLASS
WMUD_PLAYER_GET_CLASS
WMUD_TYPE_PLAYER
wmud_player_get_cpassword
wmud_player_get_email
wmud_player_get_fail_count
wmud_player_get_id
wmud_player_get_player_name
wmud_player_get_registered
wmud_player_get_type
wmud_player_increase_fail_count
wmud_player_new
wmud_player_password_valid
wmud_player_reset_fail_count
wmud_player_set_cpassword
wmud_player_set_email
wmud_player_set_id
wmud_player_set_player_name
wmud_player_set_registered
</SECTION> </SECTION>
<SECTION> <SECTION>

View File

@ -195,7 +195,7 @@ wmud_player_dup(WmudPlayer *self)
/** /**
* wmud_player_password_valid: * wmud_player_password_valid:
* @client: The client to be authenticated * @player: The client to be authenticated
* @password: The password in clear text * @password: The password in clear text
* *
* Tries to authenticate a client with the name stored in the player object, * Tries to authenticate a client with the name stored in the player object,
@ -204,8 +204,8 @@ wmud_player_dup(WmudPlayer *self)
* Return value: %TRUE if the password is valid, %FALSE otherwise. * Return value: %TRUE if the password is valid, %FALSE otherwise.
*/ */
gboolean gboolean
wmud_player_password_valid(WmudPlayer *self, const gchar *password) wmud_player_password_valid(WmudPlayer *player, const gchar *password)
{ {
return (g_strcmp0(crypt(password, self->priv->cpassword), self->priv->cpassword) == 0); return (g_strcmp0(crypt(password, player->priv->cpassword), player->priv->cpassword) == 0);
} }

View File

@ -36,6 +36,7 @@ typedef struct _WmudPlayerPrivate WmudPlayerPrivate;
struct _WmudPlayer struct _WmudPlayer
{ {
/*< private >*/
GObject parent_instance; GObject parent_instance;
/*< private >*/ /*< private >*/
@ -63,7 +64,7 @@ gchar *wmud_player_get_email(WmudPlayer *player);
void wmud_player_set_id(WmudPlayer *player, guint32 id); void wmud_player_set_id(WmudPlayer *player, guint32 id);
guint32 wmud_player_get_id(WmudPlayer *player); guint32 wmud_player_get_id(WmudPlayer *player);
WmudPlayer *wmud_player_dup(WmudPlayer *player); WmudPlayer *wmud_player_dup(WmudPlayer *player);
gboolean wmud_player_password_valid(WmudPlayer *self, const gchar *password); gboolean wmud_player_password_valid(WmudPlayer *player, const gchar *password);
#endif /* __WMUD_WMUDPLAYER_H__ */ #endif /* __WMUD_WMUDPLAYER_H__ */