lib/avahi/Poll: fix copyright header

This commit is contained in:
Max Kellermann 2023-09-16 22:32:17 +02:00
parent ce2965b5bc
commit b8210bbc45
2 changed files with 11 additions and 12 deletions

View File

@ -1,5 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later // SPDX-License-Identifier: BSD-2-Clause
// Copyright The Music Player Daemon Project // Copyright CM4all GmbH
// author: Max Kellermann <mk@cm4all.com>
#include "Poll.hxx" #include "Poll.hxx"
#include "event/SocketEvent.hxx" #include "event/SocketEvent.hxx"
@ -33,8 +34,8 @@ private:
public: public:
AvahiWatch(EventLoop &_loop, AvahiWatch(EventLoop &_loop,
SocketDescriptor _fd, AvahiWatchEvent _event, SocketDescriptor _fd, AvahiWatchEvent _event,
AvahiWatchCallback _callback, void *_userdata) noexcept AvahiWatchCallback _callback, void *_userdata) noexcept
:event(_loop, BIND_THIS_METHOD(OnSocketReady), _fd), :event(_loop, BIND_THIS_METHOD(OnSocketReady), _fd),
callback(_callback), userdata(_userdata) { callback(_callback), userdata(_userdata) {
event.Schedule(FromAvahiWatchEvent(_event)); event.Schedule(FromAvahiWatchEvent(_event));
@ -138,7 +139,7 @@ Poll::Poll(EventLoop &_loop) noexcept
AvahiWatch * AvahiWatch *
Poll::WatchNew(const AvahiPoll *api, int fd, AvahiWatchEvent event, Poll::WatchNew(const AvahiPoll *api, int fd, AvahiWatchEvent event,
AvahiWatchCallback callback, void *userdata) noexcept AvahiWatchCallback callback, void *userdata) noexcept
{ {
const Poll &poll = *(const Poll *)api; const Poll &poll = *(const Poll *)api;
@ -148,7 +149,7 @@ Poll::WatchNew(const AvahiPoll *api, int fd, AvahiWatchEvent event,
AvahiTimeout * AvahiTimeout *
Poll::TimeoutNew(const AvahiPoll *api, const struct timeval *tv, Poll::TimeoutNew(const AvahiPoll *api, const struct timeval *tv,
AvahiTimeoutCallback callback, void *userdata) noexcept AvahiTimeoutCallback callback, void *userdata) noexcept
{ {
const Poll &poll = *(const Poll *)api; const Poll &poll = *(const Poll *)api;

View File

@ -1,8 +1,8 @@
// SPDX-License-Identifier: GPL-2.0-or-later // SPDX-License-Identifier: BSD-2-Clause
// Copyright The Music Player Daemon Project // Copyright CM4all GmbH
// author: Max Kellermann <mk@cm4all.com>
#ifndef MPD_AVAHI_POLL_HXX #pragma once
#define MPD_AVAHI_POLL_HXX
#include <avahi-common/watch.h> #include <avahi-common/watch.h>
@ -36,5 +36,3 @@ private:
}; };
} // namespace Avahi } // namespace Avahi
#endif