mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +00:00
miracled: friendly-name support for local links
The friendly-name is used as name for local links. Default to a random string and try to read the local hostname during startup. Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
This commit is contained in:
parent
062c73ecf3
commit
2e50d006ad
6 changed files with 119 additions and 2 deletions
|
@ -101,6 +101,8 @@ int link_new(struct manager *m,
|
|||
struct link **out);
|
||||
void link_free(struct link *l);
|
||||
|
||||
int link_set_friendly_name(struct link *l, const char *name);
|
||||
|
||||
/* manager */
|
||||
|
||||
struct manager {
|
||||
|
@ -114,6 +116,8 @@ struct manager {
|
|||
size_t peer_cnt;
|
||||
struct shl_htable links;
|
||||
struct shl_htable peers;
|
||||
|
||||
char *friendly_name;
|
||||
};
|
||||
|
||||
#define MANAGER_FIRST_LINK(_m) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue