origin: Add API to query supported protocols

This will allow selecting a suitable origin when placing outgoing calls.
This commit is contained in:
Evangelos Ribeiro Tzaras
2021-04-12 18:20:56 +02:00
parent 7ad0f4cdd6
commit 0c966fdf83
6 changed files with 82 additions and 0 deletions

View File

@@ -44,6 +44,8 @@ struct _CallsOriginInterface
void (*dial) (CallsOrigin *self,
const char *number);
gboolean (*supports_protocol) (CallsOrigin *self,
const char *protocol);
};
typedef void (*CallsOriginForeachCallFunc) (gpointer param, CallsCall* call, CallsOrigin* origin);
@@ -55,6 +57,8 @@ void calls_origin_foreach_call (CallsOrigin *self,
gpointer param);
void calls_origin_dial (CallsOrigin *self,
const char *number);
gboolean calls_origin_supports_protocol (CallsOrigin *self,
const char *protocol);
G_END_DECLS
#endif /* CALLS_ORIGIN_H__ */