X-Git-Url: https://git.cworth.org/git?p=loudgame;a=blobdiff_plain;f=loudgame.h;h=7aedd79db00c1ce71a3bca4fbf27aadc50d76fac;hp=726394bf26b0ddb1f599b2710e74999c4388a9c0;hb=0446a4eb0485bb8dd34312c64f940c2461a7180e;hpb=a812ce8bebf9c5a2408537626e1a8bb593fe9879 diff --git a/loudgame.h b/loudgame.h index 726394b..7aedd79 100644 --- a/loudgame.h +++ b/loudgame.h @@ -20,6 +20,7 @@ #ifndef __LOUDGAME_H__ #define __LOUDGAME_H__ +#include #include typedef struct _loudgame loudgame_t; @@ -33,7 +34,10 @@ struct _loudgame { gchar *name; gchar *passwd; LmConnection *connection; + GMainLoop *main_loop; + GHashTable *players; + int return_value; /* Callbacks */ @@ -46,6 +50,23 @@ loudgame_init (loudgame_t *lg, int argc, char **argv); int loudgame_run (loudgame_t *lg); +void +loudgame_send (loudgame_t *lg, + const char *peer, + const char *message); + +void +loudgame_sendf (loudgame_t *lg, + const char *peer, + const char *format, + ...); + +void +loudgame_vsendf (loudgame_t *lg, + const char *peer, + const char *format, + va_list va); + void loudgame_quit (loudgame_t *lg, int return_value);