gnome-score

Name

gnome-score -- 

Synopsis


#include <libgnome/libgnome.h>


gint        gnome_score_init                (const gchar *gamename);
gint        gnome_score_log                 (gfloat score,
                                             const gchar *level,
                                             gboolean higher_to_lower_score_order);

Description

Details

gnome_score_init ()

gint        gnome_score_init                (const gchar *gamename);

GNOME Games should call this routine as the first statement in main() if they have been installed setgid to the games() group.

gamename : Identifies the game name.
Returns : 0 on success, returns -1 on failure. group privileges are dropped regardless of the status returned.


gnome_score_log ()

gint        gnome_score_log                 (gfloat score,
                                             const gchar *level,
                                             gboolean higher_to_lower_score_order);

Logs a score entry for the user.

score : the score achieved by the user in this game
level : level on which the score was obtained
higher_to_lower_score_order : biggers is better or not
Returns :0 on failure or the status from the gnome-score helper program.