@@ 377,6 377,18 @@ static struct val *get_qso_freq(const st
return VAL_DUP_STR(buf);
}
+static void handle_qso_notification(enum announce_qso_msg_type type,
+ const struct instance_info *info,
+ const struct xuuid *uuid)
+{
+ const char *action = (type == ANNOUNCE_QSO_NEW) ? "added" : "updated";
+ char uuid_str[XUUID_PRINTABLE_STRING_LENGTH];
+
+ xuuid_unparse(uuid, uuid_str);
+
+ msg_print(MSG_QSO, CE_INFO, "QSO %-7s %s", action, uuid_str);
+}
+
/*
* location
*/
@@ 861,7 873,7 @@ int contest_init(struct contest_params *
}
ret = announce_connect(NULL,
- NULL,
+ handle_qso_notification,
handle_location_notification,
handle_rig_notification);
if (ret)