1
0
Fork 0
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:
David Herrmann 2014-02-10 12:17:19 +01:00
parent 062c73ecf3
commit 2e50d006ad
6 changed files with 119 additions and 2 deletions

View file

@ -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) \