X-Git-Url: https://git.cworth.org/git?p=ttt;a=blobdiff_plain;f=src%2Fttt-client.h;h=06af64b079a1a113287a4f1038226632724b1c00;hp=ef74b87760d893acfaaf671dd6470a3b4c9baf2d;hb=84db9bf52aa25c19f7d547ea2dbec69ca4452300;hpb=c6398c6a1b59f6eddefc9f9ce577017b15677251;ds=sidebyside diff --git a/src/ttt-client.h b/src/ttt-client.h index ef74b87..06af64b 100644 --- a/src/ttt-client.h +++ b/src/ttt-client.h @@ -41,8 +41,12 @@ ttt_client_new (void *closure, int client_socket); void ttt_client_send (ttt_client_t *client, const char *message); -/* Get a client's unique ID. */ -int -ttt_client_get_id (ttt_client_t *client); +/* Get a client's name. */ +const char* +ttt_client_get_name (ttt_client_t *client); + +/* Set a client's name. */ +void +ttt_client_set_name (ttt_client_t *client, const char *name); #endif /* _TTT_CLIENT_H_ */