best-match: Add property for primary and secondary display information

This allows to get rid of any special casing that the users of the
calls_best_match_get_name() and calls_best_match_get_id() had to do previously.

We also allow passing in NULL for *_get_primary_info ()
and *_get_secondary_info () for the anonymous caller case.
This commit is contained in:
Evangelos Ribeiro Tzaras
2022-02-13 10:44:31 +01:00
parent 3ac8cc1580
commit 7f40314810
2 changed files with 99 additions and 4 deletions

View File

@@ -40,6 +40,8 @@ void calls_best_match_set_phone_number (CallsBestMatch *self,
const char *phone_number);
const char *calls_best_match_get_name (CallsBestMatch *self);
GLoadableIcon *calls_best_match_get_avatar (CallsBestMatch *self);
const char *calls_best_match_get_primary_info (CallsBestMatch *self);
const char *calls_best_match_get_secondary_info (CallsBestMatch *self);
G_END_DECLS