Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
bd0aa74b
Commit
bd0aa74b
authored
Feb 24, 2021
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zeroconf/Bonjour: rename class BonjourMonitor to BonjourHelper
parent
47461df5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Bonjour.cxx
src/zeroconf/Bonjour.cxx
+5
-5
No files found.
src/zeroconf/Bonjour.cxx
View file @
bd0aa74b
...
@@ -30,13 +30,13 @@
...
@@ -30,13 +30,13 @@
static
constexpr
Domain
bonjour_domain
(
"bonjour"
);
static
constexpr
Domain
bonjour_domain
(
"bonjour"
);
class
Bonjour
Monito
r
final
{
class
Bonjour
Helpe
r
final
{
DNSServiceRef
service_ref
;
DNSServiceRef
service_ref
;
SocketEvent
socket_event
;
SocketEvent
socket_event
;
public
:
public
:
Bonjour
Monito
r
(
EventLoop
&
_loop
,
DNSServiceRef
_service_ref
)
Bonjour
Helpe
r
(
EventLoop
&
_loop
,
DNSServiceRef
_service_ref
)
:
service_ref
(
_service_ref
),
:
service_ref
(
_service_ref
),
socket_event
(
_loop
,
socket_event
(
_loop
,
BIND_THIS_METHOD
(
OnSocketReady
),
BIND_THIS_METHOD
(
OnSocketReady
),
...
@@ -45,7 +45,7 @@ public:
...
@@ -45,7 +45,7 @@ public:
socket_event
.
ScheduleRead
();
socket_event
.
ScheduleRead
();
}
}
~
Bonjour
Monito
r
()
{
~
Bonjour
Helpe
r
()
{
DNSServiceRefDeallocate
(
service_ref
);
DNSServiceRefDeallocate
(
service_ref
);
}
}
...
@@ -60,7 +60,7 @@ protected:
...
@@ -60,7 +60,7 @@ protected:
}
}
};
};
static
Bonjour
Monito
r
*
bonjour_monitor
;
static
Bonjour
Helpe
r
*
bonjour_monitor
;
static
void
static
void
dnsRegisterCallback
([[
maybe_unused
]]
DNSServiceRef
sdRef
,
dnsRegisterCallback
([[
maybe_unused
]]
DNSServiceRef
sdRef
,
...
@@ -100,7 +100,7 @@ BonjourInit(EventLoop &loop, const char *service_name, unsigned port)
...
@@ -100,7 +100,7 @@ BonjourInit(EventLoop &loop, const char *service_name, unsigned port)
return
;
return
;
}
}
bonjour_monitor
=
new
Bonjour
Monito
r
(
loop
,
dnsReference
);
bonjour_monitor
=
new
Bonjour
Helpe
r
(
loop
,
dnsReference
);
}
}
void
void
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment