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
150b16ec
Commit
150b16ec
authored
Nov 16, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib/upnp/Discovery: make Upnp_Discovery pointers const
parent
c98bc4a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
Discovery.cxx
src/lib/upnp/Discovery.cxx
+4
-4
Discovery.hxx
src/lib/upnp/Discovery.hxx
+2
-2
No files found.
src/lib/upnp/Discovery.cxx
View file @
150b16ec
...
...
@@ -153,7 +153,7 @@ UPnPDeviceDirectory::Explore(void *ctx)
}
inline
int
UPnPDeviceDirectory
::
OnAlive
(
Upnp_Discovery
*
disco
)
UPnPDeviceDirectory
::
OnAlive
(
const
Upnp_Discovery
*
disco
)
{
if
(
isMSDevice
(
disco
->
DeviceType
)
||
isCDService
(
disco
->
ServiceType
))
{
...
...
@@ -166,7 +166,7 @@ UPnPDeviceDirectory::OnAlive(Upnp_Discovery *disco)
}
inline
int
UPnPDeviceDirectory
::
OnByeBye
(
Upnp_Discovery
*
disco
)
UPnPDeviceDirectory
::
OnByeBye
(
const
Upnp_Discovery
*
disco
)
{
if
(
isMSDevice
(
disco
->
DeviceType
)
||
isCDService
(
disco
->
ServiceType
))
{
...
...
@@ -188,13 +188,13 @@ UPnPDeviceDirectory::Invoke(Upnp_EventType et, void *evp)
case
UPNP_DISCOVERY_SEARCH_RESULT
:
case
UPNP_DISCOVERY_ADVERTISEMENT_ALIVE
:
{
Upnp_Discovery
*
disco
=
(
Upnp_Discovery
*
)
evp
;
auto
*
disco
=
(
const
Upnp_Discovery
*
)
evp
;
return
OnAlive
(
disco
);
}
case
UPNP_DISCOVERY_ADVERTISEMENT_BYEBYE
:
{
Upnp_Discovery
*
disco
=
(
Upnp_Discovery
*
)
evp
;
auto
*
disco
=
(
const
Upnp_Discovery
*
)
evp
;
return
OnByeBye
(
disco
);
}
...
...
src/lib/upnp/Discovery.hxx
View file @
150b16ec
...
...
@@ -153,8 +153,8 @@ private:
static
void
*
Explore
(
void
*
);
void
Explore
();
int
OnAlive
(
Upnp_Discovery
*
disco
);
int
OnByeBye
(
Upnp_Discovery
*
disco
);
int
OnAlive
(
const
Upnp_Discovery
*
disco
);
int
OnByeBye
(
const
Upnp_Discovery
*
disco
);
/* virtual methods from class UpnpCallback */
virtual
int
Invoke
(
Upnp_EventType
et
,
void
*
evp
)
override
;
...
...
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