Supply sid with user information in adcclient test code.

Tento commit je obsažen v:
Jan Vidar Krey
2011-11-30 12:32:59 +01:00
rodič 99e644597d
revize 9981acca08
2 změnil soubory, kde provedl 2 přidání a 1 odebrání
+1
Zobrazit soubor
@@ -258,6 +258,7 @@ static void ADC_client_on_recv_line(struct ADC_client* client, const char* line,
if (adc_msg_has_named_argument(msg, "ID"))
{
struct ADC_user user;
user.sid = msg->source;
EXTRACT_NAMED_ARG(msg, "NI", user.name);
EXTRACT_NAMED_ARG(msg, "DE", user.description);
EXTRACT_NAMED_ARG(msg, "VE", user.version);
+1 -1
Zobrazit soubor
@@ -44,7 +44,7 @@ static int handle(struct ADC_client* client, enum ADC_client_callback_type type,
break;
case ADC_CLIENT_USER_JOIN:
printf(" JOIN: %s\n", data->user->name);
printf(" JOIN: %s %s\n", sid_to_string(data->user->sid), data->user->name);
break;
case ADC_CLIENT_USER_QUIT: