Skip to content

Commit

Permalink
lib/upnp/Compat: remove obsolete kludges
Browse files Browse the repository at this point in the history
Those bugs have been fixed looong ago.
  • Loading branch information
MaxKellermann committed Dec 28, 2023
1 parent b9a7a99 commit d0a4270
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 45 deletions.
7 changes: 2 additions & 5 deletions src/lib/upnp/Callback.hxx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright The Music Player Daemon Project

#ifndef MPD_UPNP_CALLBACK_HXX
#define MPD_UPNP_CALLBACK_HXX
#pragma once

#include "Compat.hxx"
#include <upnp.h>

/**
* A class that is supposed to be used for libupnp asynchronous
Expand All @@ -26,5 +25,3 @@ public:

virtual int Invoke(Upnp_EventType et, const void *evp) noexcept = 0;
};

#endif
7 changes: 2 additions & 5 deletions src/lib/upnp/ClientInit.hxx
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright The Music Player Daemon Project

#ifndef MPD_UPNP_CLIENT_INIT_HXX
#define MPD_UPNP_CLIENT_INIT_HXX
#pragma once

#include "Compat.hxx"
#include <upnp.h>

UpnpClient_Handle
UpnpClientGlobalInit(const char* iface);

void
UpnpClientGlobalFinish() noexcept;

#endif
23 changes: 0 additions & 23 deletions src/lib/upnp/Compat.hxx

This file was deleted.

7 changes: 2 additions & 5 deletions src/lib/upnp/ContentDirectoryService.hxx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright The Music Player Daemon Project

#ifndef _UPNPDIR_HXX_INCLUDED_
#define _UPNPDIR_HXX_INCLUDED_
#pragma once

#include "Compat.hxx"
#include <upnp.h>

#include <string>
#include <forward_list>
Expand Down Expand Up @@ -103,5 +102,3 @@ public:
return m_friendlyName.c_str();
}
};

#endif /* _UPNPDIR_HXX_INCLUDED_ */
8 changes: 2 additions & 6 deletions src/lib/upnp/Discovery.hxx
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright The Music Player Daemon Project

#ifndef _UPNPPDISC_H_X_INCLUDED_
#define _UPNPPDISC_H_X_INCLUDED_

#include "Compat.hxx"
#include "Callback.hxx"
#include "Device.hxx"
#include "lib/curl/Init.hxx"
Expand All @@ -14,6 +10,8 @@
#include "event/InjectEvent.hxx"
#include "util/IntrusiveList.hxx"

#include <upnp.h>

#include <list>
#include <vector>
#include <string>
Expand Down Expand Up @@ -174,5 +172,3 @@ private:
int Invoke(Upnp_EventType et, const void *evp) noexcept override;
};


#endif /* _UPNPPDISC_H_X_INCLUDED_ */
2 changes: 1 addition & 1 deletion src/lib/upnp/Init.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
// Copyright The Music Player Daemon Project

#include "Init.hxx"
#include "Compat.hxx"
#include "Error.hxx"
#include "thread/Mutex.hxx"

#include <upnp.h>
#include <upnptools.h>
#ifdef USING_PUPNP
# include <ixml.h>
Expand Down

0 comments on commit d0a4270

Please sign in to comment.