]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Convert GPL license headers to SPDX format throughout codebase copilot/fix-33285fd9-fcc3-4a37-8183-eeb006b8359a 1938/head
authorChristian Hewitt <christianshewitt@gmail.com>
Sat, 4 Oct 2025 09:00:05 +0000 (09:00 +0000)
committerChristian Hewitt <christianshewitt@gmail.com>
Sat, 4 Oct 2025 09:08:57 +0000 (09:08 +0000)
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
390 files changed:
lib/py/tvh/htsmsg.py
lib/py/tvh/htsp.py
lib/py/tvh/log.py
lib/py/tvh/tv_meta_tmdb.py
lib/py/tvh/tv_meta_tvdb.py
src/access.c
src/access.h
src/api.c
src/api.h
src/api/api_access.c
src/api/api_bouquet.c
src/api/api_caclient.c
src/api/api_channel.c
src/api/api_codec.c
src/api/api_config.c
src/api/api_dvr.c
src/api/api_epg.c
src/api/api_epggrab.c
src/api/api_esfilter.c
src/api/api_idnode.c
src/api/api_imagecache.c
src/api/api_input.c
src/api/api_intlconv.c
src/api/api_language.c
src/api/api_mpegts.c
src/api/api_profile.c
src/api/api_ratinglabel.c
src/api/api_raw.c
src/api/api_satip.c
src/api/api_service.c
src/api/api_status.c
src/api/api_timeshift.c
src/api/api_wizard.c
src/atomic.h
src/avahi.c
src/bitops.h
src/bonjour.c
src/bouquet.c
src/bouquet.h
src/channels.c
src/channels.h
src/clock.h
src/compat.h
src/config.c
src/config.h
src/cron.c
src/cron.h
src/dbus.c
src/dbus.h
src/descrambler/algo/libaes128dec.c
src/descrambler/algo/libaesdec.c
src/descrambler/algo/libdesdec.c
src/descrambler/caclient.c
src/descrambler/caclient.h
src/descrambler/caid.c
src/descrambler/caid.h
src/descrambler/capmt.c
src/descrambler/cccam.c
src/descrambler/cclient.c
src/descrambler/cclient.h
src/descrambler/constcw.c
src/descrambler/cwc.c
src/descrambler/descrambler.c
src/descrambler/descrambler.h
src/descrambler/dvbcam.c
src/descrambler/dvbcam.h
src/descrambler/emm_reass.c
src/descrambler/emm_reass.h
src/descrambler/tsdebugcw.c
src/descrambler/tvhcsa.c
src/descrambler/tvhcsa.h
src/docs.h
src/download.c
src/download.h
src/dvr/dvr.h
src/dvr/dvr_autorec.c
src/dvr/dvr_config.c
src/dvr/dvr_cutpoints.c
src/dvr/dvr_db.c
src/dvr/dvr_inotify.c
src/dvr/dvr_rec.c
src/dvr/dvr_timerec.c
src/dvr/dvr_vfsmgr.c
src/epg.c
src/epg.h
src/epgdb.c
src/epggrab.c
src/epggrab.h
src/epggrab/channel.c
src/epggrab/module.c
src/epggrab/module/eit.c
src/epggrab/module/eitpatternlist.c
src/epggrab/module/eitpatternlist.h
src/epggrab/module/opentv.c
src/epggrab/module/psip.c
src/epggrab/module/xmltv.c
src/epggrab/otamux.c
src/epggrab/private.h
src/epggrab/support/freesat_huffman.c
src/esfilter.c
src/esfilter.h
src/esstream.c
src/esstream.h
src/extra/capmt_ca.c
src/file.c
src/file.h
src/filebundle.c
src/filebundle.h
src/fsmonitor.c
src/fsmonitor.h
src/hts_strtab.h
src/htsbuf.c
src/htsbuf.h
src/htsmsg.c
src/htsmsg.h
src/htsmsg_binary.c
src/htsmsg_binary.h
src/htsmsg_binary2.c
src/htsmsg_binary2.h
src/htsmsg_json.c
src/htsmsg_json.h
src/htsmsg_xml.c
src/htsmsg_xml.h
src/htsp_server.c
src/htsp_server.h
src/htsstr.c
src/http.c
src/http.h
src/httpc.c
src/huffman.c
src/huffman.h
src/idnode.c
src/idnode.h
src/imagecache.c
src/imagecache.h
src/input.c
src/input.h
src/input/mpegts.c
src/input/mpegts.h
src/input/mpegts/dvb.h
src/input/mpegts/dvb_charset.c
src/input/mpegts/dvb_charset.h
src/input/mpegts/dvb_psi.c
src/input/mpegts/dvb_psi_hbbtv.c
src/input/mpegts/dvb_psi_hbbtv.h
src/input/mpegts/dvb_psi_lib.c
src/input/mpegts/dvb_psi_pmt.c
src/input/mpegts/dvb_psi_pmt.h
src/input/mpegts/dvb_support.c
src/input/mpegts/en50221/en50221.c
src/input/mpegts/en50221/en50221.h
src/input/mpegts/en50221/en50221_apps.c
src/input/mpegts/en50221/en50221_capmt.c
src/input/mpegts/en50221/en50221_capmt.h
src/input/mpegts/fastscan.c
src/input/mpegts/fastscan.h
src/input/mpegts/iptv.h
src/input/mpegts/iptv/iptv.c
src/input/mpegts/iptv/iptv_auto.c
src/input/mpegts/iptv/iptv_file.c
src/input/mpegts/iptv/iptv_http.c
src/input/mpegts/iptv/iptv_libav.c
src/input/mpegts/iptv/iptv_mux.c
src/input/mpegts/iptv/iptv_pipe.c
src/input/mpegts/iptv/iptv_private.h
src/input/mpegts/iptv/iptv_rtcp.c
src/input/mpegts/iptv/iptv_rtcp.h
src/input/mpegts/iptv/iptv_rtsp.c
src/input/mpegts/iptv/iptv_service.c
src/input/mpegts/iptv/iptv_udp.c
src/input/mpegts/linuxdvb.h
src/input/mpegts/linuxdvb/linuxdvb.c
src/input/mpegts/linuxdvb/linuxdvb_adapter.c
src/input/mpegts/linuxdvb/linuxdvb_ca.c
src/input/mpegts/linuxdvb/linuxdvb_ddci.c
src/input/mpegts/linuxdvb/linuxdvb_en50494.c
src/input/mpegts/linuxdvb/linuxdvb_frontend.c
src/input/mpegts/linuxdvb/linuxdvb_lnb.c
src/input/mpegts/linuxdvb/linuxdvb_private.h
src/input/mpegts/linuxdvb/linuxdvb_rotor.c
src/input/mpegts/linuxdvb/linuxdvb_satconf.c
src/input/mpegts/linuxdvb/linuxdvb_switch.c
src/input/mpegts/mpegts_dvb.h
src/input/mpegts/mpegts_input.c
src/input/mpegts/mpegts_mux.c
src/input/mpegts/mpegts_mux_dvb.c
src/input/mpegts/mpegts_mux_sched.c
src/input/mpegts/mpegts_mux_sched.h
src/input/mpegts/mpegts_network.c
src/input/mpegts/mpegts_network_dvb.c
src/input/mpegts/mpegts_network_scan.c
src/input/mpegts/mpegts_network_scan.h
src/input/mpegts/mpegts_pid.c
src/input/mpegts/mpegts_service.c
src/input/mpegts/mpegts_table.c
src/input/mpegts/mpegts_tsdebug.c
src/input/mpegts/satip/satip.c
src/input/mpegts/satip/satip.h
src/input/mpegts/satip/satip_frontend.c
src/input/mpegts/satip/satip_private.h
src/input/mpegts/satip/satip_rtsp.c
src/input/mpegts/satip/satip_satconf.c
src/input/mpegts/scanfile.c
src/input/mpegts/scanfile.h
src/input/mpegts/tsdemux.c
src/input/mpegts/tsdemux.h
src/input/mpegts/tsfile.h
src/input/mpegts/tsfile/tsfile.c
src/input/mpegts/tsfile/tsfile_input.c
src/input/mpegts/tsfile/tsfile_mux.c
src/input/mpegts/tsfile/tsfile_private.h
src/input/mpegts/tvhdhomerun/tvhdhomerun.c
src/input/mpegts/tvhdhomerun/tvhdhomerun.h
src/input/mpegts/tvhdhomerun/tvhdhomerun_frontend.c
src/input/mpegts/tvhdhomerun/tvhdhomerun_private.h
src/intlconv.h
src/lang_codes.c
src/lang_codes.h
src/lang_str.c
src/lang_str.h
src/libav.c
src/libav.h
src/lock.c
src/lock.h
src/main.c
src/memoryinfo.c
src/memoryinfo.h
src/misc/dbl.c
src/misc/json.c
src/misc/m3u.c
src/muxer.c
src/muxer.h
src/muxer/ebml.c
src/muxer/muxer_audioes.c
src/muxer/muxer_audioes.h
src/muxer/muxer_libav.c
src/muxer/muxer_libav.h
src/muxer/muxer_mkv.c
src/muxer/muxer_mkv.h
src/muxer/muxer_pass.c
src/muxer/muxer_pass.h
src/notify.c
src/notify.h
src/packet.c
src/packet.h
src/parsers/bitstream.c
src/parsers/bitstream.h
src/parsers/message.c
src/parsers/parser_h264.c
src/parsers/parser_h264.h
src/parsers/parser_latm.c
src/parsers/parser_latm.h
src/parsers/parser_teletext.c
src/parsers/parser_teletext.h
src/parsers/parsers.c
src/parsers/parsers.h
src/plumbing/globalheaders.c
src/plumbing/globalheaders.h
src/plumbing/tsfix.c
src/plumbing/tsfix.h
src/profile.c
src/profile.h
src/prop.c
src/prop.h
src/proplib.c
src/ratinglabels.c
src/ratinglabels.h
src/redblack.h
src/rtsp.c
src/satip/rtp.c
src/satip/rtsp.c
src/satip/server.c
src/satip/server.h
src/sbuf.h
src/service.c
src/service.h
src/service_mapper.c
src/service_mapper.h
src/settings.c
src/settings.h
src/spawn.c
src/spawn.h
src/streaming.c
src/streaming.h
src/string_list.c
src/string_list.h
src/subscriptions.c
src/subscriptions.h
src/tcp.c
src/tcp.h
src/test.h
src/timeshift.c
src/timeshift.h
src/timeshift/private.h
src/timeshift/timeshift_filemgr.c
src/timeshift/timeshift_reader.c
src/timeshift/timeshift_writer.c
src/tprofile.c
src/tprofile.h
src/transcoding/codec.h
src/transcoding/codec/codec.c
src/transcoding/codec/codecs/aac.c
src/transcoding/codec/codecs/flac.c
src/transcoding/codec/codecs/libs/libfdk_aac.c
src/transcoding/codec/codecs/libs/libopus.c
src/transcoding/codec/codecs/libs/libtheora.c
src/transcoding/codec/codecs/libs/libvorbis.c
src/transcoding/codec/codecs/libs/libvpx.c
src/transcoding/codec/codecs/libs/libx26x.c
src/transcoding/codec/codecs/libs/nvenc.c
src/transcoding/codec/codecs/libs/omx.c
src/transcoding/codec/codecs/libs/vaapi.c
src/transcoding/codec/codecs/mp2.c
src/transcoding/codec/codecs/mpeg2video.c
src/transcoding/codec/codecs/vorbis.c
src/transcoding/codec/internals.h
src/transcoding/codec/module.c
src/transcoding/codec/profile.c
src/transcoding/codec/profile_audio_class.c
src/transcoding/codec/profile_class.c
src/transcoding/codec/profile_video_class.c
src/transcoding/codec/vainfo.c
src/transcoding/codec/vainfo.h
src/transcoding/memutils.c
src/transcoding/memutils.h
src/transcoding/transcode.h
src/transcoding/transcode/audio.c
src/transcoding/transcode/context.c
src/transcoding/transcode/helpers.c
src/transcoding/transcode/hwaccels/hwaccels.c
src/transcoding/transcode/hwaccels/hwaccels.h
src/transcoding/transcode/hwaccels/vaapi.c
src/transcoding/transcode/hwaccels/vaapi.h
src/transcoding/transcode/internals.h
src/transcoding/transcode/log.h
src/transcoding/transcode/module.c
src/transcoding/transcode/stream.c
src/transcoding/transcode/transcoder.c
src/transcoding/transcode/video.c
src/trap.c
src/trap.h
src/tvh_endian.h
src/tvh_locale.c
src/tvh_locale.h
src/tvh_string.h
src/tvh_thread.c
src/tvh_thread.h
src/tvheadend.h
src/tvhlog.c
src/tvhlog.h
src/tvhpoll.c
src/tvhpoll.h
src/tvhregex.h
src/tvhtime.c
src/tvhtime.h
src/tvhvfs.c
src/tvhvfs.h
src/udp.c
src/udp.h
src/udp_stream.c
src/udp_stream.h
src/upnp.c
src/upnp.h
src/url.c
src/url.h
src/utils.c
src/uuid.c
src/uuid.h
src/watchdog.c
src/watchdog.h
src/webui/comet.c
src/webui/doc_md.c
src/webui/extjs.c
src/webui/html.c
src/webui/simpleui.c
src/webui/statedump.c
src/webui/webui.c
src/webui/webui.h
src/webui/webui_api.c
src/webui/xmltv.c
src/wizard.c
src/wizard.h
src/wrappers.c
src/zlib.c
support/eitscrape_test.py
support/lib.sh
support/template/header.c
support/template/header.h
support/template/header.py
support/template/header.sh

index f74e6ef00bd3039be44912fa7965be9338564f96..bad79f5c1fcae2dd68377024bc17ea7531b1a33f 100644 (file)
@@ -1,19 +1,7 @@
 #!/usr/bin/env python
-#
+# SPDX-License-Identifier: GPL-3.0-or-later
 # Copyright (C) 2012 Adam Sutton <dev@adamsutton.me.uk>
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, version 3 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.
-#
+
 """
 Support for processing HTSMSG binary format
 """
index bab234beafc924a608e830d32cc4596152df0863..6d74ccdf7632a9afaeffe6b6b36dfcad0183d366 100644 (file)
@@ -1,19 +1,7 @@
 #!/usr/bin/env python
-#
+# SPDX-License-Identifier: GPL-3.0-or-later
 # Copyright (C) 2012 Adam Sutton <dev@adamsutton.me.uk>
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, version 3 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.
-#
+
 """
 This is a very simple HTSP client library written in python mainly just
 for demonstration purposes.
@@ -100,4 +88,3 @@ class HTSPClient(object):
 
     def disconnect(self):
         self._sock.close()
-
index 520fca206928b03f92fd4568e9efe0e6638345d9..57a5ec05ed52e24a5f0ba406ee4b311365d40fb7 100644 (file)
@@ -1,19 +1,7 @@
 #!/usr/bin/env python
-#
+# SPDX-License-Identifier: GPL-3.0-or-later
 # Copyright (C) 2012 Adam Sutton <dev@adamsutton.me.uk>
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, version 3 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.
-#
+
 """
 Some very basic logging routines
 """
@@ -64,4 +52,3 @@ def info(msg, **dargs):
 #
 def error(msg, **dargs):
     out('ERROR', msg, **dargs)
-
index c2657fc110999ff5bae1b20538120b41582b0436..2406fdc3dd16c49ba911d1ef7782f6bf851b5b5a 100755 (executable)
@@ -1,20 +1,8 @@
 #! /usr/bin/env python3
-# Retrieve details for a movie from tmdb.
+# SPDX-License-Identifier: GPL-3.0-or-later
 #
+# Retrieve details for a movie from tmdb.
 # This product uses the TMDb API but is not endorsed or certified by TMDb.
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program.  If not, see <https://www.gnu.org/licenses/>.
 
 import os,sys
 import json
index 9e9ccfadf570e85fb55f5d5719d2b16dedd1928a..b68619bb07452b84455e9d349574be53f00f5370 100755 (executable)
@@ -1,28 +1,13 @@
 #! /usr/bin/env python3
-# Retrieve details for a series from tvdb.
+# SPDX-License-Identifier: GPL-3.0-or-later
 #
+# Retrieve details for a series from tvdb.
 # Required options:
 # --tvdb-key XX
 # Option important options:
 # --tvdb-languages - a csv of 2-character languages to use such as en,nl
-#
 # TV information and images are provided by TheTVDB.com, but we are
 # not endorsed or certified by TheTVDB.com or its affiliates
-#
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program.  If not, see <https://www.gnu.org/licenses/>.
-
 import os,sys
 import json
 import logging
index 6015b14ee92c780f0bf02af6d3659513493eb933..7bd18e96de98587ad76b077440d5858663b4296e 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, access control
- *  Copyright (C) 2008 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, access control
  */
 
 #include "tvheadend.h"
index f85c7a3a798ace74b9af94ef011580a336cdad59..79a7a0139ec43f73da02a4181bb92161c96b5b4f 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  TV headend - Access control
- *  Copyright (C) 2008 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * TV headend - Access control
  */
 
 #ifndef ACCESS_H_
@@ -243,11 +232,13 @@ typedef struct access_ticket {
 /**
  * Create a new ticket for the requested resource and generate a id for it
  */
+
 const char* access_ticket_create(const char *resource, access_t *a);
 
 /**
  * Verifies that a given ticket id matches a resource
  */
+
 access_t *access_ticket_verify2(const char *id, const char *resource);
 
 int access_ticket_delete(const char *ticket_id);
@@ -255,27 +246,32 @@ int access_ticket_delete(const char *ticket_id);
 /**
  * Free the access structure
  */
+
 void access_destroy(access_t *a);
 
 /**
  * Copy the access structure
  */
+
 access_t *access_copy(access_t *src);
 
 /**
  * Compare the access structures
  */
+
 int access_compare(access_t *a, access_t *b);
 
 /**
  *
  */
+
 char *
 access_get_lang(access_t *a, const char *lang);
 
 /**
  *
  */
+
 const char *
 access_get_theme(access_t *a);
 
@@ -285,6 +281,7 @@ access_get_theme(access_t *a);
  *
  * Return 0 if access is granted, -1 otherwise
  */
+
 static inline int access_verify2(const access_t *a, uint32_t mask)
   { return a ? ((mask & ACCESS_OR) ?
       ((a->aa_rights & mask) ? 0 : -1) :
@@ -295,6 +292,7 @@ int access_verify_list(htsmsg_t *list, const char *item);
 /**
  * Get the access structure
  */
+
 typedef int (*verify_callback_t)(void *aux, const char *passwd);
 
 access_t *access_get(struct sockaddr_storage *src, const char *username,
@@ -303,36 +301,42 @@ access_t *access_get(struct sockaddr_storage *src, const char *username,
 /**
  *
  */
+
 access_t *
 access_get_by_username(const char *username);
 
 /**
  *
  */
+
 access_t *
 access_get_by_addr(struct sockaddr_storage *src);
 
 /**
  *
  */
+
 access_t *
 access_get_by_auth(struct sockaddr_storage *src, const char *id);
 
 /**
  *
  */
+
 access_entry_t *
 access_entry_create(const char *uuid, htsmsg_t *conf);
 
 /**
  *
  */
+
 void
 access_entry_destroy(access_entry_t *ae, int delconf);
 
 /**
  *
  */
+
 void
 access_destroy_by_profile(struct profile *pro, int delconf);
 void
@@ -343,6 +347,7 @@ access_destroy_by_channel_tag(struct channel_tag *ct, int delconf);
 /**
  *
  */
+
 passwd_entry_t *
 passwd_entry_create(const char *uuid, htsmsg_t *conf);
 void
@@ -351,18 +356,21 @@ passwd_entry_destroy(passwd_entry_t *ae, int delconf);
 /**
  *
  */
+
 ipblock_entry_t *
 ipblock_entry_create(const char *uuid, htsmsg_t *conf);
 
 /**
  *
  */
+
 void access_init(int createdefault, int noacl);
 void access_done(void);
 
 /**
  *
  */
+
 htsmsg_t *language_get_list ( void *obj, const char *lang );
 htsmsg_t *language_get_ui_list ( void *obj, const char *lang );
 htsmsg_t *theme_get_ui_list ( void *obj, const char *lang );
index 7e853aa952a095adb029701f017eff9caaa06f12..f978ffd15cbc62349735e7863c5648a75ab5cc81 100644 (file)
--- a/src/api.c
+++ b/src/api.c
@@ -1,20 +1,8 @@
 /*
- *  API - Common functions for control/query API
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * API - Common functions for control/query API
  */
 
 #include "tvheadend.h"
index 7a815b426f8752a7b21ddb005acc374f9e510049..30804931a5becf2ced41d17a20e3f196b38acf1c 100644 (file)
--- a/src/api.h
+++ b/src/api.h
@@ -1,20 +1,8 @@
 /*
- *  API - Common functions for control/query API
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * API - Common functions for control/query API
  */
 
 #ifndef __TVH_API_H__
index 24279b97bb3817018fd11d6c36e5058ad787db43..955c2c29828a496cf86c58fe4eaa17aaa03b71a2 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  API - access control
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  Copyright (C) 2014 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * API - access control
  */
 
 #include "tvheadend.h"
index cbf196b7314cba73131d0b8fc49fdafda9a6f09f..fd6694249de56a287d3636db6622bfff8ff3f906 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  API - bouquet calls
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  Copyright (C) 2014 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * API - bouquet calls
  */
 
 #ifndef __TVH_API_BOUQUET_H__
index ad24820d825ca1dc825759ecd6ab686a02db3fe7..a2ba50a4e6dbbf6e2d2399378f6bfb7477ba2a44 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  tvheadend - API access to Conditional Access Clients
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  Copyright (C) 2014 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - API access to Conditional Access Clients
  */
 
 #include "tvheadend.h"
@@ -26,6 +14,7 @@
 /*
  *
  */
+
 static int
 api_caclient_list
   ( access_t *perm, void *opaque, const char *op, htsmsg_t *args, htsmsg_t **resp )
@@ -98,6 +87,7 @@ api_caclient_create
 /*
  * Init
  */
+
 void
 api_caclient_init ( void )
 {
index b67051da4bfaafd383c966d667c19a1c2014479f..af37020b69f803a216a07886327eac704ed6565b 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  API - channel related calls
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * API - channel related calls
  */
 
 #ifndef __TVH_API_CHANNEL_H__
index 23cfbd47604142a14535c398bb39bf03497e6655..00e89e77733cd01232f4d33c2d43e83b0a5f2dab 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - API access to Codec Profiles
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - API access to Codec Profiles
  */
 
-
 #include "tvheadend.h"
 #include "access.h"
 #include "api.h"
index 7887eada474957cad381fa1559d3707cad532c6f..dedf8baf62eba30b2b823416ef55b02814bf009f 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  API - General configuration related calls
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2015 Jaroslav Kysela
  *
- *  Copyright (C) 2015 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; withm even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * API - General configuration related calls
  */
 
 #include "tvheadend.h"
index a390092582bb0b29fbbaa771e78a334dfab5f957..8f69985268bc06fcebc7c2737b823f1615132f24 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  API - DVR
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  Copyright (C) 2014 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * API - DVR
  */
 
 #include "tvheadend.h"
index 35718cc274182e27b1b1d2c862230945d9d0da41..8530b60b888bd32a4ca75f2c74e492436af6d7b5 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  API - EPG related calls
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; withm even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * API - EPG related calls
  */
 
 #include "tvheadend.h"
index 656c3bfc738fdaaa01c6761bac1dfc433b957ae1..963d356ca9ccc673700c3827812610eeae453843 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  API - epggrab related calls
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * API - epggrab related calls
  */
 
 #include "tvheadend.h"
index d612ec285567b4e54099a5891039b01521ee84d5..f1686d114c6b758fe268cca144b8f52dd7a61b65 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  API - elementary stream filter related calls
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  Copyright (C) 2014 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * API - elementary stream filter related calls
  */
 
 #include "tvheadend.h"
index 9096bfe9d82442a177a858369eaa8cf29e1da8f1..325dc1a879de89b96ade5c751c03f1cb86af81c1 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  API - idnode related API calls
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * API - idnode related API calls
  */
 
 #include "tvheadend.h"
index 35cda1e71992cc985165eb3e376ace6716fb4118..58b4314177942b84704ecf6b11fe62419670bc4a 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  API - Imagecache related calls
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; withm even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * API - Imagecache related calls
  */
 
 #include "tvheadend.h"
index 55896819d989a3a9b0913216b2f5d6fee054ecd8..2f9a23c594a6aab55993539201be923cb8ffcc68 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  API - channel related calls
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * API - channel related calls
  */
 
 #ifndef __TVH_API_INPUT_H__
index fc7b27f04e698d43fcbb386d0db6ed251e48892b..421608a9239e90dc6aff014834fe3a21f16a094c 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  API - international character conversions
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  Copyright (C) 2014 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * API - international character conversions
  */
 
 #ifndef __TVH_API_INTLCONV_H__
index 8377c5cd473d67744490722a2bd71e78e10d7770..e9e03aa82890d73817b39796fbedf7fcdb3cb432 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  API - international character conversions
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  Copyright (C) 2014 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * API - international character conversions
  */
 
 #ifndef __TVH_API_LANGUAGE_H__
index eacf07babdcc7858e3233cee6ef67bedcd33bcff..bf05ec42bce1a1b29c1426ac5e1785db08b1b577 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  tvheadend - API access to MPEGTS system
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - API access to MPEGTS system
  */
 
 #include "tvheadend.h"
@@ -29,6 +17,7 @@
 /*
  * Inputs
  */
+
 static int
 api_mpegts_input_network_list
   ( access_t *perm, void *opaque, const char *op, htsmsg_t *args, htsmsg_t **resp )
@@ -73,6 +62,7 @@ exit:
 /*
  * Networks
  */
+
 static void
 api_mpegts_network_grid
   ( access_t *perm, idnode_set_t *ins, api_idnode_grid_conf_t *conf, htsmsg_t *args )
@@ -228,6 +218,7 @@ exit:
 /*
  * Muxes
  */
+
 static void
 api_mpegts_mux_grid
   ( access_t *perm, idnode_set_t *ins, api_idnode_grid_conf_t *conf, htsmsg_t *args )
@@ -255,6 +246,7 @@ api_mpegts_mux_grid
 /*
  * Services
  */
+
 static void
 api_mpegts_service_grid
   ( access_t *perm, idnode_set_t *ins, api_idnode_grid_conf_t *conf, htsmsg_t *args )
@@ -287,6 +279,7 @@ api_mpegts_service_grid
 /*
  * Mux scheduler
  */
+
 static void
 api_mpegts_mux_sched_grid
   ( access_t *perm, idnode_set_t *ins, api_idnode_grid_conf_t *conf, htsmsg_t *args )
@@ -405,6 +398,7 @@ api_dvb_scanfile_list
 /*
  * Init
  */
+
 void
 api_mpegts_init ( void )
 {
index e07968d844d7bb931b4386170eae7018906202fa..97bfd5fb12ff50311e0faa59019d27c90a9739a2 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  tvheadend - API access to Stream Profile
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  Copyright (C) 2014 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - API access to Stream Profile
  */
 
 #include "tvheadend.h"
@@ -27,6 +15,7 @@
 /*
  *
  */
+
 static int
 api_profile_is_all(access_t *perm, htsmsg_t *args)
 {
@@ -53,6 +42,7 @@ api_profile_find(access_t *perm, const char *uuid)
 /*
  *
  */
+
 static int
 api_profile_list
   ( access_t *perm, void *opaque, const char *op, htsmsg_t *args, htsmsg_t **resp )
@@ -130,6 +120,7 @@ api_profile_create
 /*
  * Init
  */
+
 void
 api_profile_init ( void )
 {
index 58e673be5386a6aa123f0634aae637a9d999f1bb..b404177b4c66ac89d4515c5bc5c4e055e1b0f818 100644 (file)
@@ -1,21 +1,9 @@
 /*
- *  API - ratinglabel calls
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela (Original Bouquets)
+ * Copyright (C) 2023 DeltaMikeCharlie (Updated for Rating Labels)
  *
- *  Copyright (C) 2014 Jaroslav Kysela (Original Bouquets)
- *  Copyright (C) 2023 DeltaMikeCharlie (Updated for Rating Labels)
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * API - ratinglabel calls
  */
 
 #ifndef __TVH_API_RATINGLABEL_H__
index 75338d2e6dd9e89b944023ca246e25afed984394..04ebfd663c65d0ad63685e64bc5c2f52201c5fb0 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  API - idnode raw load/save related API calls
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2017 Jaroslav Kysela
  *
- *  Copyright (C) 2017 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * API - idnode raw load/save related API calls
  */
 
 #include "tvheadend.h"
index cc1d3fc72a36c5929e753f8c8fdfe2ac0ae4b462..f3425a4443362df3797d97d5944a4b1506a97b02 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  API - SAT>IP Server related calls
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2015 Jaroslav Kysela
  *
- *  Copyright (C) 2015 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; withm even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * API - SAT>IP Server related calls
  */
 
 #include "tvheadend.h"
index d74ba410eae8f47a2def2dcfd886b047deaa5684..d86191e2b96a43149529eec3b17f25a3a1091251 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  API - service related calls
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * API - service related calls
  */
 
 #ifndef __TVH_API_SERVICE_H__
index cd48e88ba6d0d7b2512b231ca98e6625ba9d4095..ad6917e194f6bb037998c22b86091328c862b044 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  API - service related calls
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * API - service related calls
  */
 
 #ifndef __TVH_API_SERVICE_H__
index c780eb776d65c83419fb875e9d28765081e6992a..2cb2c2d5741acd51fb12d1447f6c7e69d9b96625 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  API - Timeshift related calls
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2015 Jaroslav Kysela
  *
- *  Copyright (C) 2015 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; withm even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * API - Timeshift related calls
  */
 
 #include "tvheadend.h"
index bc80f446fbbdf82e76c7d1c1a5bd22f617bdd64c..1ee35384abd40a78cb87e99500aca901094e9428 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  API - Wizard interface
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2015 Jaroslav Kysela
  *
- *  Copyright (C) 2015 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; withm even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * API - Wizard interface
  */
 
 #include "tvheadend.h"
index 76e842d4a45dd10ecdcaed77b9155ca1fc293dd4..3213b487361feab278c788a99bc1cf6a78b54b81 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Atomic ops
- *  Copyright (C) 2008 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Atomic ops
  */
 
 #pragma once
index 8372c405d22eacb66b809217f239f034c49fc0bc..6175b086d808d4bda17825fb5d4ebc744adcf19d 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  AVAHI service publisher
- *  Copyright (C) 2009 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2009 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * AVAHI service publisher
  */
 
 /***
index 18827bae02cfc1198e609bb40b3f03cebba5529f..cdb46689d6efbc2e262f4b845d2cc69bf652c2f3 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Bit ops
- *  Copyright (C) 2008 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Bit ops
  */
 
 #pragma once
index ac710fda844a58da6358be4ca120a92c08f34483..e3376675a3557ad6edd64f6888fc01e44269bea2 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Bonjour service publisher
- *  Copyright (C) 2014 Damjan Marion
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Damjan Marion
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Bonjour service publisher
  */
 
 #include <stdio.h>
index 59d87f4491c5df1cdab120b55f960fb9dce74221..5af0c7aafd7c4366b2d1af774e9ccb75aedf51c9 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, bouquets
- *  Copyright (C) 2014 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, bouquets
  */
 
 #include "tvheadend.h"
index ceba6ec3d044f7dfd5e047a7018a33288dec66d3..16b5b9fc3adbc9e2ada2efc91747428cbb00502a 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  TV headend - Bouquets
- *  Copyright (C) 2014 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * TV headend - Bouquets
  */
 
 #ifndef BOUQUET_H_
index d06eacb23d265d6f849cce7eef2dd8b4d5b50450..c3a667f7caea992d633356d19f26762ad8bdbe65 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, channel functions
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, channel functions
  */
 
 #include <ctype.h>
index 268e2fa8176c3843a628fd0a5520adf35c076497..50061f0a3514470a042d5791db4b874d0482ad9f 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, channel functions
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, channel functions
  */
 
 #ifndef CHANNELS_H
index 2be967c333b8772649ecf38aeec802e805c6a805..45c260dd3d2617bc9f433550814267507c86b809 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Tvheadend - clock support
- *  Copyright (C) 2016 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - clock support
  */
 
 #ifndef TVHEADEND_CLOCK_H
index 24fac806212f08f64a0ed7add286f823866389ce..e6b1912218743c7c9f6fa8247c3b97c4fc33d847 100644 (file)
@@ -1,20 +1,10 @@
 /*
- *  Tvheadend - structures
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - structures
  */
+
 #ifndef TVH_COMPAT_H
 #define TVH_COMPAT_H
 
@@ -93,4 +83,3 @@
 #define        IPTOS_CLASS_DEFAULT     IPTOS_CLASS_CS0
 
 #endif /* COMPAT_IPTOS */
-
index d8000085b06e188b5b26b2b21fc2113c8c237f64..58b522cbce60345e68e0333353f5d8666e07de57 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  TV headend - General configuration settings
- *  Copyright (C) 2012 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * TV headend - General configuration settings
  */
 
 #include <ctype.h>
index cc3afc46a8cf721c9031c82057d8acaf8020cd4f..9af83513ee572d685e2e6e3b1641e87bb294bbfd 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  TV headend - General configuration settings
- *  Copyright (C) 2012 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * TV headend - General configuration settings
  */
 
 // TODO: expand this, possibly integrate command line
index b2484070fdf68e513b1425d1c929675d8c086b88..652cda8af431e3fa0ffa3dc4ab979d6842c4e765 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - cron routines
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Adam Sutton
  *
- *  Copyright (C) 2014 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - cron routines
  */
 
 #include "build.h"
@@ -33,6 +21,7 @@
 /*
  * Parse value
  */
+
 static int
 cron_parse_val ( const char *str, const char **key, int *v )
 {
@@ -55,6 +44,7 @@ cron_parse_val ( const char *str, const char **key, int *v )
 /*
  * Parse individual field in cron spec
  */
+
 static int
 cron_parse_field 
   ( const char **istr, uint64_t *field, uint64_t mask, int bits, int off,
@@ -106,6 +96,7 @@ cron_parse_field
 /*
  * Set value
  */
+
 int
 cron_set ( cron_t *c, const char *str )
 {
@@ -161,6 +152,7 @@ cron_set ( cron_t *c, const char *str )
 /*
  * Set value
  */
+
 cron_multi_t *
 cron_multi_set ( const char *str )
 {
@@ -198,6 +190,7 @@ cron_multi_set ( const char *str )
 /*
  * Check for leap year
  */
+
 static int
 is_leep_year ( int year )
 {
@@ -211,6 +204,7 @@ is_leep_year ( int year )
 /*
  * Check for days in month
  */
+
 static int
 days_in_month ( int year, int mon )
 {
@@ -225,6 +219,7 @@ days_in_month ( int year, int mon )
 /*
  * Find the next time (starting from now) that the cron should fire
  */
+
 int
 cron_next ( cron_t *c, const time_t now, time_t *ret )
 {
@@ -341,6 +336,7 @@ cron_next ( cron_t *c, const time_t now, time_t *ret )
 /*
  * Find the next time (starting from now) that the cron should fire
  */
+
 int
 cron_multi_next ( cron_multi_t *cm, const time_t now, time_t *ret )
 {
@@ -364,6 +360,7 @@ cron_multi_next ( cron_multi_t *cm, const time_t now, time_t *ret )
  *
  *   gcc -g -DCRON_TEST -I./build.linux src/cron.c
  */
+
 #ifdef CRON_TEST
 static
 void print_bits ( uint64_t b, int n )
index 81a8cd05100363a1a0e66c281b034e1771babfa1..87aca2ce6235c709e5084e32adffd44865567eb6 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - cron routines
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Adam Sutton
  *
- *  Copyright (C) 2014 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - cron routines
  */
 
 #ifndef __TVH_CRON_H__
index 2f752ba7004d80470a706e7fe7d36cd3660fcb5e..a864655582e0bef42b17d03ff733212340ce173f 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  DBUS interface
- *  Copyright (C) 2014 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * DBUS interface
  */
 
 #include <time.h>
index 2acd6c28252adc971026395559d92b509b268f5b..f641c2a78a1fea780b853e06be7e2fe53b32b16b 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, UPnP interface
- *  Copyright (C) 2014 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, UPnP interface
  */
 
 #ifndef DBUS_H_
index 5e5088d61baccd5c2397db889cb33dc083f5966b..c3ac4f215246c5c8528ba665b561705e0b89139c 100644 (file)
@@ -15,6 +15,7 @@
 #include "libaes128dec.h"
 
 /* key structure */
+
 typedef struct aes128_priv {
   AES_KEY keys[2]; /* 0 = even, 1 = odd */
 } aes128_priv_t;
index 81374cb15b8b10f20382fe6180543d0b1bf0001f..49c1d3ba5049ad50f66cc6fe6e3bf0b046d8382c 100644 (file)
@@ -14,6 +14,7 @@
 #include "libaesdec.h"
 
 /* key structure */
+
 typedef struct aes_priv {
   AES_KEY keys[2]; /* 0 = even, 1 = odd */
 } aes_priv_t;
index 74880d60752709a98cdffec475a727ab6957645f..484ffd8683b25ace19cd1302e02d767d99d4f038 100644 (file)
@@ -12,6 +12,7 @@
 #include "libdesdec.h"
 
 /* key structure */
+
 typedef struct des_priv {
   DES_key_schedule sched[2]; /* 0 = even, 1 = odd */
 } des_priv_t;
index 945206224f303b9bb8ba5c616bcd58fde4ecb3ac..9e6214d942d8771e6ccb333d5068739d201bd05a 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Tvheadend - conditional access key client superclass
- *  Copyright (C) 2014 Jaroslav Kysela <perex@perex.cz>
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela <perex@perex.cz>
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - conditional access key client superclass
  */
 
 #include "tvheadend.h"
@@ -411,6 +400,7 @@ caclient_foreach(void (*cb)(caclient_t *))
 /*
  *  Initialize
  */
+
 void
 caclient_init(void)
 {
index 397c86ac199ad68aa6b7d2dd1fc3f4929d43aa59..186da6d77c632a98088356770098d2ce830e5c83 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, Conditional Access Client
- *  Copyright (C) 2014 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, Conditional Access Client
  */
 
 #ifndef __TVH_CACLIENT_H__
index fef27e9f1dc9386ec7416ce180946a035d385e05..1956ff8a40c21647b50097b269abf31e60507968 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Tvheadend
- *  Copyright (C) 2015 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2015 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend
  */
 
 #include "tvheadend.h"
@@ -122,6 +111,7 @@ name2caid(const char *s)
  *
  * based on the equivalent in sasc-ng
  */
+
 card_type_t
 detect_card_type(const uint16_t caid)
 {
index 726999d74a781cee31d2da93128da51412ab74f1..e1af6daa4f98a544c8b81becdcb08af0843c5f84 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Tvheadend
- *  Copyright (C) 2015 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2015 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend
  */
 
 #ifndef __TVH_CAID_H__
@@ -22,6 +11,7 @@
 /**
  * cards for which emm updates are handled
  */
+
 typedef enum {
   CARD_IRDETO,
   CARD_DRE,
index f37a0c22ab9a4d360d2212188cfe19d5375e228d..320f6a2578cb045f6d328907d82befd7f6ab2529 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, CAPMT Server
- *  Copyright (C) 2009
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2009
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, CAPMT Server
  */
 
 #include <netinet/in.h>
index f9a3230ed1ebd33ecb124ff84c372697de48cf73..5b557823b00a286daf93da0dab3a5bc65829a96d 100644 (file)
@@ -1,20 +1,9 @@
 /*
- *  tvheadend, CCCAM interface
- *  Copyright (C) 2007 Andreas Ã–man
- *  Copyright (C) 2017 Luis Alves
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
+ * Copyright (C) 2017 Luis Alves
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, CCCAM interface
  */
 
 #include <ctype.h>
@@ -26,6 +15,7 @@
 /**
  *
  */
+
 #define CCCAM_KEEPALIVE_INTERVAL  0
 #define CCCAM_NETMSGSIZE          1024
 
@@ -81,6 +71,7 @@ static const char *cccam_build_str[CCCAM_VERSION_COUNT] = {
 /**
  *
  */
+
 struct cccam_crypt_block {
   uint8_t keytable[256];
   uint8_t state;
@@ -91,6 +82,7 @@ struct cccam_crypt_block {
 /**
  *
  */
+
 typedef struct cccam {
   cclient_t;
 
@@ -119,6 +111,7 @@ static void cccam_send_oscam_extended(cccam_t *cccam);
 /**
  *
  */
+
 static inline const char *cccam_get_version_str(cccam_t *cccam)
 {
   int ver = MINMAX(cccam->cccam_version, 0, ARRAY_SIZE(cccam_version_str) - 1);
@@ -128,6 +121,7 @@ static inline const char *cccam_get_version_str(cccam_t *cccam)
 /**
  *
  */
+
 static inline const char *cccam_get_build_str(cccam_t *cccam)
 {
   int ver = MINMAX(cccam->cccam_version, 0, ARRAY_SIZE(cccam_version_str) - 1);
@@ -137,6 +131,7 @@ static inline const char *cccam_get_build_str(cccam_t *cccam)
 /**
  *
  */
+
 static inline int cccam_set_busy(cccam_t *cccam)
 {
   if (cccam->cccam_extended)
@@ -150,6 +145,7 @@ static inline int cccam_set_busy(cccam_t *cccam)
 /**
  *
  */
+
 static inline void cccam_unset_busy(cccam_t *cccam)
 {
   cccam->cccam_busy = 0;
@@ -158,6 +154,7 @@ static inline void cccam_unset_busy(cccam_t *cccam)
 /**
  *
  */
+
 static inline void
 uint8_swap(uint8_t *p1, uint8_t *p2)
 {
@@ -167,6 +164,7 @@ uint8_swap(uint8_t *p1, uint8_t *p2)
 /**
  *
  */
+
 static void
 cccam_crypt_xor(uint8_t *buf)
 {
@@ -182,6 +180,7 @@ cccam_crypt_xor(uint8_t *buf)
 /**
  *
  */
+
 static void
 cccam_crypt_init(struct cccam_crypt_block *block, uint8_t *key, int32_t len)
 {
@@ -203,6 +202,7 @@ cccam_crypt_init(struct cccam_crypt_block *block, uint8_t *key, int32_t len)
 /**
  *
  */
+
 static void
 cccam_decrypt(struct cccam_crypt_block *block, uint8_t *data, int32_t len)
 {
@@ -224,6 +224,7 @@ cccam_decrypt(struct cccam_crypt_block *block, uint8_t *data, int32_t len)
 /**
  *
  */
+
 static void
 cccam_encrypt(struct cccam_crypt_block *block, uint8_t *data, int32_t len)
 {
@@ -257,6 +258,7 @@ cccam_decrypt_cw(uint8_t *nodeid, uint32_t card_id, uint8_t *cws)
 /**
  *
  */
+
 static int
 cccam_oscam_check(cccam_t *cccam, uint8_t *buf)
 {
@@ -278,6 +280,7 @@ cccam_oscam_check(cccam_t *cccam, uint8_t *buf)
 /**
  *
  */
+
 static int
 cccam_oscam_nodeid_check(cccam_t *cccam, uint8_t *buf)
 {
@@ -299,6 +302,7 @@ cccam_oscam_nodeid_check(cccam_t *cccam, uint8_t *buf)
 /**
  *
  */
+
 static inline uint8_t *
 cccam_set_ua(uint8_t *dst, uint8_t *src)
 {
@@ -309,6 +313,7 @@ cccam_set_ua(uint8_t *dst, uint8_t *src)
 /**
  *
  */
+
 static inline uint8_t *
 cccam_set_sa(uint8_t *dst, uint8_t *src)
 {
@@ -318,6 +323,7 @@ cccam_set_sa(uint8_t *dst, uint8_t *src)
 /**
  * Handle reply to card data request
  */
+
 static int
 cccam_decode_card_data_reply(cccam_t *cccam, uint8_t *msg)
 {
@@ -361,6 +367,7 @@ cccam_decode_card_data_reply(cccam_t *cccam, uint8_t *msg)
 /**
  *
  */
+
 static void
 cccam_handle_keys(cccam_t *cccam, cc_service_t *ct, cc_ecm_section_t *es,
                   uint8_t *buf, int len, int seq)
@@ -388,6 +395,7 @@ cccam_handle_keys(cccam_t *cccam, cc_service_t *ct, cc_ecm_section_t *es,
 /**
  *
  */
+
 static void
 cccam_handle_partner(cccam_t *cccam, uint8_t *msg)
 {
@@ -415,6 +423,7 @@ cccam_handle_partner(cccam_t *cccam, uint8_t *msg)
  * Handle running reply
  * cc_mutex is held
  */
+
 static int
 cccam_running_reply(cccam_t *cccam, uint8_t *buf, int len)
 {
@@ -468,6 +477,7 @@ cccam_running_reply(cccam_t *cccam, uint8_t *buf, int len)
       break;
     //case MSG_CMD_05:      /* ? */
     case MSG_ECM_REQUEST: { /* request reply */
+
 req:
       seq = cccam->cccam_extended ? buf[0] : 1;
       es = cc_find_pending_section((cclient_t *)cccam, seq, &ct);
@@ -504,6 +514,7 @@ req:
 /**
  *
  */
+
 static int
 cccam_read_message0(cccam_t *cccam, const char *state, sbuf_t *rbuf, int timeout)
 {
@@ -530,6 +541,7 @@ cccam_read_message0(cccam_t *cccam, const char *state, sbuf_t *rbuf, int timeout
 /**
  *
  */
+
 static int
 cccam_send_msg(cccam_t *cccam, cccam_msg_type_t cmd,
                uint8_t *buf, size_t len, int enq,
@@ -568,6 +580,7 @@ cccam_send_msg(cccam_t *cccam, cccam_msg_type_t cmd,
 /**
  * Send keep alive
  */
+
 static void
 cccam_send_ka(void *cc)
 {
@@ -586,6 +599,7 @@ cccam_send_ka(void *cc)
 /**
  * Send keep alive
  */
+
 static void
 cccam_send_oscam_extended(cccam_t *cccam)
 {
@@ -600,6 +614,7 @@ cccam_send_oscam_extended(cccam_t *cccam)
 /**
  *
  */
+
 static void
 sha1_make_login_key(cccam_t *cccam, uint8_t *buf)
 {
@@ -628,6 +643,7 @@ sha1_make_login_key(cccam_t *cccam, uint8_t *buf)
 /**
  * Login command
  */
+
 static int
 cccam_send_login(cccam_t *cccam)
 {
@@ -675,6 +691,7 @@ cccam_send_login(cccam_t *cccam)
 /**
  *
  */
+
 static void
 cccam_send_cli_data(cccam_t *cccam)
 {
@@ -693,6 +710,7 @@ cccam_send_cli_data(cccam_t *cccam)
 /**
  *
  */
+
 static void
 cccam_oscam_update_idnode(cccam_t *cccam)
 {
@@ -715,6 +733,7 @@ cccam_oscam_update_idnode(cccam_t *cccam)
 /**
  *
  */
+
 static int
 cccam_init_session(void *cc)
 {
@@ -755,6 +774,7 @@ cccam_init_session(void *cc)
 /**
  *
  */
+
 static int
 cccam_send_ecm(void *cc, cc_service_t *ct, cc_ecm_section_t *es,
                cc_card_data_t *pcard, const uint8_t *msg, int len)
@@ -807,6 +827,7 @@ cccam_send_ecm(void *cc, cc_service_t *ct, cc_ecm_section_t *es,
 /**
  *
  */
+
 static void
 cccam_send_emm(void *cc, cc_service_t *ct, cc_card_data_t *pcard,
                uint32_t provid, const uint8_t *msg, int len)
@@ -856,6 +877,7 @@ cccam_send_emm(void *cc, cc_service_t *ct, cc_card_data_t *pcard,
 /**
  *
  */
+
 static int
 cccam_read(void *cc, sbuf_t *rbuf)
 {
@@ -882,6 +904,7 @@ cccam_read(void *cc, sbuf_t *rbuf)
 /**
  *
  */
+
 static void
 cccam_no_services(void *cc)
 {
@@ -891,6 +914,7 @@ cccam_no_services(void *cc)
 /**
  *
  */
+
 static void
 cccam_conf_changed(caclient_t *cac)
 {
@@ -907,6 +931,7 @@ cccam_conf_changed(caclient_t *cac)
 /**
  *
  */
+
 static int
 nibble(char c)
 {
@@ -925,6 +950,7 @@ nibble(char c)
 /**
  *
  */
+
 static int
 caclient_cccam_nodeid_set(void *o, const void *v)
 {
@@ -1047,6 +1073,7 @@ const idclass_t caclient_cccam_class =
 /*
  *
  */
+
 caclient_t *cccam_create(void)
 {
   cccam_t *cccam = calloc(1, sizeof(*cccam));
index 9f2e7c321b36b6955f7475f67957f71b2ae55c9b..930f37535e1a9233662d83d7aca2d0cf1c7b3f49 100644 (file)
@@ -1,20 +1,9 @@
 /*
- *  tvheadend, card client interface
- *  Copyright (C) 2007 Andreas Ã–man
- *            (C) 2017 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
+ * Copyright (C) 2017 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, card client interface
  */
 
 #include <fcntl.h>
index 7e3c276328a6137b57f8f0bfb7b0059782da85fd..12eaebed7dcf7b5190b10a50e78318be0aecc336 100644 (file)
@@ -1,20 +1,9 @@
 /*
- *  tvheadend, network card client
- *  Copyright (C) 2007 Andreas Ã–man
- *            (C) 2017 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
+ * Copyright (C) 2017 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, network card client
  */
 
 #include "tvheadend.h"
 /**
  *
  */
+
 #define CC_KEEPALIVE_INTERVAL 30
 #define CC_MAX_NOKS           3
 
 /**
  *
  */
+
 typedef struct cc_ecm_section {
   LIST_ENTRY(cc_ecm_section) es_link;
 
@@ -62,6 +53,7 @@ typedef struct cc_ecm_section {
 /**
  *
  */
+
 typedef struct cc_ecm_pid {
   LIST_ENTRY(cc_ecm_pid) ep_link;
 
@@ -74,6 +66,7 @@ typedef struct cc_ecm_pid {
 /**
  *
  */
+
 typedef struct cc_service {
   th_descrambler_t;
 
@@ -102,6 +95,7 @@ typedef struct cc_service {
 /**
  *
  */
+
 typedef struct cc_message {
   TAILQ_ENTRY(cc_message) cm_link;
   uint32_t cm_len;
@@ -111,6 +105,7 @@ typedef struct cc_message {
 /**
  *
  */
+
 typedef struct cc_card_data {
   LIST_ENTRY(cc_card_data) cs_card;
   uint32_t      cs_id;
@@ -130,6 +125,7 @@ typedef struct cc_card_data {
 /**
  *
  */
+
 typedef struct cclient {
   caclient_t;
 
@@ -190,6 +186,7 @@ typedef struct cclient {
 /*
  *
  */
+
 static inline int cc_must_break(cclient_t *cc)
  { return !cc->cc_running || !cc->cac_enabled || cc->cc_reconfigure; }
 
index c84b36a748575985fa7a02969a4b5f0ab7e2e875..a544d9c88504310aa0b5c4c4b2334d2d09c5b4bd 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, constant code word interface
- *  Copyright (C) 2014 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, constant code word interface
  */
 
 #include <ctype.h>
@@ -25,6 +14,7 @@
 /**
  *
  */
+
 typedef struct constcw_service {
   th_descrambler_t;  
   LIST_ENTRY(constcw_service) cs_link;
@@ -33,6 +23,7 @@ typedef struct constcw_service {
 /**
  *
  */
+
 typedef struct constcw {
   caclient_t;
 
@@ -46,11 +37,13 @@ typedef struct constcw {
   uint8_t  ccw_key_even[16];   /* DES or AES key */
   uint8_t  ccw_key_odd [16];   /* DES or AES key */
   LIST_HEAD(, constcw_service) ccw_services; /* active services */
+
 } constcw_t;
 
 /*
  *
  */
+
 static const char *
 constcw_name(constcw_t *ccw)
 {
@@ -61,6 +54,7 @@ constcw_name(constcw_t *ccw)
 /**
  *
  */
+
 static int
 constcw_algo(caclient_t *cac)
 {
@@ -78,6 +72,7 @@ constcw_algo(caclient_t *cac)
 /**
  *
  */
+
 static int
 constcw_key_size(caclient_t *cac)
 {
@@ -91,6 +86,7 @@ constcw_key_size(caclient_t *cac)
 /*
  *
  */
+
 static int
 constcw_ecm_reset(th_descrambler_t *th)
 {
@@ -100,6 +96,7 @@ constcw_ecm_reset(th_descrambler_t *th)
 /**
  * s_stream_mutex is held
  */
+
 static void 
 constcw_service_destroy(th_descrambler_t *td)
 {
@@ -114,6 +111,7 @@ constcw_service_destroy(th_descrambler_t *td)
 /**
  * global_lock is held. Not that we care about that, but either way, it is.
  */
+
 static void
 constcw_service_start(caclient_t *cac, service_t *t)
 {
@@ -179,6 +177,7 @@ constcw_service_start(caclient_t *cac, service_t *t)
 /**
  *
  */
+
 static void
 constcw_free(caclient_t *cac)
 {
@@ -196,6 +195,7 @@ constcw_free(caclient_t *cac)
 /**
  *
  */
+
 static int
 nibble(char c)
 {
@@ -214,6 +214,7 @@ nibble(char c)
 /**
  *
  */
+
 static void
 constcw_conf_changed(caclient_t *cac)
 {
@@ -227,6 +228,7 @@ constcw_conf_changed(caclient_t *cac)
 /**
  *
  */
+
 static int
 constcw_class_key_set(void *o, const void *v, uint8_t *dkey)
 {
@@ -606,6 +608,7 @@ const idclass_t caclient_ccw_aes128_ecb_class =
 /*
  *
  */
+
 caclient_t *constcw_create(void)
 {
   constcw_t *ccw = calloc(1, sizeof(*ccw));
index 4f89a5eaa1796f2bb1c94e1ec1d356e1baac6deb..6513feaa401e1149a666f0c7410d83c37246b23a 100644 (file)
@@ -1,20 +1,9 @@
 /*
- *  tvheadend, CWC interface
- *  Copyright (C) 2007 Andreas Ã–man
- *            (C) 2017 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
+ * Copyright (C) 2017 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, CWC interface
  */
 
 #include <ctype.h>
index df7be5826ab6d36c0d8fc27d2fd572573d0e1b2d..da6c86d28cf6b3e1b3cec12435e042750d3259dd 100644 (file)
@@ -1,21 +1,9 @@
 /*
- *  Tvheadend
- *  Copyright (C) 2013 Andreas Ã–man
- *  Copyright (C) 2014,2015,2016,2017 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Andreas Ã–man
+ * Copyright (C) 2014,2015,2016,2017 Jaroslav Kysela
  *
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend
  */
 
 #include "tvheadend.h"
@@ -70,6 +58,7 @@ static int ca_hints_quickecm;
 /*
  *
  */
+
 static inline int extractpid(const uint8_t *tsb)
 {
   return (tsb[1] & 0x1f) << 8 | tsb[2];
@@ -88,6 +77,7 @@ static inline const char *keystr(const uint8_t *tsb)
 /*
  *
  */
+
 static void
 descrambler_data_destroy(th_descrambler_runtime_t *dr, th_descrambler_data_t *dd, int skip)
 {
@@ -232,6 +222,7 @@ descrambler_data_analyze(th_descrambler_runtime_t *dr,
 /*
  *
  */
+
 static void
 descrambler_destroy_ecmsec(descrambler_ecmsec_t *des)
 {
@@ -278,6 +269,7 @@ descrambler_destroy_table( descrambler_table_t *dt, int emm )
 /*
  *
  */
+
 static struct strtab ecmparitytab[] = {
   { "default",  ECM_PARITY_DEFAULT },
   { "standard", ECM_PARITY_80EVEN_81ODD },
@@ -287,6 +279,7 @@ static struct strtab ecmparitytab[] = {
 /*
  *
  */
+
 static void
 descrambler_load_hints(htsmsg_t *m)
 {
@@ -328,6 +321,7 @@ descrambler_load_hints(htsmsg_t *m)
 /*
  *
  */
+
 void
 descrambler_init ( void )
 {
@@ -361,6 +355,7 @@ descrambler_done ( void )
 /*
  * Decide, if we should work in "quick ECM" mode
  */
+
 static int
 descrambler_quick_ecm ( mpegts_service_t *t, int pid )
 {
@@ -389,6 +384,7 @@ descrambler_quick_ecm ( mpegts_service_t *t, int pid )
  * a) start a new service
  * b) restart a running service with possible caid changes
  */
+
 void
 descrambler_service_start ( service_t *t )
 {
@@ -538,6 +534,7 @@ descrambler_notify_deliver( mpegts_service_t *t, descramble_info_t *di )
 }
 
 /* it's called inside s_stream_mutex lock! */
+
 static void
 descrambler_notify_nokey( th_descrambler_runtime_t *dr )
 {
index ac5ff312c962c92d716b1a4a062ccd390f4cd533..6578d56d10484d0d3712f8111dcbf92b3e09b1fb 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Tvheadend
- *  Copyright (C) 2013 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend
  */
 
 #ifndef __TVH_DESCRAMBLER_H__
index 3fefecf1219f8e7b5aeeebdfea75d25c1333c328..a63f1519c708957ccb3571394a5576350ecc8d58 100644 (file)
@@ -1,20 +1,9 @@
 /*
- *  tvheadend, DVB CAM interface
- *  Copyright (C) 2014 Damjan Marion
- *  Copyright (C) 2017 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Damjan Marion
+ * Copyright (C) 2017 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, DVB CAM interface
  */
 
 #include <ctype.h>
index 09107338eb0bf86553c409fa52076377ba242373..20b2ec29c9c9364a962d70ddce6567f0e9fdcf16 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend - CSA wrapper
- *  Copyright (C) 2013 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - CSA wrapper
  */
 
 #ifndef __DVBCAM_H__
index 34a716b981682e4564b33626cb81d1ab341a66d9..948ce3d8363d23c03ee4d6d1cd60c381f0f063a7 100644 (file)
@@ -1,20 +1,9 @@
 /*
- *  tvheadend, EMM reassembly functions
- *  Copyright (C) 2007 Andreas Ã–man
- *  Copyright (C) 2015 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
+ * Copyright (C) 2015 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, EMM reassembly functions
  */
 
 #include "emm_reass.h"
index 5a5e92a300a5fd79764de55ce15cae4b0abe0b5a..f1d48faedd2031544727d93bb0f9d90dbfbff1e8 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, EMM reassemble functions
- *  Copyright (C) 2015 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2015 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, EMM reassemble functions
  */
 
 #ifndef __TVH_EMM_REASS_H__
index 679c4e3c74be526d88fc3d9df1c1a4430143c78e..69ec71afa55b5fd1ba8d9c96cec33d435116c458 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, tsdebug code word interface
- *  Copyright (C) 2014 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, tsdebug code word interface
  */
 
 #include <ctype.h>
index 2c75f89693635de0f3695e8b94a7e41a707e464f..e6f90bf4813474c2965978e321592beba03608c9 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend - CSA wrapper
- *  Copyright (C) 2013 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - CSA wrapper
  */
 
 #include <stdio.h>
@@ -42,6 +31,7 @@ tvhcsa_empty_flush
   ( tvhcsa_t *csa, struct mpegts_service *s )
 {
   /* empty - no queue */
+
 }
 
 static void
index 17020f9fe22bda42cd5c2e2ff240b148742670c6..0fefffd5c3001236ae086e8dcdce3f1707efa569 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend - CSA wrapper
- *  Copyright (C) 2013 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - CSA wrapper
  */
 
 #ifndef __TVH_CSA_H__
index d9581878d7cc45d045db5b9202a89a9fef6daa16..bc38020f2ecea38e50dd26565726859091bf4a2c 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  TVheadend
- *  Copyright (C) 2016 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * TVheadend
  */
 
 #ifndef __TVH_DOCS_H__
@@ -27,4 +16,3 @@ struct tvh_doc_page {
 extern const struct tvh_doc_page tvh_doc_markdown_pages[];
 
 #endif /* __TVH_DOCS_H__ */
-
index 5f2b6a9589e095bf344505356a8f6120b6a393f4..b8e948ac4955f28facc7f1772c3c61bb473ccacc 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Download a file from storage or network
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2015 Jaroslav Kysela
  *
- *  Copyright (C) 2015 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Download a file from storage or network
  */
 
 #include "tvheadend.h"
@@ -28,6 +16,7 @@
 /*
  *
  */
+
 static int
 download_file(download_t *dn, const char *filename)
 {
@@ -78,6 +67,7 @@ download_file(download_t *dn, const char *filename)
 /*
  *
  */
+
 static void
 download_fetch_done(void *aux)
 {
@@ -92,6 +82,7 @@ download_fetch_done(void *aux)
 /*
  *
  */
+
 static int
 download_fetch_complete(http_client_t *hc)
 {
@@ -138,6 +129,7 @@ out:
 /*
  *
  */
+
 static void
 download_pipe_close(download_t *dn)
 {
@@ -154,6 +146,7 @@ download_pipe_close(download_t *dn)
 /*
  *
  */
+
 static void
 download_pipe_read(void *aux)
 {
@@ -199,6 +192,7 @@ failed:
 /*
  *
  */
+
 static int
 download_pipe(download_t *dn, const char *args)
 {
@@ -235,6 +229,7 @@ download_pipe(download_t *dn, const char *args)
 /*
  *
  */
+
 static void
 download_fetch(void *aux)
 {
@@ -297,6 +292,7 @@ done:
 /*
  *
  */
+
 void
 download_init( download_t *dn, int subsys )
 {
@@ -309,6 +305,7 @@ download_init( download_t *dn, int subsys )
 /*
  *
  */
+
 void
 download_start( download_t *dn, const char *url, void *aux )
 {
@@ -327,6 +324,7 @@ download_start( download_t *dn, const char *url, void *aux )
 /*
  *
  */
+
 void
 download_done( download_t *dn )
 {
index 9f1f1dd9cb67aa9e0e470cd06e19a89a30702bb3..530e9a1c4f780da8a5b276cd148ecc702f5c6e6a 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Download a file from storage or network
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2015 Jaroslav Kysela
  *
- *  Copyright (C) 2015 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Download a file from storage or network
  */
 
 #ifndef __DOWNLOAD__
index d3692ab6e46204cd6f59199b6cb9aa6df4392e02..f4f4d3e1a1a709019b708fd84a6bedb3246c6794 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Digital Video Recorder
- *  Copyright (C) 2008 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Digital Video Recorder
  */
 
 #ifndef DVR_H
index 9258e65efbc8ce0db881de07a845fa6b636f1924..8bcb184a3977c25c1306a494535947d197ccf869 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, Automatic recordings
- *  Copyright (C) 2010 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2010 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, Automatic recordings
  */
 
 #include <ctype.h>
index b2eb76828b2394a981ca3f367889a8c0d4e5bc9c..c9377844b9d8cde6bb117221502b6c4715890433 100644 (file)
@@ -1,20 +1,9 @@
 /*
- *  Digital Video Recorder
- *  Copyright (C) 2008 Andreas Ã–man
- *  Copyright (C) 2014,2015 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man
+ * Copyright (C) 2014,2015 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Digital Video Recorder
  */
 
 #define _GNU_SOURCE
index a6beed28ebf4070ec2c27a735f8098ad9c6fabcc..c96be007ad66f96db2f8037ca81673a22375bc84 100644 (file)
@@ -1,17 +1,7 @@
 /*
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * SPDX-License-Identifier: GPL-3.0-or-later
  */
+
 #include <string.h>
 
 #include "tvheadend.h"
index 74cb834e6fd9b97c0a2f48877b7d8ceaee6fe4fb..7064246b1e3881083445483fdfcb3e84f9df68de 100644 (file)
@@ -1,20 +1,9 @@
 /*
- *  Digital Video Recorder
- *  Copyright (C) 2008 Andreas Ã–man
- *  Copyright (C) 2014,2015 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man
+ * Copyright (C) 2014,2015 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Digital Video Recorder
  */
 
 #include <ctype.h>
index 77ae87caf8534cdaff0cf10016cd65600141b7a6..d92e28866aebd0819b6cb8e0750aea4dc84a8e0f 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Digital Video Recorder - inotify processing
- *  Copyright (C) 2012 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Digital Video Recorder - inotify processing
  */
 
 #include <sys/inotify.h>
@@ -26,6 +15,7 @@
 #include "htsp_server.h"
 
 /* inotify limits */
+
 #define EVENT_SIZE    (sizeof(struct inotify_event))
 #define EVENT_BUF_LEN (5 * EVENT_SIZE + NAME_MAX)
 #define EVENT_MASK    IN_DELETE    | IN_DELETE_SELF | \
@@ -61,6 +51,7 @@ static int _str_cmp ( void *a, void *b )
 /**
  * Initialise threads
  */
+
 pthread_t dvr_inotify_tid;
 
 void dvr_inotify_init ( void )
@@ -77,6 +68,7 @@ void dvr_inotify_init ( void )
 /**
  *
  */
+
 void dvr_inotify_done ( void )
 {
   int fd = atomic_exchange(&_inot_fd, -1);
@@ -89,6 +81,7 @@ void dvr_inotify_done ( void )
 /**
  *
  */
+
 static int dvr_inotify_exists ( dvr_inotify_entry_t *die, dvr_entry_t *de )
 {
   dvr_inotify_filename_t *dif;
@@ -102,6 +95,7 @@ static int dvr_inotify_exists ( dvr_inotify_entry_t *die, dvr_entry_t *de )
 /**
  * Add an entry for monitoring
  */
+
 static void dvr_inotify_add_one ( dvr_entry_t *de, htsmsg_t *m )
 {
   dvr_inotify_filename_t *dif;
@@ -168,6 +162,7 @@ void dvr_inotify_add ( dvr_entry_t *de )
 /*
  * Delete an entry from the monitor
  */
+
 void dvr_inotify_del ( dvr_entry_t *de )
 {
   dvr_inotify_filename_t *f = NULL, *f_next;
@@ -199,6 +194,7 @@ void dvr_inotify_del ( dvr_entry_t *de )
 /*
  * return count of registered entries (for debugging)
  */
+
 int dvr_inotify_count ( void )
 {
   dvr_inotify_filename_t *f;
@@ -214,6 +210,7 @@ int dvr_inotify_count ( void )
 /*
  * Find inotify entry
  */
+
 static dvr_inotify_entry_t *
 _dvr_inotify_find
   ( int fd )
@@ -228,6 +225,7 @@ _dvr_inotify_find
 /*
  * File moved
  */
+
 static void
 _dvr_inotify_moved
   ( int from_fd, const char *from, const char *to, int to_fd )
@@ -324,6 +322,7 @@ _dvr_inotify_moved
 /*
  * File deleted
  */
+
 static void
 _dvr_inotify_delete
   ( int fd, const char *path )
@@ -334,6 +333,7 @@ _dvr_inotify_delete
 /*
  * Directory moved
  */
+
 static void
 _dvr_inotify_moved_all
   ( int fd, const char *to )
@@ -356,6 +356,7 @@ _dvr_inotify_moved_all
 /*
  * Directory deleted
  */
+
 static void
 _dvr_inotify_delete_all
   ( int fd )
@@ -366,6 +367,7 @@ _dvr_inotify_delete_all
 /*
  * Process events
  */
+
 void* _dvr_inotify_thread ( void *p )
 {
   int fd, i, len;
@@ -452,4 +454,3 @@ void* _dvr_inotify_thread ( void *p )
 
   return NULL;
 }
-
index 680e1c36bee7fdcf53c08f7820a793614bbb92c7..9ac066d37f47bbbc995bb6197648114148ea0482 100644 (file)
@@ -1,20 +1,9 @@
 /*
- *  Digital Video Recorder
- *  Copyright (C) 2008 Andreas Ã–man
- *  Copyright (C) 2014,2015 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man
+ * Copyright (C) 2014,2015 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Digital Video Recorder
  */
 
 #include <sys/stat.h>
index 1016b550f65b7b8bd753865de9d0cb0bef5bb9ea..98ad82f5d04b22cf32732f6ef27d6a24e39c3779 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, Automatic time-based recording
- *  Copyright (C) 2014 Jaroslav Kysela <perex@perex.cz>
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela <perex@perex.cz>
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, Automatic time-based recording
  */
 
 #include <ctype.h>
index ed44f437a57ba168a107e8e1c34d878aa3c9e65f..77436ce92eee1794094511141ed01074430064c4 100644 (file)
@@ -1,20 +1,9 @@
 /*
- *  Digital Video Recorder - file system management
- *  Copyright (C) 2015 Jaroslav Kysela
- *  Copyright (C) 2015 Glenn Christiaensen
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2015 Jaroslav Kysela
+ * Copyright (C) 2015 Glenn Christiaensen
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Digital Video Recorder - file system management
  */
 
 #include <sys/stat.h>
@@ -43,6 +32,7 @@ static tasklet_t dvr_disk_space_tasklet;
 /*
  *
  */
+
 static dvr_vfs_t *
 dvr_vfs_find(dvr_vfs_t *old, tvh_fsid_t *id)
 {
@@ -81,6 +71,7 @@ dvr_vfs_find1(dvr_vfs_t *old, htsmsg_t *m)
 /*
  *
  */
+
 void
 dvr_vfs_refresh_entry(dvr_entry_t *de)
 {
@@ -128,6 +119,7 @@ rem:
 /*
  *
  */
+
 void
 dvr_vfs_remove_entry(dvr_entry_t *de)
 {
@@ -152,6 +144,7 @@ dvr_vfs_remove_entry(dvr_entry_t *de)
 /*
  *
  */
+
 int64_t
 dvr_vfs_update_filename(const char *filename, htsmsg_t *fdata)
 {
@@ -181,6 +174,7 @@ dvr_vfs_update_filename(const char *filename, htsmsg_t *fdata)
  * Only "Keep until space needed" recordings are deleted, starting with the oldest one
  * Return -1 on failure, -2 if disk stats unstable (no action taken), otherwise number of bytes cleaned
  */
+
 static int64_t
 dvr_disk_space_cleanup(dvr_config_t *cfg, int include_active)
 {
@@ -304,6 +298,7 @@ finish:
  * Check for each dvr config if the free disk size is below the dvr_cleanup_threshold
  * If so and we are using the dvr config ATM (active recording), we start the cleanup procedure
  */
+
 static void
 dvr_disk_space_check()
 {
@@ -383,6 +378,7 @@ checking:
 /**
  *
  */
+
 static void
 dvr_get_disk_space_update(const char *path, int locked)
 {
@@ -409,6 +405,7 @@ dvr_get_disk_space_update(const char *path, int locked)
 /**
  *
  */
+
 static void
 dvr_get_disk_space_tcb(void *opaque, int dearmed)
 {
@@ -449,6 +446,7 @@ dvr_get_disk_space_cb(void *aux)
  * Check the available disk space for a new recording.
  * If '0' (= error or below configured minimum), a new recording should not be started.
  */
+
 int
 dvr_vfs_rec_start_check(dvr_config_t *cfg)
 {
@@ -487,6 +485,7 @@ dvr_vfs_rec_start_check(dvr_config_t *cfg)
 /**
  *
  */
+
 void
 dvr_disk_space_boot(void)
 {
@@ -496,6 +495,7 @@ dvr_disk_space_boot(void)
 /**
  *
  */
+
 void
 dvr_disk_space_init(void)
 {
@@ -508,6 +508,7 @@ dvr_disk_space_init(void)
 /**
  *
  */
+
 void
 dvr_disk_space_done(void)
 {
@@ -526,6 +527,7 @@ dvr_disk_space_done(void)
 /**
  *
  */
+
 int
 dvr_get_disk_space(int64_t *bfree, int64_t *bused, int64_t *btotal)
 {
index c8f160233fa3909ba979ec2d13a09135314efea2..f9d1d9364ff1dd9f23174a3f97013e6a75e9f05f 100644 (file)
--- a/src/epg.c
+++ b/src/epg.c
@@ -1,19 +1,8 @@
 /*
- *  Electronic Program Guide - Common functions
- *  Copyright (C) 2012 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Electronic Program Guide - Common functions
  */
 
 #include <stdio.h>
index da595fd397034497fd020ba951d1d5aab0823935..16314b32ae150edfab73a4f9bf2d430210d63088 100644 (file)
--- a/src/epg.h
+++ b/src/epg.h
@@ -1,19 +1,8 @@
 /*
- *  Electronic Program Guide - Common functions
- *  Copyright (C) 2012 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Electronic Program Guide - Common functions
  */
 
 #ifndef EPG_H
index e8e21025f1b6794b3a29fe2343c093f191b47f78..5d0c878589ac2d434d8dd65126fbec35edb0f74b 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Electronic Program Guide - Database File functions
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Electronic Program Guide - Database File functions
  */
 
 #include <string.h>
index 2ce352f0495c8066f9b9279f03b913f6cb367fd8..f6ebdc5ca02f2df3b764004b7275510440249608 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Electronic Program Guide - Common functions
- *  Copyright (C) 2012 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Electronic Program Guide - Common functions
  */
 
 #include <errno.h>
index 590df45dfbb4e37ffbb41cf75b9a9afbe884967b..81d6e62f00ac2d11bd7bd0c398b589df2c848e21 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  EPG Grabber - common functions
- *  Copyright (C) 2012 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * EPG Grabber - common functions
  */
 
 #ifndef __EPGGRAB_H__
index 2bda67fd88e0791bc64a763f40b34ec632fb0776..1886d014a981e8036dcb8d899ff2409be16509da 100644 (file)
@@ -1,20 +1,9 @@
 /*
- *  EPG Grabber - channel functions
- *  Copyright (C) 2012 Adam Sutton
- *  Copyright (C) 2015 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
+ * Copyright (C) 2015 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * EPG Grabber - channel functions
  */
 
 #include "tvheadend.h"
index e47c29c34a18c637d07a878109243ef99a2ff5b1..fe36967fd38223e116853dc6cdfb223c23ab23ab 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  EPG Grabber - module functions
- *  Copyright (C) 2012 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * EPG Grabber - module functions
  */
 
 #include <signal.h>
index e6213bee1bd30a2bc2cddee73ad7354f76b64854..8a15c89c10b9a3eb88073e2a25806a957a9befdc 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Electronic Program Guide - eit grabber
- *  Copyright (C) 2012 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Electronic Program Guide - eit grabber
  */
 
 #include <string.h>
index 61176695bee95e7da87d0727a850b7a337370a23..8955eaa848f6f3ce292d9ec90c7d84011a317112 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Electronic Program Guide - Regular Expression Pattern Functions
- *  Copyright (C) 2012-2017 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012-2017 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Electronic Program Guide - Regular Expression Pattern Functions
  */
 
 #include <assert.h>
index 369206e953d94a7932957fd487e75337d7c1c1f0..bc6c18e55aeab7c56d60243fb8c5572fadbe67ad 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Electronic Program Guide - Regular Expression Pattern Functions
- *  Copyright (C) 2012-2017 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012-2017 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Electronic Program Guide - Regular Expression Pattern Functions
  */
 
 #ifndef __EITPATTERN_LIST__
@@ -35,17 +24,21 @@ TAILQ_HEAD(eit_pattern_list, eit_pattern);
 typedef struct eit_pattern_list eit_pattern_list_t;
 
 /* is list empty? */
+
 static inline int eit_pattern_list_empty ( eit_pattern_list_t *list )
   { return TAILQ_EMPTY(list); }
 
 /* Compile a regular expression pattern from a message */
+
 void eit_pattern_compile_list ( eit_pattern_list_t *list, htsmsg_t *l, int flags );
 /* Compile a regular expression pattern from a named message, applying message location conventions */
+
 void eit_pattern_compile_named_list ( eit_pattern_list_t *list, htsmsg_t *m, const char *key);
 /* Apply the compiled pattern to text. If it matches then return the
  * match in buf which is of size size_buf.
  * Return the buf or NULL if no match.
  */
+
 void *eit_pattern_apply_list(char *buf, size_t size_buf, const char *text, const char *lang, eit_pattern_list_t *l);
 void eit_pattern_free_list ( eit_pattern_list_t *l );
 #endif
index c76507d3a2110f246ff81bbaa1c7475a4356703a..74f348384b404d39b4d79cf6b45d6e7fca919b06 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Electronic Program Guide - opentv epg grabber
- *  Copyright (C) 2012 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Electronic Program Guide - opentv epg grabber
  */
 
 #include <string.h>
index a462c2fee375b074f5cf0ed68764f151d0003c6e..9eb898c4758860cf2724001eb5f3ad6180e165b0 100644 (file)
@@ -1,21 +1,8 @@
 /*
- *  Electronic Program Guide - psip grabber
- *  Copyright (C) 2012 Adam Sutton
- *                2014 Lauri Mylläri
- *                2015 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Electronic Program Guide - psip grabber
  */
 
 #include <string.h>
@@ -601,4 +588,3 @@ void psip_init ( void )
   epggrab_module_ota_create(NULL, "psip", LS_PSIP, NULL, "PSIP: ATSC Grabber",
                             1, NULL, &ops);
 }
-
index fe4b4e14e073d5a1c13272f4404c7f61bc80179f..3071080a31432d72d191781d8b3ea1cc41f0de05 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Electronic Program Guide - xmltv grabber
- *  Copyright (C) 2012 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Electronic Program Guide - xmltv grabber
  */
 
 #include <assert.h>
index 0a5dc9345de42110f0d2ad01bd5b0bc02d5bd2c4..bfc25e75e1a54e86c65a143defceb03d4628db47 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Electronic Program Guide - EPG grabber OTA functions
- *  Copyright (C) 2012 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Electronic Program Guide - EPG grabber OTA functions
  */
 
 #include "tvheadend.h"
index bc7aa53063c8155974239aee342ff98ca033d2bc..5fe78d0eee7242c7bf102dfbc57c3d95488f49dd 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  EPG Grabber - private routines
- *  Copyright (C) 2012 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * EPG Grabber - private routines
  */
 
 #ifndef __EPGGRAB_PRIVATE_H__
index 827a366025cf21aaed1672809c22b670e00982a8..7e45b704a7bd7529ab21b8fa6a2d164482a6a5db 100644 (file)
@@ -1,24 +1,7 @@
 /*
- * freesat_huffman.c
- *
- * Decode a Freesat huffman encoded buffer.
- * Once decoded the buffer can be used like a "standard" DVB buffer.
- *
- * Code originally authored for tv_grab_dvb_plus and subsequently modified
- * to integrate into tvheadend by Adam Sutton <dev@adamsutton.me.uk>
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-3.0-or-later
  *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * freesat_huffman.c
  */
 
 #include "tvheadend.h"
@@ -2192,6 +2175,7 @@ struct fsattab fsat_table_1[] = {
                /*    2                             */
                { 0x00000000,  1,   1}, /* 2025 '0x01' */
                { 0x80000000,  1,   1}  /* 2026 '0x01' */
+
 };
 
 unsigned fsat_index_1[] = {
@@ -2324,6 +2308,7 @@ unsigned fsat_index_1[] = {
                2023, /* 126 */
                2025, /* 127 */
                2027  /* 128 */
+
 };
 
 struct fsattab fsat_table_2[] = {
@@ -5615,6 +5600,7 @@ struct fsattab fsat_table_2[] = {
                /*    2                             */
                { 0x00000000,  1,   1}, /* 3158 '0x01' */
                { 0x80000000,  1,   1}  /* 3159 '0x01' */
+
 };
 
 unsigned fsat_index_2[] = {
@@ -5747,6 +5733,7 @@ unsigned fsat_index_2[] = {
                3156, /* 126 */
                3158, /* 127 */
                3160  /* 128 */
+
 };
 
 size_t freesat_huffman_decode
index f6584cdcc1f4296076ba142fd06c4943fb1f5406..b72a7b6edec9ee22f988209835b58e28dcd92626 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, Elementary Stream Filter
- *  Copyright (C) 2014 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, Elementary Stream Filter
  */
 
 #include "tvheadend.h"
index 82957e3e7c4bd179758d164aeaeb0af548741976..6e406914a3097e69777a5d83771d90e1ab794449 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, Elementary Stream Filter
- *  Copyright (C) 2014 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, Elementary Stream Filter
  */
 
 #ifndef __TVH_ESFILTER_H__
index 7f432da3697535b36815267e18941e7627904874..fdd4d1347971270c0de823de7a7b5465da9ef66f 100644 (file)
@@ -1,21 +1,8 @@
 /*
- *  Elementary streams
- *  Copyright (C) 2010 Andreas Ã–man
- *                2018 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2010 Andreas Ã–man
  *
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Elementary streams
  */
 
 #include "tvheadend.h"
@@ -27,6 +14,7 @@
 /**
  *
  */
+
 static void
 elementary_stream_make_nicename(elementary_stream_t *st, const char *nicename)
 {
@@ -47,6 +35,7 @@ elementary_stream_make_nicename(elementary_stream_t *st, const char *nicename)
 /**
  *
  */
+
 void elementary_set_init
   (elementary_set_t *set, int subsys, const char *nicename, service_t *t)
 {
@@ -62,6 +51,7 @@ void elementary_set_init
 /**
  *
  */
+
 void elementary_set_clean(elementary_set_t *set, service_t *t, int keep_nicename)
 {
   elementary_stream_t *st;
@@ -79,6 +69,7 @@ void elementary_set_clean(elementary_set_t *set, service_t *t, int keep_nicename
 /**
  *
  */
+
 void elementary_set_update_nicename(elementary_set_t *set, const char *nicename)
 {
   elementary_stream_t *st;
@@ -92,6 +83,7 @@ void elementary_set_update_nicename(elementary_set_t *set, const char *nicename)
 /**
  *
  */
+
 static void
 elementary_stream_init(elementary_stream_t *es)
 {
@@ -101,6 +93,7 @@ elementary_stream_init(elementary_stream_t *es)
 /**
  *
  */
+
 static void
 elementary_stream_clean(elementary_stream_t *es)
 {
@@ -110,6 +103,7 @@ elementary_stream_clean(elementary_stream_t *es)
 /**
  *
  */
+
 void
 elementary_set_clean_streams(elementary_set_t *set)
 {
@@ -122,6 +116,7 @@ elementary_set_clean_streams(elementary_set_t *set)
 /**
  *
  */
+
 void
 elementary_set_init_filter_streams(elementary_set_t *set)
 {
@@ -134,6 +129,7 @@ elementary_set_init_filter_streams(elementary_set_t *set)
 /**
  *
  */
+
 int
 elementary_set_has_streams(elementary_set_t *set, int filtered)
 {
@@ -144,6 +140,7 @@ elementary_set_has_streams(elementary_set_t *set, int filtered)
 /**
  *
  */
+
 void
 elementary_set_stream_destroy(elementary_set_t *set, elementary_stream_t *es)
 {
@@ -174,6 +171,7 @@ elementary_set_stream_destroy(elementary_set_t *set, elementary_stream_t *es)
 /**
  *
  */
+
 #define ESFM_USED   (1<<0)
 #define ESFM_IGNORE (1<<1)
 
@@ -194,6 +192,7 @@ elementary_set_filter_build_add
 /**
  *
  */
+
 static void
 elementary_set_filter_print
   (elementary_set_t *set)
@@ -223,6 +222,7 @@ elementary_set_filter_print
 /**
  *
  */
+
 void
 elementary_set_filter_build(elementary_set_t *set)
 {
@@ -448,6 +448,7 @@ ignore:
 /**
  * Add a new stream to a service
  */
+
 elementary_stream_t *
 elementary_stream_create_parent
   (elementary_set_t *set, int pid, int parent_pid, streaming_component_type_t type)
@@ -486,6 +487,7 @@ create:
 /**
  * Find an elementary stream in a service
  */
+
 elementary_stream_t *
 elementary_stream_find_(elementary_set_t *set, int pid)
 {
@@ -504,6 +506,7 @@ elementary_stream_find_(elementary_set_t *set, int pid)
 /**
  * Find an elementary stream in a service with specific parent pid
  */
+
 elementary_stream_t *
 elementary_stream_find_parent(elementary_set_t *set, int pid, int parent_pid)
 {
@@ -519,6 +522,7 @@ elementary_stream_find_parent(elementary_set_t *set, int pid, int parent_pid)
 /**
  * Find a first elementary stream in a service (by type)
  */
+
 elementary_stream_t *
 elementary_stream_type_find
   (elementary_set_t *set, streaming_component_type_t type)
@@ -534,6 +538,7 @@ elementary_stream_type_find
 /**
  *
  */
+
 elementary_stream_t *
 elementary_stream_type_modify(elementary_set_t *set, int pid,
                               streaming_component_type_t type)
@@ -549,6 +554,7 @@ elementary_stream_type_modify(elementary_set_t *set, int pid,
 /**
  *
  */
+
 void
 elementary_stream_type_destroy
   (elementary_set_t *set, streaming_component_type_t type)
@@ -561,6 +567,7 @@ elementary_stream_type_destroy
 /**
  *
  */
+
 int
 elementary_stream_has_audio_or_video(elementary_set_t *set)
 {
@@ -590,6 +597,7 @@ elementary_stream_has_no_audio(elementary_set_t *set, int filtered)
 /**
  *
  */
+
 static int
 escmp(const void *A, const void *B)
 {
@@ -601,6 +609,7 @@ escmp(const void *A, const void *B)
 /**
  *
  */
+
 void
 elementary_set_sort_streams(elementary_set_t *set)
 {
@@ -624,6 +633,7 @@ elementary_set_sort_streams(elementary_set_t *set)
 /**
  * Generate a message containing info about all components
  */
+
 streaming_start_t *
 elementary_stream_build_start(elementary_set_t *set)
 {
@@ -656,6 +666,7 @@ elementary_stream_build_start(elementary_set_t *set)
 /**
  * Create back elementary streams from the start message.
  */
+
 elementary_set_t *
 elementary_stream_create_from_start
   (elementary_set_t *set, streaming_start_t *ss, size_t es_size)
index 592a6933dc7f07749d1a7247e73a80eb4afb1924..08721a9143d2519696481da3575a1daef6e54110 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend
- *  Copyright (C) 2010 Andreas Ã–man
- *                2018 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2010 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend
  */
 
 #ifndef ESSTREAM_H__
index e6e83e832e43f26fcf7059a760b01b0a73345f07..f21e220eddfd2aff655e6c2206f612ab33147e7f 100644 (file)
@@ -47,6 +47,7 @@
 #include <errno.h>
 
 #ifndef CA_SET_PID /* removed in kernel 4.14 */
+
 typedef struct ca_pid {
   unsigned int pid;
   int index;           /* -1 == disable */
index e23036891b769ab4093e3d4cabb806d1d47948ce..f6e5a79216d09917f00c7ca7f4789cab6bc99ea7 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Process file functions
- *  Copyright (C) 2008 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Process file functions
  */
 
 #include "tvheadend.h"
index 9523a9080f1fc8662ceb96ed512f6b29c48eddc0..e7cc95e095a99eebd00d1e6743f7c48a913b3dfe 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Process file operations
- *  Copyright (C) 2012 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Process file operations
  */
 
 #ifndef FILE_H
index 931357dc2933f606fb7e267eaddd2c6f45a71f54..e124baf6cd476cfdb3bb2ab2083ae7ae824c2593 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  TV headend - File bundles
- *  Copyright (C) 2012 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * TV headend - File bundles
  */
 
 #include "tvheadend.h"
index 77b6edfa4c4589b95795e26c2e47158b470548e3..cf56e678f1a5a23e6ba5728a858e2e3c847fb5e9 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  TV headend - File bundles
- *  Copyright (C) 2008 Andreas Ã–man, Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man, Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * TV headend - File bundles
  */
 
 #ifndef __TVH_FILE_BUNDLE_H__
@@ -25,6 +14,7 @@
 #include <stdio.h>
 
 /* Bundle or Direct */
+
 typedef enum filebundle_handle_type
 {
   FB_BUNDLE,
@@ -32,6 +22,7 @@ typedef enum filebundle_handle_type
 } fb_type;
 
 /* File bundle entry type */
+
 enum filebundle_type
 {
   FB_UNKNOWN,
@@ -40,6 +31,7 @@ enum filebundle_type
 };
 
 /* File bundle entry */
+
 typedef struct filebundle_entry
 {
   enum filebundle_type     type;
@@ -59,6 +51,7 @@ typedef struct filebundle_entry
 } filebundle_entry_t;
 
 /* File bundle directory entry */
+
 typedef struct filebundle_dirent
 {
   char                 name[256];
@@ -66,6 +59,7 @@ typedef struct filebundle_dirent
 } fb_dirent;
 
 /* File bundle stat */
+
 struct filebundle_stat
 {
   fb_type  type;
@@ -74,22 +68,27 @@ struct filebundle_stat
 };
 
 /* Opaque types */
+
 typedef struct filebundle_dir  fb_dir;
 typedef struct filebundle_file fb_file;
 
 /* Root of bundle */
+
 extern const filebundle_entry_t * const filebundle_root;
 
 /* Miscellaneous */
+
 int fb_stat ( const char *path, struct filebundle_stat *st );
 
 /* Directory processing wrappers */
+
 fb_dir    *fb_opendir  ( const char *path );
 fb_dirent *fb_readdir  ( fb_dir *fb );
 void       fb_closedir ( fb_dir *fb );
 int        fb_scandir  ( const char *path, fb_dirent ***list );
 
 /* File processing wrappers */
+
 // Note: all access is read-only
 // Note: decompress is only for compressed filebundles,
 //       not direct disk access
index b8f66b632bd450798021223adc059e3381b3bf01..bbaad86693b7d7fc22c1c79e79d02fcb0b7ac93e 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - File/Directory monitoring
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Adam Sutton
  *
- *  Copyright (C) 2014 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - File/Directory monitoring
  */
 
 #include "tvheadend.h"
index d3c586a973840c7bd4b95a62abb278378665ab49..d648ce848443c1f5ddaee8a0cb70de7924a4f386 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - File/Directory monitoring
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Adam Sutton
  *
- *  Copyright (C) 2014 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - File/Directory monitoring
  */
 
 #ifndef __FS_MONITOR_H__
index 16f0aa8f42bba42c117c0202a2dfa3f6e61ba5f1..7f96a512aea92fd53b2af6c115ab973d913cdc6b 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend
  */
 
 #ifndef STRTAB_H_
index c7c9b10f8bbce2cca3e12593d6bd0f0a973ccc1a..74427c933cdbbb4ce677de1d57808845a528d007 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Buffer management functions
- *  Copyright (C) 2008 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Buffer management functions
  */
 
 #include <assert.h>
index 093299400c59ccb1fddddbb1eece4982e247626e..8bd1f7263acbb1d4ab49b1dc70e7ec74555e00ed 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Buffer management functions
- *  Copyright (C) 2008 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Buffer management functions
  */
 
 #ifndef HTSBUF_H__
@@ -33,6 +22,7 @@ typedef struct htsbuf_data {
   unsigned int hd_data_size; /* Size of allocation hb_data */
   unsigned int hd_data_len;  /* Number of valid bytes from hd_data */
   unsigned int hd_data_off;  /* Offset in data, used for partial writes */
+
 } htsbuf_data_t;
 
 typedef struct htsbuf_queue {
index 74a8a0300a13f6b8ba1f2bc3c446edcf34f7fd61..234539e67ebc19ba16c046b99efbb6adbe43e8f8 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Functions for manipulating HTS messages
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Functions for manipulating HTS messages
  */
 
 #include <assert.h>
@@ -40,6 +29,7 @@ static htsmsg_t *htsmsg_field_get_msg ( htsmsg_field_t *f, int islist );
 /**
  *
  */
+
 static void
 htsmsg_field_data_destroy(htsmsg_field_t *f)
 {
@@ -81,6 +71,7 @@ htsmsg_field_data_destroy(htsmsg_field_t *f)
 /**
  *
  */
+
 void
 htsmsg_field_destroy(htsmsg_t *msg, htsmsg_field_t *f)
 {
@@ -98,6 +89,7 @@ htsmsg_field_destroy(htsmsg_t *msg, htsmsg_field_t *f)
 /*
  *
  */
+
 static void
 htsmsg_clear(htsmsg_t *msg)
 {
@@ -111,6 +103,7 @@ htsmsg_clear(htsmsg_t *msg)
 /*
  *
  */
+
 htsmsg_field_t *
 htsmsg_field_add(htsmsg_t *msg, const char *name, int type, int flags, size_t esize)
 {
@@ -167,6 +160,7 @@ htsmsg_field_add(htsmsg_t *msg, const char *name, int type, int flags, size_t es
 /*
  *
  */
+
 htsmsg_field_t *
 htsmsg_field_find(const htsmsg_t *msg, const char *name)
 {
@@ -185,6 +179,7 @@ htsmsg_field_find(const htsmsg_t *msg, const char *name)
 /*
  *
  */
+
 htsmsg_field_t *
 htsmsg_field_last(htsmsg_t *msg)
 {
@@ -197,6 +192,7 @@ htsmsg_field_last(htsmsg_t *msg)
 /**
  *
  */
+
 int
 htsmsg_delete_field(htsmsg_t *msg, const char *name)
 {
@@ -212,6 +208,7 @@ htsmsg_delete_field(htsmsg_t *msg, const char *name)
 /**
  *
  */
+
 int
 htsmsg_is_empty(htsmsg_t *msg)
 {
@@ -226,6 +223,7 @@ htsmsg_is_empty(htsmsg_t *msg)
 /*
  *
  */
+
 htsmsg_t *
 htsmsg_create_map(void)
 {
@@ -247,6 +245,7 @@ htsmsg_create_map(void)
 /*
  *
  */
+
 htsmsg_t *
 htsmsg_create_list(void)
 {
@@ -270,6 +269,7 @@ htsmsg_create_list(void)
 /*
  *
  */
+
 void
 htsmsg_concat(htsmsg_t *msg, htsmsg_t *sub)
 {
@@ -286,6 +286,7 @@ htsmsg_concat(htsmsg_t *msg, htsmsg_t *sub)
 /*
  *
  */
+
 void
 htsmsg_destroy(htsmsg_t *msg)
 {
@@ -308,6 +309,7 @@ htsmsg_destroy(htsmsg_t *msg)
 /*
  *
  */
+
 void
 htsmsg_add_bool(htsmsg_t *msg, const char *name, int b)
 {
@@ -318,6 +320,7 @@ htsmsg_add_bool(htsmsg_t *msg, const char *name, int b)
 /*
  *
  */
+
 void
 htsmsg_set_bool(htsmsg_t *msg, const char *name, int b)
 {
@@ -330,6 +333,7 @@ htsmsg_set_bool(htsmsg_t *msg, const char *name, int b)
 /*
  *
  */
+
 void
 htsmsg_add_s64(htsmsg_t *msg, const char *name, int64_t s64)
 {
@@ -340,6 +344,7 @@ htsmsg_add_s64(htsmsg_t *msg, const char *name, int64_t s64)
 /*
  *
  */
+
 int
 htsmsg_set_s64(htsmsg_t *msg, const char *name, int64_t s64)
 {
@@ -356,6 +361,7 @@ htsmsg_set_s64(htsmsg_t *msg, const char *name, int64_t s64)
 /*
  *
  */
+
 void
 htsmsg_add_dbl(htsmsg_t *msg, const char *name, double dbl)
 {
@@ -367,6 +373,7 @@ htsmsg_add_dbl(htsmsg_t *msg, const char *name, double dbl)
 /*
  *
  */
+
 void
 htsmsg_add_str(htsmsg_t *msg, const char *name, const char *str)
 {
@@ -378,6 +385,7 @@ htsmsg_add_str(htsmsg_t *msg, const char *name, const char *str)
 /*
  *
  */
+
 void
 htsmsg_add_str_alloc(htsmsg_t *msg, const char *name, char *str)
 {
@@ -389,6 +397,7 @@ htsmsg_add_str_alloc(htsmsg_t *msg, const char *name, char *str)
 /*
  *
  */
+
 void
 htsmsg_add_str2(htsmsg_t *msg, const char *name, const char *str)
 {
@@ -399,6 +408,7 @@ htsmsg_add_str2(htsmsg_t *msg, const char *name, const char *str)
 /*
  *
  */
+
 void
 htsmsg_add_str_exclusive(htsmsg_t *msg, const char *str)
 {
@@ -418,6 +428,7 @@ htsmsg_add_str_exclusive(htsmsg_t *msg, const char *str)
 /*
  *
  */
+
 int
 htsmsg_field_set_str(htsmsg_field_t *f, const char *str)
 {
@@ -450,6 +461,7 @@ htsmsg_field_set_str(htsmsg_field_t *f, const char *str)
 /*
  *
  */
+
 int
 htsmsg_field_set_str_force(htsmsg_field_t *f, const char *str)
 {
@@ -464,6 +476,7 @@ htsmsg_field_set_str_force(htsmsg_field_t *f, const char *str)
 /*
  *
  */
+
 int
 htsmsg_set_str(htsmsg_t *msg, const char *name, const char *str)
 {
@@ -478,6 +491,7 @@ htsmsg_set_str(htsmsg_t *msg, const char *name, const char *str)
 /*
  *
  */
+
 int
 htsmsg_set_str2(htsmsg_t *msg, const char *name, const char *str)
 {
@@ -489,6 +503,7 @@ htsmsg_set_str2(htsmsg_t *msg, const char *name, const char *str)
 /*
  *
  */
+
 int
 htsmsg_field_set_bin(htsmsg_field_t *f, const void *bin, size_t len)
 {
@@ -524,6 +539,7 @@ htsmsg_field_set_bin(htsmsg_field_t *f, const void *bin, size_t len)
 /*
  *
  */
+
 int
 htsmsg_field_set_bin_force(htsmsg_field_t *f, const void *bin, size_t len)
 {
@@ -539,6 +555,7 @@ htsmsg_field_set_bin_force(htsmsg_field_t *f, const void *bin, size_t len)
 /*
  *
  */
+
 void
 htsmsg_add_bin(htsmsg_t *msg, const char *name, const void *bin, size_t len)
 {
@@ -550,6 +567,7 @@ htsmsg_add_bin(htsmsg_t *msg, const char *name, const void *bin, size_t len)
 /*
  *
  */
+
 void
 htsmsg_add_bin_alloc(htsmsg_t *msg, const char *name, const void *bin, size_t len)
 {
@@ -562,6 +580,7 @@ htsmsg_add_bin_alloc(htsmsg_t *msg, const char *name, const void *bin, size_t le
 /*
  *
  */
+
 void
 htsmsg_add_bin_ptr(htsmsg_t *msg, const char *name, const void *bin, size_t len)
 {
@@ -573,6 +592,7 @@ htsmsg_add_bin_ptr(htsmsg_t *msg, const char *name, const void *bin, size_t len)
 /*
  *
  */
+
 static int
 htsmsg_field_set_uuid(htsmsg_field_t *f, tvh_uuid_t *u)
 {
@@ -591,6 +611,7 @@ htsmsg_field_set_uuid(htsmsg_field_t *f, tvh_uuid_t *u)
 /*
  *
  */
+
 int
 htsmsg_set_uuid(htsmsg_t *msg, const char *name, tvh_uuid_t *u)
 {
@@ -605,6 +626,7 @@ htsmsg_set_uuid(htsmsg_t *msg, const char *name, tvh_uuid_t *u)
 /*
  *
  */
+
 void
 htsmsg_add_uuid(htsmsg_t *msg, const char *name, tvh_uuid_t *u)
 {
@@ -616,6 +638,7 @@ htsmsg_add_uuid(htsmsg_t *msg, const char *name, tvh_uuid_t *u)
 /*
  *
  */
+
 static htsmsg_t *
 htsmsg_field_set_msg(htsmsg_field_t *f, htsmsg_t *sub)
 {
@@ -637,6 +660,7 @@ htsmsg_field_set_msg(htsmsg_field_t *f, htsmsg_t *sub)
 /*
  *
  */
+
 htsmsg_t *
 htsmsg_add_msg(htsmsg_t *msg, const char *name, htsmsg_t *sub)
 {
@@ -650,6 +674,7 @@ htsmsg_add_msg(htsmsg_t *msg, const char *name, htsmsg_t *sub)
 /*
  *
  */
+
 htsmsg_t *
 htsmsg_set_msg(htsmsg_t *msg, const char *name, htsmsg_t *sub)
 {
@@ -663,6 +688,7 @@ htsmsg_set_msg(htsmsg_t *msg, const char *name, htsmsg_t *sub)
 /*
  *
  */
+
 void
 htsmsg_add_msg_extname(htsmsg_t *msg, const char *name, htsmsg_t *sub)
 {
@@ -684,6 +710,7 @@ htsmsg_add_msg_extname(htsmsg_t *msg, const char *name, htsmsg_t *sub)
 /**
  *
  */
+
 int
 htsmsg_get_s64(htsmsg_t *msg, const char *name, int64_t *s64p)
 {
@@ -721,6 +748,7 @@ htsmsg_field_get_s64
 /**
  *
  */
+
 int
 bool_check(const char *str)
 {
@@ -775,6 +803,7 @@ htsmsg_get_bool_or_default(htsmsg_t *msg, const char *name, int def)
 /**
  *
  */
+
 int64_t
 htsmsg_get_s64_or_default(htsmsg_t *msg, const char *name, int64_t def)
 {
@@ -785,6 +814,7 @@ htsmsg_get_s64_or_default(htsmsg_t *msg, const char *name, int64_t def)
 /*
  *
  */
+
 int
 htsmsg_get_u32(htsmsg_t *msg, const char *name, uint32_t *u32p)
 {
@@ -820,6 +850,7 @@ htsmsg_field_get_u32(htsmsg_field_t *f, uint32_t *u32p)
 /**
  *
  */
+
 int
 htsmsg_get_u32_or_default(htsmsg_t *msg, const char *name, uint32_t def)
 {
@@ -830,6 +861,7 @@ htsmsg_get_u32_or_default(htsmsg_t *msg, const char *name, uint32_t def)
 /**
  *
  */
+
 int32_t
 htsmsg_get_s32_or_default(htsmsg_t *msg, const char *name, int32_t def)
 {
@@ -840,6 +872,7 @@ htsmsg_get_s32_or_default(htsmsg_t *msg, const char *name, int32_t def)
 /*
  *
  */
+
 int
 htsmsg_get_s32(htsmsg_t *msg, const char *name, int32_t *s32p)
 {
@@ -859,6 +892,7 @@ htsmsg_get_s32(htsmsg_t *msg, const char *name, int32_t *s32p)
 /*
  *
  */
+
 int
 htsmsg_field_get_s32(htsmsg_field_t *f, int32_t *s32p)
 {
@@ -878,6 +912,7 @@ htsmsg_field_get_s32(htsmsg_field_t *f, int32_t *s32p)
 /*
  *
  */
+
 int
 htsmsg_get_dbl(htsmsg_t *msg, const char *name, double *dblp)
 {
@@ -913,6 +948,7 @@ htsmsg_field_get_dbl
 /**
  *
  */
+
 const char *
 htsmsg_field_get_string(htsmsg_field_t *f)
 {
@@ -945,6 +981,7 @@ htsmsg_field_get_string(htsmsg_field_t *f)
 /*
  *
  */
+
 const char *
 htsmsg_get_str(htsmsg_t *msg, const char *name)
 {
@@ -958,6 +995,7 @@ htsmsg_get_str(htsmsg_t *msg, const char *name)
 /**
  *
  */
+
 int
 htsmsg_field_get_bin(htsmsg_field_t *f, const void **binp, size_t *lenp)
 {
@@ -996,6 +1034,7 @@ htsmsg_field_get_bin(htsmsg_field_t *f, const void **binp, size_t *lenp)
 /*
  *
  */
+
 int
 htsmsg_get_bin
   (htsmsg_t *msg, const char *name, const void **binp, size_t *lenp)
@@ -1011,6 +1050,7 @@ htsmsg_get_bin
 /**
  *
  */
+
 int
 htsmsg_field_get_uuid(htsmsg_field_t *f, tvh_uuid_t *u)
 {
@@ -1041,6 +1081,7 @@ htsmsg_field_get_uuid(htsmsg_field_t *f, tvh_uuid_t *u)
 /*
  *
  */
+
 int
 htsmsg_get_uuid
   (htsmsg_t *msg, const char *name, tvh_uuid_t *u)
@@ -1056,6 +1097,7 @@ htsmsg_get_uuid
 /*
  *
  */
+
 htsmsg_t *
 htsmsg_get_map(htsmsg_t *msg, const char *name)
 {
@@ -1076,6 +1118,7 @@ htsmsg_field_get_map(htsmsg_field_t *f)
 /**
  *
  */
+
 htsmsg_t *
 htsmsg_get_map_multi(htsmsg_t *msg, ...)
 {
@@ -1093,6 +1136,7 @@ htsmsg_get_map_multi(htsmsg_t *msg, ...)
 /**
  *
  */
+
 const char *
 htsmsg_get_str_multi(htsmsg_t *msg, ...)
 {
@@ -1122,6 +1166,7 @@ htsmsg_get_str_multi(htsmsg_t *msg, ...)
 /*
  *
  */
+
 htsmsg_t *
 htsmsg_get_list(const htsmsg_t *msg, const char *name)
 {
@@ -1175,6 +1220,7 @@ htsmsg_field_get_msg ( htsmsg_field_t *f, int islist )
 /**
  *
  */
+
 htsmsg_t *
 htsmsg_detach_submsg(htsmsg_field_t *f)
 {
@@ -1190,6 +1236,7 @@ htsmsg_detach_submsg(htsmsg_field_t *f)
 /*
  *
  */
+
 static void
 htsmsg_print0(htsmsg_t *msg, int indent)
 {
@@ -1247,6 +1294,7 @@ htsmsg_print0(htsmsg_t *msg, int indent)
 /*
  *
  */
+
 void
 htsmsg_print(htsmsg_t *msg)
 {
@@ -1256,6 +1304,7 @@ htsmsg_print(htsmsg_t *msg)
 /**
  *
  */
+
 static void htsmsg_copy_i(htsmsg_t *dst, const htsmsg_t *src);
 
 static void
@@ -1332,6 +1381,7 @@ htsmsg_copy_field(htsmsg_t *dst, const char *dstname,
 /**
  *
  */
+
 int
 htsmsg_cmp(const htsmsg_t *m1, const htsmsg_t *m2)
 {
@@ -1400,6 +1450,7 @@ htsmsg_cmp(const htsmsg_t *m1, const htsmsg_t *m2)
 /**
  *
  */
+
 htsmsg_t *
 htsmsg_get_map_in_list(htsmsg_t *m, int num)
 {
@@ -1416,6 +1467,7 @@ htsmsg_get_map_in_list(htsmsg_t *m, int num)
 /**
  *
  */
+
 htsmsg_t *
 htsmsg_get_map_by_field_if_name(htsmsg_field_t *f, const char *name)
 {
@@ -1430,6 +1482,7 @@ htsmsg_get_map_by_field_if_name(htsmsg_field_t *f, const char *name)
 /**
  *
  */
+
 const char *
 htsmsg_get_cdata(htsmsg_t *m, const char *field)
 {
@@ -1441,6 +1494,7 @@ htsmsg_get_cdata(htsmsg_t *m, const char *field)
  *
  * Note: this will NOT work for lists of complex types
  */
+
 char *
 htsmsg_list_2_csv(htsmsg_t *m, char delim, int human)
 {
@@ -1535,6 +1589,7 @@ htsmsg_csv_2_list(const char *str, char delim)
 /*
  *
  */
+
 htsmsg_t *
 htsmsg_create_key_val(const char *key, const char *val)
 {
@@ -1549,6 +1604,7 @@ htsmsg_create_key_val(const char *key, const char *val)
 /*
  *
  */
+
 int
 htsmsg_is_string_in_list(htsmsg_t *list, const char *str)
 {
@@ -1570,6 +1626,7 @@ htsmsg_is_string_in_list(htsmsg_t *list, const char *str)
 /*
  *
  */
+
 int
 htsmsg_remove_string_from_list(htsmsg_t *list, const char *str)
 {
@@ -1595,6 +1652,7 @@ htsmsg_remove_string_from_list(htsmsg_t *list, const char *str)
  * Based on htsbuf_vqprintf, but can't easily share code since we rely
  * on stack allocations.
 */
+
 static void
 htsmsg_add_str_ap(htsmsg_t *msg, const char *name, const char *fmt, va_list ap0)
 {
index 82787d4cc4d18436653ab0c19fc2e49ee930a013..22a75b106afbb26f3cc07f687ed842863ee6d512 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Functions for manipulating HTS messages
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Functions for manipulating HTS messages
  */
 
 #pragma once
@@ -104,6 +93,7 @@ typedef struct htsmsg_field {
 /**
  * Aligned memory allocation
  */
+
 static inline size_t htsmsg_malloc_align(int type, size_t len)
 {
   if (type == HMF_LIST || type == HMF_MAP)
@@ -114,6 +104,7 @@ static inline size_t htsmsg_malloc_align(int type, size_t len)
 /**
  * Get a field name
  */
+
 static inline const char *htsmsg_field_name(htsmsg_field_t *f)
 {
   if (f->hmf_flags & HMF_NONAME) return "";
@@ -123,51 +114,61 @@ static inline const char *htsmsg_field_name(htsmsg_field_t *f)
 /**
  * Create a new map
  */
+
 htsmsg_t *htsmsg_create_map(void);
 
 /**
  * Create a new list
  */
+
 htsmsg_t *htsmsg_create_list(void);
 
 /**
  * Concat msg2 to msg1 (list or map)
  */
+
 void htsmsg_concat(htsmsg_t *msg1, htsmsg_t *msg2);
 
 /**
  * Remove a given field from a msg
  */
+
 void htsmsg_field_destroy(htsmsg_t *msg, htsmsg_field_t *f);
 
 /**
  * Destroys a message (map or list)
  */
+
 void htsmsg_destroy(htsmsg_t *msg);
 
 /**
  * Add an boolean field.
  */
+
 void htsmsg_add_bool(htsmsg_t *msg, const char *name, int b);
 
 /**
  * Add/update an boolean field.
  */
+
 void htsmsg_set_bool(htsmsg_t *msg, const char *name, int b);
 
 /**
  * Add an integer field where source is signed 64 bit.
  */
+
 void htsmsg_add_s64(htsmsg_t *msg, const char *name, int64_t s64);
 
 /**
  * Add/update an integer field where source is signed 64 bit.
  */
+
 int  htsmsg_set_s64(htsmsg_t *msg, const char *name, int64_t s64);
 
 /**
  * Add an integer field where source is unsigned 32 bit.
  */
+
 static inline void
 htsmsg_add_u32(htsmsg_t *msg, const char *name, uint32_t u32)
   { htsmsg_add_s64(msg, name, u32); }
@@ -175,6 +176,7 @@ htsmsg_add_u32(htsmsg_t *msg, const char *name, uint32_t u32)
 /**
  * Add/update an integer field
  */
+
 static inline int
 htsmsg_set_u32(htsmsg_t *msg, const char *name, uint32_t u32)
   { return htsmsg_set_s64(msg, name, u32); }
@@ -182,6 +184,7 @@ htsmsg_set_u32(htsmsg_t *msg, const char *name, uint32_t u32)
 /**
  * Add an integer field where source is signed 32 bit.
  */
+
 static inline void
 htsmsg_add_s32(htsmsg_t *msg, const char *name,  int32_t s32)
   { htsmsg_add_s64(msg, name, s32); }
@@ -189,6 +192,7 @@ htsmsg_add_s32(htsmsg_t *msg, const char *name,  int32_t s32)
 /**
  * Add/update an integer field
  */
+
 static inline int
 htsmsg_set_s32(htsmsg_t *msg, const char *name,  int32_t s32)
   { return htsmsg_set_s64(msg, name, s32); }
@@ -196,26 +200,31 @@ htsmsg_set_s32(htsmsg_t *msg, const char *name,  int32_t s32)
 /**
  * Add a string field.
  */
+
 void htsmsg_add_str(htsmsg_t *msg, const char *name, const char *str);
 
 /**
  * Add a string field (NULL check).
  */
+
 void htsmsg_add_str2(htsmsg_t *msg, const char *name, const char *str);
 
 /**
  * Add a string field (allocated using malloc).
  */
+
 void htsmsg_add_str_alloc(htsmsg_t *msg, const char *name, char *str);
 
 /**
  * Add a string field to a list only once.
  */
+
 void htsmsg_add_str_exclusive(htsmsg_t *msg, const char *str);
 
 /**
  * Add a string using printf-style for the value.
  */
+
 void
 htsmsg_add_str_printf(htsmsg_t *msg, const char *name, const char *fmt, ...)
   __attribute__((format(printf,3,4)));;
@@ -223,28 +232,33 @@ htsmsg_add_str_printf(htsmsg_t *msg, const char *name, const char *fmt, ...)
 /**
  * Add/update a string field
  */
+
 int  htsmsg_set_str(htsmsg_t *msg, const char *name, const char *str);
 int  htsmsg_set_str2(htsmsg_t *msg, const char *name, const char *str);
 
 /**
  * Update a string field
  */
+
 int  htsmsg_field_set_str(htsmsg_field_t *f, const char *str);
 int  htsmsg_field_set_str_force(htsmsg_field_t *f, const char *str);
 
 /**
  * Add an field where source is a list or map message.
  */
+
 htsmsg_t *htsmsg_add_msg(htsmsg_t *msg, const char *name, htsmsg_t *sub);
 
 /**
  * Add/update an field where source is a list or map message.
  */
+
 htsmsg_t *htsmsg_set_msg(htsmsg_t *msg, const char *name, htsmsg_t *sub);
 
 /**
  * Add an field where source is a double
  */
+
 void htsmsg_add_dbl(htsmsg_t *msg, const char *name, double dbl);
 
 /**
@@ -253,22 +267,26 @@ void htsmsg_add_dbl(htsmsg_t *msg, const char *name, double dbl);
  * This function will not strdup() \p name but relies on the caller
  * to keep the string allocated for as long as the message is valid.
  */
+
 void htsmsg_add_msg_extname(htsmsg_t *msg, const char *name, htsmsg_t *sub);
 
 /**
  * Update an binary field
  */
+
 int  htsmsg_field_set_bin(htsmsg_field_t *f, const void *bin, size_t len);
 int  htsmsg_field_set_bin_force(htsmsg_field_t *f, const void *bin, size_t len);
 
 /**
  * Add an binary field. The data is copied to a inallocated storage.
  */
+
 void htsmsg_add_bin(htsmsg_t *msg, const char *name, const void *bin, size_t len);
 
 /**
  * Add an binary field. The passed data must be mallocated.
  */
+
 void htsmsg_add_bin_alloc(htsmsg_t *msg, const char *name, const void *bin, size_t len);
 
 /**
@@ -276,16 +294,19 @@ void htsmsg_add_bin_alloc(htsmsg_t *msg, const char *name, const void *bin, size
  * is responsible for keeping the data valid for as long as the message
  * is around.
  */
+
 void htsmsg_add_bin_ptr(htsmsg_t *msg, const char *name, const void *bin, size_t len);
 
 /**
  * Add/update a uuid field
  */
+
 int htsmsg_set_uuid(htsmsg_t *msg, const char *name, tvh_uuid_t *u);
 
 /**
  * Add an uuid field.
  */
+
 void htsmsg_add_uuid(htsmsg_t *msg, const char *name, tvh_uuid_t *u);
 
 /**
@@ -295,6 +316,7 @@ void htsmsg_add_uuid(htsmsg_t *msg, const char *name, tvh_uuid_t *u);
  *         HTSMSG_ERR_CONVERSION_IMPOSSIBLE - Field is not an integer or
  *              out of range for the requested storage.
  */
+
 int htsmsg_get_u32(htsmsg_t *msg, const char *name, uint32_t *u32p);
 
 int htsmsg_field_get_u32(htsmsg_field_t *f, uint32_t *u32p);
@@ -306,6 +328,7 @@ int htsmsg_field_get_u32(htsmsg_field_t *f, uint32_t *u32p);
  *         HTSMSG_ERR_CONVERSION_IMPOSSIBLE - Field is not an integer or
  *              out of range for the requested storage.
  */
+
 int htsmsg_get_s32(htsmsg_t *msg, const char *name,  int32_t *s32p);
 
 int htsmsg_field_get_s32(htsmsg_field_t *f, int32_t *s32p);
@@ -317,6 +340,7 @@ int htsmsg_field_get_s32(htsmsg_field_t *f, int32_t *s32p);
  *         HTSMSG_ERR_CONVERSION_IMPOSSIBLE - Field is not an integer or
  *              out of range for the requested storage.
  */
+
 int htsmsg_get_s64(htsmsg_t *msg, const char *name,  int64_t *s64p);
 
 int htsmsg_field_get_s64(htsmsg_field_t *f, int64_t *s64p);
@@ -324,6 +348,7 @@ int htsmsg_field_get_s64(htsmsg_field_t *f, int64_t *s64p);
 /*
  * Return the field \p name as an s64.
  */
+
 int64_t htsmsg_get_s64_or_default(htsmsg_t *msg, const char *name, int64_t def);
 
 int bool_check(const char *str);
@@ -346,6 +371,7 @@ int htsmsg_get_bool_or_default(htsmsg_t *msg, const char *name, int def);
  * @return HTSMSG_ERR_FIELD_NOT_FOUND - Field does not exist
  *         HTSMSG_ERR_CONVERSION_IMPOSSIBLE - Field is not a binary blob.
  */
+
 int htsmsg_get_bin(htsmsg_t *msg, const char *name, const void **binp,
                   size_t *lenp);
 
@@ -357,6 +383,7 @@ int htsmsg_get_bin(htsmsg_t *msg, const char *name, const void **binp,
  * @return HTSMSG_ERR_FIELD_NOT_FOUND - Field does not exist
  *         HTSMSG_ERR_CONVERSION_IMPOSSIBLE - Field is not a binary blob.
  */
+
 int htsmsg_get_uuid(htsmsg_t *msg, const char *name, tvh_uuid_t *u);
 
 /**
@@ -365,6 +392,7 @@ int htsmsg_get_uuid(htsmsg_t *msg, const char *name, tvh_uuid_t *u);
  * @return NULL if the field can not be found or not of list type.
  *         Otherwise a htsmsg is returned.
  */
+
 htsmsg_t *htsmsg_get_list(const htsmsg_t *msg, const char *name);
 
 htsmsg_t *htsmsg_field_get_list(htsmsg_field_t *f);
@@ -375,6 +403,7 @@ htsmsg_t *htsmsg_field_get_list(htsmsg_field_t *f);
  * @return NULL if the field can not be found or not of string type.
  *         Otherwise a pointer to the data is returned.
  */
+
 const char *htsmsg_get_str(htsmsg_t *msg, const char *name);
 
 /**
@@ -383,6 +412,7 @@ const char *htsmsg_get_str(htsmsg_t *msg, const char *name);
  * @return NULL if the field can not be found or not of map type.
  *         Otherwise a htsmsg is returned.
  */
+
 htsmsg_t *htsmsg_get_map(htsmsg_t *msg, const char *name);
 
 htsmsg_t *htsmsg_field_get_map(htsmsg_field_t *f);
@@ -390,12 +420,14 @@ htsmsg_t *htsmsg_field_get_map(htsmsg_field_t *f);
 /**
  * Traverse a hierarchy of htsmsg's to find a specific child.
  */
+
 htsmsg_t *htsmsg_get_map_multi(htsmsg_t *msg, ...)
   __attribute__((__sentinel__(0)));
 
 /**
  * Traverse a hierarchy of htsmsg's to find a specific child.
  */
+
 const char *htsmsg_get_str_multi(htsmsg_t *msg, ...)
   __attribute__((__sentinel__(0)));
 
@@ -406,6 +438,7 @@ const char *htsmsg_get_str_multi(htsmsg_t *msg, ...)
  *         HTSMSG_ERR_CONVERSION_IMPOSSIBLE - Field is not an integer or
  *              out of range for the requested storage.
  */
+
 int htsmsg_get_dbl(htsmsg_t *msg, const char *name, double *dblp);
 
 int htsmsg_field_get_dbl(htsmsg_field_t *f, double *dblp);
@@ -414,6 +447,7 @@ int htsmsg_field_get_dbl(htsmsg_field_t *f, double *dblp);
  * Given the field \p f, return a string if it is of type string, otherwise
  * return NULL
  */
+
 const char *htsmsg_field_get_string(htsmsg_field_t *f);
 #define htsmsg_field_get_str(f) htsmsg_field_get_string(f)
 
@@ -421,6 +455,7 @@ const char *htsmsg_field_get_string(htsmsg_field_t *f);
  * Given the field \p f, return a uuid if it is of type string, otherwise
  * return NULL
  */
+
 int htsmsg_field_get_uuid(htsmsg_field_t *f, tvh_uuid_t *u);
 
 /**
@@ -430,6 +465,7 @@ int htsmsg_field_get_uuid(htsmsg_field_t *f, tvh_uuid_t *u);
  *         HTSMSG_ERR_CONVERSION_IMPOSSIBLE - Field is not an integer or
  *              out of range for the requested storage.
  */
+
 int htsmsg_field_get_bin(htsmsg_field_t *f, const void **binp, size_t *lenp);
 
 /**
@@ -438,6 +474,7 @@ int htsmsg_field_get_bin(htsmsg_field_t *f, const void **binp, size_t *lenp);
  * @return An unsigned 32 bit integer or NULL if the field can not be found
  *         or if conversion is not possible.
  */
+
 int htsmsg_get_u32_or_default(htsmsg_t *msg, const char *name, uint32_t def);
 
 /**
@@ -446,17 +483,20 @@ int htsmsg_get_u32_or_default(htsmsg_t *msg, const char *name, uint32_t def);
  * @return A signed 32 bit integer or NULL if the field can not be found
  *         or if conversion is not possible.
  */
+
 int32_t htsmsg_get_s32_or_default(htsmsg_t *msg, const char *name, 
                                  int32_t def);
 
 /**
  * Remove the given field called \p name from the message \p msg.
  */
+
 int htsmsg_delete_field(htsmsg_t *msg, const char *name);
 
 /**
  * Is list/map empty
  */
+
 int htsmsg_is_empty(htsmsg_t *msg);
 
 /**
@@ -465,43 +505,51 @@ int htsmsg_is_empty(htsmsg_t *msg);
  * the the contents of the sub message will stay valid if the parent is
  * destroyed. The caller is responsible for freeing this new message.
  */
+
 htsmsg_t *htsmsg_detach_submsg(htsmsg_field_t *f);
 
 /**
  * Print a message to stdout. 
  */
+
 void htsmsg_print(htsmsg_t *msg);
 
 /**
  * Create a new field. Primarily intended for htsmsg internal functions.
  */
+
 htsmsg_field_t *htsmsg_field_add(htsmsg_t *msg, const char *name,
                                 int type, int flags, size_t esize);
 
 /**
  * Get a field, return NULL if it does not exist
  */
+
 htsmsg_field_t *htsmsg_field_find(const htsmsg_t *msg, const char *name);
 
 /**
  * Get a last field, return NULL if it does not exist
  */
+
 htsmsg_field_t *htsmsg_field_last(htsmsg_t *msg);
 
 /**
  * Clone a message.
  */
+
 htsmsg_t *htsmsg_copy(const htsmsg_t *src);
 
 /**
  * Copy only one field from one htsmsg to another (with renaming).
  */
+
 void htsmsg_copy_field(htsmsg_t *dst, const char *dstname,
                        const htsmsg_t *src, const char *srcname);
 
 /**
  * Compare a message.
  */
+
 int htsmsg_cmp(const htsmsg_t *m1, const htsmsg_t *m2);
 
 #define HTSMSG_FOREACH(f, msg) TAILQ_FOREACH(f, &(msg)->hm_fields, hmf_link)
@@ -510,6 +558,7 @@ int htsmsg_cmp(const htsmsg_t *m1, const htsmsg_t *m2);
 /**
  * Misc
  */
+
 htsmsg_t *htsmsg_get_map_in_list(htsmsg_t *m, int num);
 
 htsmsg_t *htsmsg_get_map_by_field_if_name(htsmsg_field_t *f, const char *name);
@@ -529,6 +578,7 @@ int htsmsg_remove_string_from_list(htsmsg_t *list, const char *str);
 /**
  *
  */
+
 struct memoryinfo;
 extern struct memoryinfo htsmsg_memoryinfo;
 extern struct memoryinfo htsmsg_field_memoryinfo;
index 48a1bf985ed554df473adb3a9251b479dfcdaf26..a1d46f56143bca5d840b206cfcecd3c3f744dc37 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Functions converting HTSMSGs to/from a simple binary format
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Functions converting HTSMSGs to/from a simple binary format
  */
 
 #include <assert.h>
@@ -29,6 +18,7 @@
 /*
  *
  */
+
 static int
 htsmsg_binary_des0(htsmsg_t *msg, const uint8_t *buf, size_t len)
 {
@@ -152,6 +142,7 @@ htsmsg_binary_des0(htsmsg_t *msg, const uint8_t *buf, size_t len)
 /*
  *
  */
+
 htsmsg_t *
 htsmsg_binary_deserialize0(const void *data, size_t len, const void *buf)
 {
@@ -180,6 +171,7 @@ htsmsg_binary_deserialize0(const void *data, size_t len, const void *buf)
 /*
  *
  */
+
 int
 htsmsg_binary_deserialize(htsmsg_t **msg, const void *data, size_t *len, const void *buf)
 {
@@ -211,6 +203,7 @@ htsmsg_binary_deserialize(htsmsg_t **msg, const void *data, size_t *len, const v
 /*
  *
  */
+
 static size_t
 htsmsg_binary_count(htsmsg_t *msg)
 {
@@ -260,6 +253,7 @@ htsmsg_binary_count(htsmsg_t *msg)
 /*
  *
  */
+
 static void
 htsmsg_binary_write(htsmsg_t *msg, uint8_t *ptr)
 {
@@ -356,6 +350,7 @@ htsmsg_binary_write(htsmsg_t *msg, uint8_t *ptr)
 /*
  *
  */
+
 int
 htsmsg_binary_serialize0(htsmsg_t *msg, void **datap, size_t *lenp, int maxlen)
 {
@@ -377,6 +372,7 @@ htsmsg_binary_serialize0(htsmsg_t *msg, void **datap, size_t *lenp, int maxlen)
 /*
  *
  */
+
 int
 htsmsg_binary_serialize(htsmsg_t *msg, void **datap, size_t *lenp, int maxlen)
 {
index d7d1eee797afd47bf629eb2cc40346431d3eab8d..5661fc1f3fed83759958dbe4e5060dd536ff07ce 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Functions converting HTSMSGs to/from a simple binary format
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Functions converting HTSMSGs to/from a simple binary format
  */
 
 #ifndef HTSMSG_BINARY_H_
@@ -24,6 +13,7 @@
 /**
  * htsmsg_binary_deserialize
  */
+
 htsmsg_t *htsmsg_binary_deserialize0(const void *data, size_t len,
                                      const void *buf);
 
index 77ddaf862b7a5cbc382de7f514e83322cd3409ef..09d9a13517aa05de368f6642d2a07964fb41d90a 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Functions converting HTSMSGs to/from a simple binary format
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Functions converting HTSMSGs to/from a simple binary format
  */
 
 #include <assert.h>
@@ -31,6 +20,7 @@ static uint32_t htsmsg_binary2_count(htsmsg_t *msg);
 /*
  *
  */
+
 static inline uint32_t htsmsg_binary2_get_length(uint8_t const **_p, const uint8_t *end)
 {
   uint32_t r = 0;
@@ -90,6 +80,7 @@ static inline uint32_t htsmsg_binary2_length_count(uint32_t len)
 /*
  *
  */
+
 static int
 htsmsg_binary2_des0(htsmsg_t *msg, const uint8_t *buf, uint32_t len)
 {
@@ -211,6 +202,7 @@ htsmsg_binary2_des0(htsmsg_t *msg, const uint8_t *buf, uint32_t len)
 /*
  *
  */
+
 htsmsg_t *
 htsmsg_binary2_deserialize0(const void *data, size_t len, const void *buf)
 {
@@ -243,6 +235,7 @@ htsmsg_binary2_deserialize0(const void *data, size_t len, const void *buf)
 /*
  *
  */
+
 int
 htsmsg_binary2_deserialize
   (htsmsg_t **msg, const void *data, size_t *len, const void *buf)
@@ -277,6 +270,7 @@ htsmsg_binary2_deserialize
 /*
  *
  */
+
 static uint32_t
 htsmsg_binary2_field_length(htsmsg_field_t *f)
 {
@@ -317,6 +311,7 @@ htsmsg_binary2_field_length(htsmsg_field_t *f)
 /*
  *
  */
+
 static uint32_t
 htsmsg_binary2_count(htsmsg_t *msg)
 {
@@ -335,6 +330,7 @@ htsmsg_binary2_count(htsmsg_t *msg)
 /*
  *
  */
+
 static void
 htsmsg_binary2_write(htsmsg_t *msg, uint8_t *ptr)
 {
@@ -397,6 +393,7 @@ htsmsg_binary2_write(htsmsg_t *msg, uint8_t *ptr)
 /*
  *
  */
+
 int
 htsmsg_binary2_serialize0
   (htsmsg_t *msg, void **datap, size_t *lenp, size_t maxlen)
@@ -420,6 +417,7 @@ htsmsg_binary2_serialize0
 /*
  *
  */
+
 int
 htsmsg_binary2_serialize
   (htsmsg_t *msg, void **datap, size_t *lenp, size_t maxlen)
index e41eeb7ee2e85e7a6c67d349be001e73524b7486..402681eed04febab19632bd20383ae5fe1138b98 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Functions converting HTSMSGs to/from a simple binary format
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Functions converting HTSMSGs to/from a simple binary format
  */
 
 #ifndef HTSMSG_BINARY2_H_
index 28f6c585ee29fa1a6ccc25975af1628e6902f43d..303f64331da277c36a3dd4836b1b90fe416f2dde 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Functions converting HTSMSGs to/from JSON
- *  Copyright (C) 2008 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Functions converting HTSMSGs to/from JSON
  */
 
 #include <assert.h>
@@ -33,6 +22,7 @@
 /**
  *
  */
+
 static void
 htsmsg_json_write(htsmsg_t *msg, htsbuf_queue_t *hq, int isarray,
                  int indent, int pretty)
@@ -107,6 +97,7 @@ htsmsg_json_write(htsmsg_t *msg, htsbuf_queue_t *hq, int isarray,
 /**
  *
  */
+
 void
 htsmsg_json_serialize(htsmsg_t *msg, htsbuf_queue_t *hq, int pretty)
 {
@@ -119,6 +110,7 @@ htsmsg_json_serialize(htsmsg_t *msg, htsbuf_queue_t *hq, int pretty)
 /**
  *
  */
+
 char *
 htsmsg_json_serialize_to_str(htsmsg_t *msg, int pretty)
 {
@@ -135,6 +127,7 @@ htsmsg_json_serialize_to_str(htsmsg_t *msg, int pretty)
 /**
  *
  */
+
 static void *
 create_map(void *opaque)
 {
@@ -192,6 +185,7 @@ add_null(void *opaque, void *parent, const char *name)
 /**
  *
  */
+
 static const json_deserializer_t json_to_htsmsg = {
   .jd_create_map      = create_map,
   .jd_create_list     = create_list,
@@ -208,6 +202,7 @@ static const json_deserializer_t json_to_htsmsg = {
 /**
  *
  */
+
 htsmsg_t *
 htsmsg_json_deserialize(const char *src)
 {
index ae7cf4cf26406f8a640fe0662cc3bb897a4b089c..71121cf813c056199c4cfa028dfadaa59d722381 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Functions converting HTSMSGs to/from JSON
- *  Copyright (C) 2008 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Functions converting HTSMSGs to/from JSON
  */
 
 #ifndef HTSMSG_JSON_H_
@@ -25,6 +14,7 @@ struct rstr;
 /**
  * htsmsg_binary_deserialize
  */
+
 htsmsg_t *htsmsg_json_deserialize(const char *src);
 
 void htsmsg_json_serialize(htsmsg_t *msg, htsbuf_queue_t *hq, int pretty);
index 4123e74d65c54ee45fd65d954692539f73531a8b..7e01a0ed8278c606e9eedd70fe907362b023da56 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Functions converting HTSMSGs to/from XML
- *  Copyright (C) 2008 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Functions converting HTSMSGs to/from XML
  */
 
 /**
index c4d4f29dced9c90b3e49327378fb71ae63df4097..208b644b1d329e728ce9093d8557047e63cfa3e8 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Functions converting HTSMSGs to/from XML
- *  Copyright (C) 2008 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Functions converting HTSMSGs to/from XML
  */
 
 #ifndef HTSMSG_XML_H_
index e3c8ea4ac3a09401488fd2f4924cfa0084aba2e3..c3fac0cf7cebf8a740847012841d33f672efcebc 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, HTSP interface
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, HTSP interface
  */
 
 #include <fcntl.h>
index 3b6470d51ab45e1d9bc9bacc710b0e1f6f49b1b0..79e1100145aa00f93109ebcccef4aa981cc962ad 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, HTSP interface
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, HTSP interface
  */
 
 #ifndef HTSP_H_
index 35c10d0d31d3e1db3179844d9bffaa638ae78260..52ca417c30f71fa0903c409562c72ca5fc6c45a7 100644 (file)
@@ -1,20 +1,9 @@
 /*
- *  String helper functions
- *  Copyright (C) 2008 Andreas Ã–man
- *  Copyright (C) 2008 Mattias Wadman
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man
+ * Copyright (C) 2008 Mattias Wadman
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * String helper functions
  */
 
 #include <stdio.h>
@@ -294,6 +283,7 @@ htsstr_substitute(const char *src, char *dst, size_t dstlen,
 /*
  * gcc -g -I ../build.linux/ -o test htsstr.c
  */
+
 void main(int argc, char *argv[])
 {
   char *strings[] = {
index 71a04180598888c96f1b140e2c916f2e12283545..5a8ba5fd8ec8ab8e4b2a2fc16853be2512bde115 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, HTTP interface
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, HTTP interface
  */
 
 #include "tvheadend.h"
index 0246311bac398f013f16c5d83ebc249d9f162157..cb9a8ad58e4fd6a0f9d10e4007c92066cfe0940d 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, HTTP interface
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, HTTP interface
  */
 
 #ifndef HTTP_H_
index 9f469752bd5a5e31d86a26d3ea59686026bacd4c..7b86b244f2832c7318f9e9abfcf2920df0ab2df5 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - HTTP client functions
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  Copyright (C) 2014 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - HTTP client functions
  */
 
 #include "tvheadend.h"
index ac3a322f694ad8ed5786b732cc6c2b8187709fd8..e35038673fa1a1ebcc7a812927f136575fa1234d 100644 (file)
@@ -1,19 +1,7 @@
 /*
- *  TV headend - Huffman decoder
- *  Copyb1 (C) 2012 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * TV headend - Huffman decoder
  */
 
 #include <string.h>
index 184a5a8f4b4da737d611f10e7b2385bf8297ddd2..b778f3012fdb12bfd7ff7fcceef050cba3116058 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  TV headend - Huffman decoder
- *  Copyright (C) 2012 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * TV headend - Huffman decoder
  */
 
 #ifndef __TVH_HUFFMAN_H__
index 1508b17736eb9c0a36faa10b2cf29591417e455a..fe657a841abf3ed5200e03fe990a4bc70a1c5f02 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - idnode (class) system
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Andreas Ã–man
  *
- *  Copyright (C) 2013 Andreas Ã–man
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - idnode (class) system
  */
 
 #define _GNU_SOURCE
index 1224db7e7beda71aeeb89f92da60aa7b3ef7dffd..0ac7124b9958cfd30bd6e318279f03e88f35f54d 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - idnode (class) system
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Andreas Ã–man
  *
- *  Copyright (C) 2013 Andreas Ã–man
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - idnode (class) system
  */
 
 #ifndef __TVH_IDNODE_H__
index a88ef62539e97de9d6ec9efc3ee0461f4cada14a..bc6930bddca906f6864f4c37771e403f720186ef 100644 (file)
@@ -1,21 +1,9 @@
 /*
- *  Icon file server operations
- *  Copyright (C) 2012 Andy Brown
- *            (C) 2015-2018 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Andy Brown
+ * Copyright (C) 2015-2018 Jaroslav Kysela
  *
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Icon file server operations
  */
 
 #include <fcntl.h>
index 5a2d0e19b9ae8fd94932fece0342b716782f1382..64e5bf6777bb6a311d3d0824ad8fbf5da4772969 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Icon file serve operations
- *  Copyright (C) 2012 Andy Brown
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Andy Brown
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Icon file serve operations
  */
 
 #ifndef __IMAGE_CACHE_H__
index d8c825a9606b998e4d8df30e1cc3fa5f2c997e9f..421c7058253b7f312400c8494712a25b8a5674fb 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  TVheadend
- *  Copyright (C) 2013 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * TVheadend
  */
 
 #include "input.h"
index 3dce355c6a16519513df57df97c4239a4ea31669..110cffeaf5bd1bd9d21cdeb9c093fd4356653656 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  TVheadend
- *  Copyright (C) 2007 - 2010 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 - 2010 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * TVheadend
  */
 
 #ifndef __TVH_INPUT_H__
index fca4f34296a5433d01f2a039eff53bbf07a3cb57..8951b4fe11972c65a3322a5493437220077db852 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  TVheadend
- *  Copyright (C) 2013 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * TVheadend
  */
 
 #include "input.h"
@@ -44,16 +33,19 @@ mpegts_init ( int linuxdvb_mask, int nosatip, str_list_t *satip_client,
   dvb_fastscan_init();
 
   /* Network scanner */
+
 #if ENABLE_MPEGTS
   mpegts_network_scan_init();
 #endif
 
   /* Setup DVB networks */
+
 #if ENABLE_MPEGTS_DVB
   dvb_network_init();
 #endif
 
   /* TS files */
+
 #if ENABLE_TSFILE
   if(tsfiles->num) {
     int i;
@@ -64,26 +56,31 @@ mpegts_init ( int linuxdvb_mask, int nosatip, str_list_t *satip_client,
 #endif
 
   /* IPTV */
+
 #if ENABLE_IPTV
   iptv_init();
 #endif
 
   /* Linux DVB */
+
 #if ENABLE_LINUXDVB
   linuxdvb_init(linuxdvb_mask);
 #endif
 
   /* SAT>IP DVB client */
+
 #if ENABLE_SATIP_CLIENT
   satip_init(nosatip, satip_client);
 #endif
 
  /* HDHomerun client */
+
 #if ENABLE_HDHOMERUN_CLIENT
   tvhdhomerun_init();
 #endif
 
   /* Mux schedulers */
+
 #if ENABLE_MPEGTS
   mpegts_mux_sched_init();
 #endif
index 0fb5b192279f0dceb963b26f9a21d91ba3e1a915..864e54412c61c44f78f8e53b6975e3c5a535a229 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - TS file input system
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - TS file input system
  */
 
 #ifndef __TVH_MPEGTS_H__
index 4749f790e97cb0547d517e03cbf52f952868b321..3b5baed545fb2e686f026297a2c5592b042f1b2b 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Tvheadend - DVB support routines and defines
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - DVB support routines and defines
  */
 
 /* 
index 237f19b739eb3074bd80ed4009f18eee94db1bbb..558c4927878066b355d7ce70ec75389b36f0f16a 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, charset list
- *  Copyright (C) 2012 Mariusz BiaÅ‚oÅ„czyk
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Mariusz BiaÅ‚oÅ„czyk
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, charset list
  */
 
 #include <string.h>
@@ -27,6 +16,7 @@ static LIST_HEAD(,dvb_charset) dvb_charset_list;
 /*
  * Process a file
  */
+
 static void _charset_load_file()
 {
   htsmsg_t *l, *e;
@@ -73,6 +63,7 @@ static void _charset_load_file()
 /*
  * Initialise the charset list
  */
+
 void dvb_charset_init ( void )
 {
   _charset_load_file();
@@ -81,6 +72,7 @@ void dvb_charset_init ( void )
 /*
  *
  */
+
 void dvb_charset_done ( void )
 {
   dvb_charset_t *enc;
@@ -95,6 +87,7 @@ void dvb_charset_done ( void )
 /*
  * Find default charset
  */
+
 const char *dvb_charset_find
   ( mpegts_network_t *mn, mpegts_mux_t *mm, mpegts_service_t *s )
 {
@@ -130,6 +123,7 @@ const char *dvb_charset_find
 /*
  * List of available charsets
  */
+
 htsmsg_t *
 dvb_charset_enum ( void *p, const char *lang )
 {
index eb3c40ad695284a2bc13cd5b8130271f904444f4..de1873c4857a903cc3c1d80888dab0eb3ea966b1 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, dvb charset config
- *  Copyright (C) 2012 Mariusz BiaÅ‚oÅ„czyk
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Mariusz BiaÅ‚oÅ„czyk
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, dvb charset config
  */
 
 #ifndef __TVH_DVB_CHARSET_H__
index 4e7f369cc91141c9728c00907a088ffdd65630ce..68531576ea50571a8bcbca148fab9579dadf456d 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  MPEG TS Program Specific Information code
- *  Copyright (C) 2007 - 2010 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 - 2010 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * MPEG TS Program Specific Information code
  */
 
 #include "tvheadend.h"
index fd64a69c70e8061cb2ccd996916fcf87060cfeda..bad9ff291d3baeb6d7597f1b19399246dde04619 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, MPEG transport stream demuxer
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, MPEG transport stream demuxer
  */
 
 #include "tvheadend.h"
@@ -24,6 +13,7 @@
 /**
  * Extract Hbbtv
  */
+
 htsmsg_t *
 dvb_psi_parse_hbbtv
   (mpegts_psi_table_t *mt, const uint8_t *buf, int len, int *_sect)
index 3946d96ec2ff3d9c3417f2af32a33a7b36486d3a..e3f1378d7805e75d74b6fd2d40818eb1e844a374 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  MPEG TS Program Specific Information code
- *  Copyright (C) 2007 - 2010 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 - 2010 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * MPEG TS Program Specific Information code
  */
 
 #ifndef __DVB_PSI_HBBTV_H
index c6d24b45eea218b4889a073f54d7df9c2fc5baa9..f3e857143f945cc5e1f6bcecb13c97ff307f5e88 100644 (file)
@@ -1,20 +1,9 @@
 /*
- *  MPEG TS Program Specific Information Library code
- *  Copyright (C) 2007 - 2010 Andreas Ã–man
- *  Copyright (C) 2015 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 - 2010 Andreas Ã–man
+ * Copyright (C) 2015 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * MPEG TS Program Specific Information Library code
  */
 
 #include "tvheadend.h"
index fff6919e59e0944e980165ffd5559649cd53a909..f323d1835479efa2e7b5726923bcc20ef66d67b9 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  MPEG TS Program Specific Information code
- *  Copyright (C) 2007 - 2010 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 - 2010 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * MPEG TS Program Specific Information code
  */
 
 #include "tvheadend.h"
index 0959816126d752332d3f2f8a762481ef74ee1cac..88ae3b604ecec286928291209c23de29bdd13adc 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  MPEG TS Program Specific Information code
- *  Copyright (C) 2007 - 2010 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 - 2010 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * MPEG TS Program Specific Information code
  */
 
 #ifndef __DVB_PSI_PMT_H
index 762ddb341ebc52db763c998358430972c31d45c3..4fb8bc1647a8bbd81d6c07c350c63b6499c1c803 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  TV Input - DVB - Support/Conversion functions
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * TV Input - DVB - Support/Conversion functions
  */
 
 #include <sys/types.h>
index 0c4bee8f30f7b11ddbe68adc1ac5981c7b9345bb..f5b5b9d135a7de1c943f919b96aa182268662a77 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Tvheadend - CI CAM (EN50221) generic interface
- *  Copyright (C) 2017 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2017 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - CI CAM (EN50221) generic interface
  */
 
 #include <errno.h>
index 34c27ac2c3772648006405d809e1364eae75956a..4cebeba79640b08234bac53fc484500bc14d742d 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Tvheadend - CI CAM (EN50221) generic interface
- *  Copyright (C) 2017 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2017 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - CI CAM (EN50221) generic interface
  */
 
 #ifndef __EN50221_H__
@@ -24,6 +13,7 @@
 #include "sbuf.h"
 
 /* Session resource IDs */
+
 #define CICAM_RI_RESOURCE_MANAGER            0x00010041
 #define CICAM_RI_APPLICATION_INFORMATION     0x00020041
 #define CICAM_RI_CONDITIONAL_ACCESS_SUPPORT  0x00030041
@@ -34,6 +24,7 @@
 #define CICAM_RI_DUMMY_CAPMT                 0x00ffffff
 
 /* Application tags */
+
 #define CICAM_AOT_NONE                       0x000000
 #define CICAM_AOT_PROFILE_ENQ                0x9F8010
 #define CICAM_AOT_PROFILE                    0x9F8011
@@ -171,6 +162,7 @@ struct en50221_ops {
 /*
  *
  */
+
 int en50221_create_transport(en50221_ops_t *ops, void *ops_aux, int slots,
                              const char *name, en50221_transport_t **cit);
 void en50221_transport_destroy(en50221_transport_t *cit);
@@ -184,6 +176,7 @@ int en50221_transport_read(en50221_transport_t *cit,
 /*
  *
  */
+
 en50221_app_t *
 en50221_slot_find_application(en50221_slot_t *cil,
                               uint32_t resource_id, uint32_t mask);
@@ -193,6 +186,7 @@ int en50221_slot_disable(en50221_slot_t *cil);
 /*
  *
  */
+
 void en50221_register_app(en50221_app_prop_t *prop);
 int en50221_app_pdu_send(en50221_app_t *app, uint32_t atag,
                          const uint8_t *data, size_t datalen,
@@ -210,6 +204,7 @@ void en50221_register_apps(void);
 /*
  *
  */
+
 int en50221_extract_len
   (const uint8_t *data, size_t datalen, const uint8_t **ptr, size_t *len,
    const char *prefix, const char *pdu_name);
@@ -217,6 +212,7 @@ int en50221_extract_len
 /*
  * random public functions
  */
+
 int en50221_send_capmt
   (en50221_slot_t *slot, const uint8_t *capmt, size_t capmtlen);
 int en50221_pcmcia_data_rate(en50221_slot_t *slot, uint8_t rate);
index 180e81d9ed558a7cd49faa2caddb373823233b42..65a37c903c13b72a17dc644b36bce2cfc52bb005 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Tvheadend - CI CAM (EN50221) generic interface
- *  Copyright (C) 2017 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2017 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - CI CAM (EN50221) generic interface
  */
 
 #include <errno.h>
index 3bcd3987fc7c747c0be0bd6832d8b382bbcf6325..0789a19caf81ea7aa76af5cf3e70fccc092e903e 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Tvheadend - CI CAM (EN50221) generic interface
- *  Copyright (C) 2017 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2017 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - CI CAM (EN50221) generic interface
  */
 
 #include "tvheadend.h"
index 20860c6ce51fbce58cdb5e0af6a8fdcfe772b926..7b9fbb1e2a4c9a49b80534ded045c9c3e9a897cf 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Tvheadend - CI CAM (EN50221) CAPMT interface
- *  Copyright (C) 2017 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2017 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - CI CAM (EN50221) CAPMT interface
  */
 
 #ifndef __EN50221_CAPMT_H__
index d9e955be46288f15b7063cc7ac7ac06174861d6e..c64503370fce161a9e3eee1f9d235d5fcd1069b3 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, charset list
- *  Copyright (C) 2014 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, charset list
  */
 
 #include "tvheadend.h"
@@ -152,6 +141,7 @@ fail:
 /*
  * Initialize the fastscan list
  */
+
 void dvb_fastscan_init ( void )
 {
   htsmsg_t *c, *e;
@@ -172,6 +162,7 @@ void dvb_fastscan_init ( void )
 /*
  *
  */
+
 void dvb_fastscan_done ( void )
 {
   dvb_fastscan_t *fs;
index ca57742009d91d01be7dbb49b0acbf29bc066517..652530eccdc82b68e8b478c812458bd4ec9ca5c4 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Tvheadend - FastScan support
- *  Copyright (C) 2014 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - FastScan support
  */
 
 #ifndef __TVH_DVB_FASTSCAN_H__
index 05c74b2b5c30a690dcd0f3b0f183b2347d078e29..723e2f0b67199c1935bb0abdc0deed160032ff1d 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  IPTV Input
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Andreas Ã–man
  *
- *  Copyright (C) 2013 Andreas Ã–man
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * IPTV Input
  */
 
 #ifndef __IPTV_H__
index 17d2c2701638ccc58dfd524b15ffefa4a3dd77ea..5fa88214e8be863fc24ac30d106346b852b3ce1a 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  IPTV Input
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Andreas Ã–man
  *
- *  Copyright (C) 2013 Andreas Ã–man
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * IPTV Input
  */
 
 #include <signal.h>
index 5d7f1f45c05f7bf04439d9fabaae3f4a973841cf..03570a4e6411bd87a2c513670734f45f9ccc322d 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  IPTV - automatic network based on playlists
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2015 Jaroslav Kysela
  *
- *  Copyright (C) 2015 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * IPTV - automatic network based on playlists
  */
 
 #include "tvheadend.h"
index 17d6b105ad681efec4c777353bb2d4072cd29ae5..0d2f80497b736676e567217e55f1ecf47d7891d6 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  IPTV - file handler
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2015 Jaroslav Kysela
  *
- *  Copyright (C) 2015 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * IPTV - file handler
  */
 
 #include "tvheadend.h"
index d5289ece87f913b1db28d6c1e35785af0ab54f37..a720e27dcc074b9274bb8ab31c529d79b9126c69 100644 (file)
@@ -1,21 +1,9 @@
 /*
- *  IPTV - HTTP/HTTPS handler
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
+ * Copyright (C) 2014,2015 Jaroslav Kysela
  *
- *  Copyright (C) 2013 Adam Sutton
- *  Copyright (C) 2014,2015 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * IPTV - HTTP/HTTPS handler
  */
 
 #include "tvheadend.h"
index 5e60f5a12cc055f3aba9162ad12591f074e3fa41..79507ee13dab593490b2ddbc57013b6801194469 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  IPTV - libav handler
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2017 Jaroslav Kysela
  *
- *  Copyright (C) 2017 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * IPTV - libav handler
  */
 
 #include "tvheadend.h"
@@ -46,6 +34,7 @@ typedef struct {
 /*
  *
  */
+
 #if LIBAVFORMAT_VERSION_MAJOR > 60
 static int
 iptv_libav_write_packet(void *opaque, const uint8_t *buf, int buf_size)
@@ -79,6 +68,7 @@ fin:
 /*
  *
  */
+
 static int
 iptv_libav_interrupt_callback(void *opaque)
 {
@@ -90,6 +80,7 @@ iptv_libav_interrupt_callback(void *opaque)
 /*
  *
  */
+
 static void *
 iptv_libav_thread(void *aux)
 {
@@ -189,6 +180,7 @@ fail:
 /*
  * Start new thread
  */
+
 static int
 iptv_libav_start
   ( iptv_input_t *mi, iptv_mux_t *im, const char *raw, const url_t *url )
@@ -261,6 +253,7 @@ iptv_libav_pause ( iptv_input_t *mi, iptv_mux_t *im, int pause )
 /*
  * Initialise libav handler
  */
+
 void
 iptv_libav_init ( void )
 {
index 1c34cb30d2de13dd4821c65a05538ca9b87fd059..6a323968063779488c75add4ea59414f9c450f84 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  IPTV Input
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Andreas Ã–man
  *
- *  Copyright (C) 2013 Andreas Ã–man
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * IPTV Input
  */
 
 #include "iptv_private.h"
@@ -24,6 +12,7 @@
 /*
  * Class
  */
+
 extern const idclass_t mpegts_mux_class;
 
 static inline void
@@ -376,6 +365,7 @@ iptv_mux_display_name ( mpegts_mux_t *mm, char *buf, size_t len )
 /*
  * Create
  */
+
 iptv_mux_t *
 iptv_mux_create0 ( iptv_network_t *in, const char *uuid, htsmsg_t *conf )
 {
index 2a5e18790866bc33c7b36c1816ac459acb3ba649..08c48880b614f295f62ed19018b9defe09b6cddc 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  IPTV - pipe handler
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  Copyright (C) 2014 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * IPTV - pipe handler
  */
 
 #include "tvheadend.h"
index c5dcf13670f605132fc8b200174bc1058d1b9e30..ab59d929dfe00dc7445f828762d04192dc515caa 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  IPTV Input
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Andreas Ã–man
  *
- *  Copyright (C) 2013 Andreas Ã–man
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * IPTV Input
  */
 
 #ifndef __IPTV_PRIVATE_H__
index 2441cdace212504a3b5ca38886b26c88b774e3e6..091ed56e2e4983649758c9b71f250b9141f2b486 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Multicasted IPTV Input
- *  Copyright (C) 2012 Adrien CLERC
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adrien CLERC
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Multicasted IPTV Input
  */
 
 #include "iptv_rtcp.h"
index 7a166a76fc3cd9ef9aa3627ee28ed2b7f948eb61..aeef6b7ac11a91bc781d4810d605b74c3695b0ff 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Tvheadend
- *  Copyright (C) 2012 Adrien CLERC
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adrien CLERC
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend
  */
 
 #ifndef RTCP_H
@@ -145,4 +134,3 @@ int rtcp_receiver_update(rtcp_t *info, uint8_t *rtp_packet);
 ssize_t rtcp_send_nak(rtcp_t *rtcp_info, uint32_t ssrc, uint16_t seqn, uint16_t len);
 int rtcp_connect(rtcp_t * info, char *url, char *host, int port, char *interface, char *nicename);
 #endif /* IPTV_RTCP_H */
-
index ec3c3db65d5c0cfc2f7b256ce3dcb5b3b18e69fd..1f8bda39e39d1c494b30a6e9d0c08f1ee5ada7b9 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  IPTV - RTSP/RTSPS handler
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2015 Jaroslav Kysela
  *
- *  Copyright (C) 2015 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * IPTV - RTSP/RTSPS handler
  */
 
 #include "tvheadend.h"
@@ -41,6 +29,7 @@ typedef struct {
 /*
  *
  */
+
 static void
 iptv_rtsp_close_cb ( void *aux )
 {
@@ -50,6 +39,7 @@ iptv_rtsp_close_cb ( void *aux )
 /*
  * Alive timeout
  */
+
 static void
 iptv_rtsp_alive_cb ( void *aux )
 {
@@ -71,6 +61,7 @@ iptv_rtsp_alive_cb ( void *aux )
 /*
  * Connected
  */
+
 static int
 iptv_rtsp_header ( http_client_t *hc )
 {
@@ -191,6 +182,7 @@ iptv_rtsp_header ( http_client_t *hc )
 /*
  * Receive data
  */
+
 static int
 iptv_rtsp_data
   ( http_client_t *hc, void *buf, size_t len )
@@ -256,6 +248,7 @@ iptv_rtsp_data
 /*
  * Setup RTSP(S) connection
  */
+
 static int
 iptv_rtsp_start
   ( iptv_input_t *mi, iptv_mux_t *im, const char *raw, const url_t *u )
@@ -335,6 +328,7 @@ iptv_rtsp_start
 /*
  * Stop connection
  */
+
 static void
 iptv_rtsp_stop
   ( iptv_input_t *mi, iptv_mux_t *im )
@@ -393,6 +387,7 @@ iptv_rtp_header_callback ( iptv_mux_t *im, uint8_t *rtp, int len )
 /*
  * Read data
  */
+
 static ssize_t
 iptv_rtsp_read ( iptv_input_t *mi, iptv_mux_t *im )
 {
@@ -414,6 +409,7 @@ iptv_rtsp_read ( iptv_input_t *mi, iptv_mux_t *im )
 /*
  * Send the status message
  */
+
 #if ENABLE_TIMESHIFT
 static void rtsp_timeshift_fill_status(rtsp_st_t *ts, rtsp_priv_t *rp,
     timeshift_status_t *status) {
@@ -562,6 +558,7 @@ void rtsp_st_destroy(streaming_target_t *st) {
 /*
  * Initialise RTSP handler
  */
+
 void
 iptv_rtsp_init ( void )
 {
index 2292ca1783f4271eba71d00e9d5fcbfd99e8a814..994946ab98fc9c08e1d2e05308ceeab431cfcb41 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  IPTV Input
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Andreas Ã–man
  *
- *  Copyright (C) 2013 Andreas Ã–man
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * IPTV Input
  */
 
 #include "iptv_private.h"
@@ -130,6 +118,7 @@ iptv_service_channel_tags ( service_t *s )
 /*
  * Create
  */
+
 iptv_service_t *
 iptv_service_create0
   ( iptv_mux_t *im, uint16_t sid, uint16_t pmt,
index c3bff26213cc6ee310f67278d80abbd57793411b..bba4e2fc5f07cdcb3f8056b56ef76360cd37a9ad 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  IPTV - UDP/RTP handler
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * IPTV - UDP/RTP handler
  */
 
 #include "tvheadend.h"
index 2bcd38ac0f2bdf8067ff2fb373dc581a50256ea0..9639822921ad8485a9a2507a9863ab76befc81d6 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - Linux DVB input system
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - Linux DVB input system
  */
 
 #ifndef __TVH_LINUX_DVB_H__
index ef0982da68ab70d1a4458b795561a12774b3e6f8..e2b82943ba1f923df4563508b7f2ece156d1e24f 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - Linux DVB input system
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - Linux DVB input system
  */
 
 #include "tvheadend.h"
index f3ab082dc757f300f1e34aee1a90665c401da199..e4cd68acb572954d5c2a1d9f55bbc815ae17e208 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - Linux DVB input system
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - Linux DVB input system
  */
 
 #include "tvheadend.h"
index 1a888b01f0b7e5d66b17f785e18d2aee46f0d033..09c585e01e0216ff5e5798a0d8e6c66a9c4855ab 100644 (file)
@@ -1,22 +1,9 @@
 /*
- *  Tvheadend - Linux DVB CA
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2015 Damjan Marion
+ * Copyright (C) 2017 Jaroslav Kysela
  *
- *  Copyright (C) 2015 Damjan Marion
- *  Copyright (C) 2017 Jaroslav Kysela
- *
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - Linux DVB CA
  */
 
 #include "tvheadend.h"
index c9313b0b79b2ba110c7ba52b15b460c63f231115..2cdc8e50ac6222c57ef5fb085ed543029fbf29e6 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - Linux DVB DDCI
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2017 Jasmin Jessich
  *
- *  Copyright (C) 2017 Jasmin Jessich
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - Linux DVB DDCI
  */
 
 #include "tvheadend.h"
index 9ea7f783e9c17b7de263d06d8673ed1babf7c12d..e890ba577f246ccae76e306ca9b249cf5dc6705b 100644 (file)
@@ -1,28 +1,8 @@
 /*
- *  Tvheadend - Linux DVB EN50494
- *              (known under trademark "UniCable")
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Sascha "InuSasha" Kuehndel
  *
- *  Copyright (C) 2013 Sascha "InuSasha" Kuehndel
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
- *
- *  Open things:
- *    - TODO: collision detection
- *      * compare transport-stream-id from stream with id in config
- *      * check continuity of the pcr-counter
- *      * when one point is given -> retry
- *      * delay time is easily random, but in standard is special (complicated) way described (cap. 8).
+ * Tvheadend - Linux DVB EN50494
  */
 
 #include "tvheadend.h"
index 72aaf41f1edfb26aa42ae26934ba6832cb2dd3b2..7249610ba1bed779b01c4e19a8dd974d5cc1b016 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - Linux DVB frontend
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - Linux DVB frontend
  */
 
 #include "tvheadend.h"
index 2a976d05e2ff0fb8d464778f2a1bf18c62bd0868..e79fea9d5240a1dc2c43b2d92338e3a1f0586cd5 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - Linux DVB LNB config
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - Linux DVB LNB config
  */
 
 #include "tvheadend.h"
index c0eb3a203d76267614285533807ce4b0a81856fd..17391831203856f1685ced72b4f3f892b997bdfb 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - Linux DVB private data
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - Linux DVB private data
  */
 
 #ifndef __TVH_LINUXDVB_PRIVATE_H__
index faa9cbc53bbff3d46659423955f3f240f509bea3..7beeb8042e75a0ada9f52daf072438189e13c5e8 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - Linux DVB DiseqC Rotor
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - Linux DVB DiseqC Rotor
  */
 
 #ifndef ROTOR_TEST
index 3c6bf114638eb943799536ce1a768516bf8f2aae..8fb07eb2dc3132a2c5777ae036b05263bc8c7180 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - Linux DVB satconf
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - Linux DVB satconf
  */
 
 #include "tvheadend.h"
index f12ab70134b1bd6c6746897a3a6ed203568e100b..370e157ef8cff2afe0dcc317167cf5042a55c92e 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - Linux DVB DiseqC switch
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - Linux DVB DiseqC switch
  */
 
 #include "tvheadend.h"
index 1ded80b58b167801cc56141a10e98d9b321b87ac..c472b52007ab9162d765a50e5a7b084eabbf7afe 100644 (file)
@@ -1,20 +1,9 @@
 /*
- *  Tvheadend - MPEGTS DVB support routines and defines
- *  Copyright (C) 2013 Adam Sutton
- *  Copyright (C) 2014 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - MPEGTS DVB support routines and defines
  */
 
 #ifndef __TVH_MPEGTS_DVB_H__
index c4856b08c9ed5001790f47d8180865ad42039d6b..113318dc9599d5f9610326e87c405e8e328859d8 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Tvheadend - MPEGTS input source
- *  Copyright (C) 2013 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - MPEGTS input source
  */
 
 #include "input.h"
index fa966fdcedba819e98f0687b2e94619429655aa2..6d2c50135111061454d15b9ba92bd9259bf158c8 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - MPEGTS multiplex
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - MPEGTS multiplex
  */
 
 #include "idnode.h"
index 454019dba02b02cd83b45b6336844153fb1aea46..6ad026a9fbe454e94af173e48b10951029452f65 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - DVB Multiplex
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - DVB Multiplex
  */
 
 #include "tvheadend.h"
index 1c30efc9fb90a9a7cd1865dc49d26f7003b34328..1f2139ecb8797551b407ec4f48288799332f8c61 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - TS file input system
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Adam Sutton
  *
- *  Copyright (C) 2014 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - TS file input system
  */
 
 #include "tvheadend.h"
index 80c01b76265d170ec608a69cc072b1d5e2aec8ac..58d5a4016809e563b8ec7586b4d364d5f9172c13 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - TS file input system
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Adam Sutton
  *
- *  Copyright (C) 2014 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - TS file input system
  */
 
 #ifndef __TVH_MPEGTS_MUX_SCHED_H__
index 0d52bebd71d644ee16520204ad13639aaaee5c74..0098af8993150717657d839247739750fa11defd 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Tvheadend - MPEGTS input source
- *  Copyright (C) 2013 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - MPEGTS input source
  */
 
 #include "input.h"
index 07c8a1dcd15b0fa0e6b2470892873efd072712e5..e3e869be5d77665509195b322ea2bdf155068af4 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - Linux DVB Network
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - Linux DVB Network
  */
 
 #include "tvheadend.h"
index 5a6e2cfd9b1a75076d49bd785f37916ea86aacbe..37bcf185f7396ef39bd4289d6fb2a4901779f4af 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - Network Scanner
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Adam Sutton
  *
- *  Copyright (C) 2014 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - Network Scanner
  */
 
 #include "input.h"
index 5a8d9d46d6009c942cbba42d1946445df75f8b39..41c6519f59ac3c3d598182218c368ea0a0f2692e 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - Network Scanner
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Adam Sutton
  *
- *  Copyright (C) 2014 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - Network Scanner
  */
 
 #ifndef __TVH_MPEGTS_NETWORK_SCAN_H__
index 04c9602ca1df1ccb5700de50c84c83bd7ef952cf..fbb5cf51e77773bc7820a61e00e85817590ceb45 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  MPEGTS PID list management
- *  Copyright (C) 2015 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2015 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * MPEGTS PID list management
  */
 
 #include "tvheadend.h"
index 12cae7283809c3056c78ac80f8b66d6c3ccfad6b..2a0c188b041bd1c9b9edf0e2f63adaeb4e0d4436 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  MPEGTS (DVB) based service
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Andreas Ã–man
  *
- *  Copyright (C) 2013 Andreas Ã–man
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * MPEGTS (DVB) based service
  */
 
 #include <assert.h>
index 3f7380db639f3a6ee160d4f1fb303954e023793f..bf46b4e0f0b94dd2bb3f1c6ef6235327d6b9ef17 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  MPEGTS table support
- *  Copyright (C) 2013 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * MPEGTS table support
  */
 
 #include "tvheadend.h"
@@ -171,6 +160,7 @@ mpegts_table_destroy ( mpegts_table_t *mt )
 /**
  * Determine table type
  */
+
 int
 mpegts_table_type ( mpegts_table_t *mt )
 {
@@ -185,6 +175,7 @@ mpegts_table_type ( mpegts_table_t *mt )
 /**
  * Find a table
  */
+
 mpegts_table_t *mpegts_table_find
   ( mpegts_mux_t *mm, const char *name, void *opaque )
 {
@@ -208,6 +199,7 @@ mpegts_table_t *mpegts_table_find
 /**
  * Add a new DVB table
  */
+
 mpegts_table_t *
 mpegts_table_add
   ( mpegts_mux_t *mm, int tableid, int mask,
@@ -289,6 +281,7 @@ mpegts_table_add
 /**
  *
  */
+
 void
 mpegts_table_flush_all ( mpegts_mux_t *mm )
 {
index c7d12c8cfbc7ac114655382bfa22da510b7fe105..f8e913f88e56e4eb5fa676bfe720698c9c77b4de 100644 (file)
@@ -1,22 +1,10 @@
 /*
- *  Tvheadend - MPEGTS debug output
- *  Copyright (C) 2015,2016,2017,2018 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2015,2016,2017,2018 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - MPEGTS debug output
  */
 
-
 #include "input.h"
 
 void
index 58e91d30bb016fb265ff081a644f157aeed5b9da..3e68b3465b37380858bb3053807ac498a458a5a2 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - SAT-IP client
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  Copyright (C) 2014 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - SAT-IP client
  */
 
 #include "tvheadend.h"
index ee403d035a5c09f4e82ea62d63f082a6b496366f..1231b82a8608aab75d43900d76aed4300d73c99c 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - SAT-IP DVB private data
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  Copyright (C) 2014 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - SAT-IP DVB private data
  */
 
 #ifndef __TVH_SATIP_H__
index 2d7e7ad28584701ad2e9ad49d5ba74658b202961..5ff3beff07a6897f77b2d002856c633b008e482d 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - SAT>IP DVB frontend
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  Copyright (C) 2014 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - SAT>IP DVB frontend
  */
 
 #include <fcntl.h>
index af123ca86d46e30572adbe942caf2eb77dbfec9c..57b83c92b9aa197865dd8063f1e2ad3d42df35bd 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - SAT-IP DVB private data
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  Copyright (C) 2014 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - SAT-IP DVB private data
  */
 
 #ifndef __TVH_SATIP_PRIVATE_H__
index f6a376bd19fc8ebce30c9135738a90e729c2add1..a6fd7cc1caebd2e807c0497bd2a15ccde7e2fd13 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - SAT>IP DVB RTSP client
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  Copyright (C) 2014 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - SAT>IP DVB RTSP client
  */
 
 #include <signal.h>
index 8560ef9b988850a6c26541ab8587dcfb9f37689d..77c34d33fcce92a79c64e28750bf8f8e5c57830d 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - SAT>IP DVB satconf
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  Copyright (C) 2014 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - SAT>IP DVB satconf
  */
 
 #include "tvheadend.h"
index 8a16c44ff10fe488ddb756211f2f76949f509720..66b953bf121499377bdf38d0f64888e2e3cfa1b2 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, intial mux list
- *  Copyright (C) 2012 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, intial mux list
  */
 
 #include "tvheadend.h"
index ffdcaaa1e4a65ecdc3a55750244dbefaee940ec4..dc64acf048a0b9f2d5ada574dc01439da0ceb058 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, intial mux list
- *  Copyright (C) 2012 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, intial mux list
  */
 
 #ifndef __DVB_SCANFILES_H__
index c33b185a8e2fff3973e96c0e16f033f10fa29f57..1ad3cc3e502570ee60dd3df4698299cae13c3138 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, MPEG transport stream demuxer
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, MPEG transport stream demuxer
  */
 
 #include "tvheadend.h"
index e62bb070fe0bbe45f842bbf0f9f565962756b4e3..2ae2a1157dabedc1211709efbd189734eb067cb5 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, MPEG transport stream functions
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, MPEG transport stream functions
  */
 
 #ifndef TSDEMUX_H
index 87ed5ec4dccd588f96e1275d2b95ea57b583fccc..74cdd68361339373c7e792f7b24abd00b5abbc0e 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - TS file input system
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - TS file input system
  */
 
 #ifndef __TVH_TSFILE_H__
index 407e0619726ddbc983d52ff7f3361d838a1a4583..cc56ad4a507a059291f28adcd02d81bcf56730a1 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - TS file input system
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - TS file input system
  */
 
 #include "tvheadend.h"
@@ -26,6 +14,7 @@
 /*
  * Globals
  */
+
 tvh_mutex_t          tsfile_lock;
 mpegts_network_t         *tsfile_network;
 tsfile_input_list_t      tsfile_inputs;
@@ -48,6 +37,7 @@ tsfile_service_delete ( service_t *s, int delconf )
 /*
  * Network definition
  */
+
 static mpegts_service_t *
 tsfile_network_create_service
   ( mpegts_mux_t *mm, uint16_t sid, uint16_t pmt_pid )
@@ -75,6 +65,7 @@ tsfile_network_create_service
 /*
  * Initialise
  */
+
 void tsfile_init ( int tuners )
 {
   int i;
@@ -104,6 +95,7 @@ void tsfile_init ( int tuners )
 /*
  * Shutdown
  */
+
 void
 tsfile_done ( void )
 {
@@ -122,6 +114,7 @@ tsfile_done ( void )
 /*
  * Add multiplex
  */
+
 void tsfile_add_file ( const char *path )
 {
   tsfile_input_t        *mi;
index 3615fef92dcf56fb303b44bb3c65f7ea9d5a6f15..03f7dd15d07d87ba47040f62353fe91ba5233576 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - TS file input system
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - TS file input system
  */
 
 #include "tvheadend.h"
index 4cfb40816da401b165e4cde3cc791b7e8ae7db78..e89980ffb831abaa8230bc4e2191d7106707769d 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - TS file input system
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - TS file input system
  */
 
 #include "tsfile_private.h"
index cbf903a6bfea61b5dec6f92561ab40172e13d514..2a0e2f8a3759314add4f4e741ab10b1820bec997 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - TS file private data
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - TS file private data
  */
 
 #ifndef __TVH_TSFILE_PRIVATE_H__
index f8914d61bc113f2351d67a3bcca5c981496dc926..3fd9f62ab84342ca08b92c2d6d7014165c3ccc81 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - HDHomeRun client
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Patric Karlström
  *
- *  Copyright (C) 2014 Patric Karlström
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - HDHomeRun client
  */
 
 #include "libhdhomerun/hdhomerun.h"
index be265241033be6515dff86d7f8b170c59d8d3ba0..b516e48babad638c5ee56575dcad04b587b65de4 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - HDHomeRun DVB private data
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Patric Karlström
  *
- *  Copyright (C) 2014 Patric Karlström
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - HDHomeRun DVB private data
  */
 
 #ifndef __TVH_tvhdhomerun_H__
index 3f8f82081cc135ad43f03369e664e422dc1b1eb7..05531d20f61c3d1469c888e2b6c322e18cfd04dc 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - HDHomeRun DVB frontend
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Patric Karlström
  *
- *  Copyright (C) 2014 Patric Karlström
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - HDHomeRun DVB frontend
  */
 
 #include "libhdhomerun/hdhomerun.h"
index eaf14f81d4f7f64d1fbe5f013168eedf2d136bfd..ef3409156b97add13f8bb1448efe5f09bf1833c9 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - HDHomeRun DVB private data
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Patric Karlstrom
  *
- *  Copyright (C) 2014 Patric Karlstrom
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - HDHomeRun DVB private data
  */
 
 #ifndef __TVH_tvhdhomerun_PRIVATE_H__
index f28781eb059c8efa545a4c82e3fa00b2c087e36e..0d37a25735d097aa86d355c51133b0e8808876b8 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, iconv interface
- *  Copyright (C) 2014 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, iconv interface
  */
 
 #ifndef INTLCONV_H_
index 277528213fa230e546d1c8db53b154820b1ce484..2ca93a2ee7385afeccdbf7c4675ba8f9df04f6c2 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Multi-language Support - language codes
- *  Copyright (C) 2012 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Multi-language Support - language codes
  */
 
 #include <string.h>
index 2fcc5f1585c7cb34334f1ae207bfdacb7b7acfc1..f5dc1254da6f2894620ca0e3f7ef38ef5a42834c 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Multi-language Support - language codes
- *  Copyright (C) 2012 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Multi-language Support - language codes
  */
 
 #ifndef __TVH_LANG_CODES_H__
@@ -41,6 +30,7 @@ typedef struct lang_code_list
 } lang_code_list_t;
 
 /* Convert code to preferred internal code */
+
 const char *lang_code_get ( const char *code );
 const char *lang_code_get2 ( const char *code, size_t len );
 const lang_code_t *lang_code_get3 ( const char *code );
@@ -49,9 +39,11 @@ const char *lang_code_preferred( void );
 char *lang_code_user( const char *ucode );
 
 /* Split list of codes as per HTTP Language-Accept spec */
+
 const lang_code_list_t *lang_code_split ( const char *codes );
 
 /* Efficient code lookup */
+
 typedef struct lang_code_lookup_element {
   RB_ENTRY(lang_code_lookup_element) link;
   const lang_code_t *lang_code;
index c0cfbe016938472778ef6aec0e6e0b829a0abd31..c1180a6e07363497ff0d1f7f012fa38246efca4e 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Multi-language String support
- *  Copyright (C) 2012 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Multi-language String support
  */
 
 #include <stddef.h>
index 3bf1a3285643a950a9ef542e881bbb134917161c..1855552cb6a61e933d6d8f505c3ab2e9388d4276 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Multi-language String support
- *  Copyright (C) 2012 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Multi-language String support
  */
 
 #ifndef __TVH_LANG_STR_H__
@@ -33,12 +22,14 @@ typedef struct lang_str_ele
 typedef RB_HEAD(lang_str, lang_str_ele) lang_str_t;
 
 /* Create/Destroy */
+
 void            lang_str_destroy ( lang_str_t *ls );
 lang_str_t     *lang_str_create  ( void );
 lang_str_t     *lang_str_create2 ( const char *str, const char *lang );
 lang_str_t     *lang_str_copy    ( const lang_str_t *ls );
 
 /* Get elements */
+
 lang_str_ele_t *lang_str_get2_only ( const lang_str_t *ls, const char *lang );
 static inline const char *lang_str_get_only(const lang_str_t *ls, const char *lang)
   {
@@ -54,6 +45,7 @@ static inline const char *lang_str_get(const lang_str_t *ls, const char *lang)
 
 
 /* Add/Update elements */
+
 int             lang_str_add      
   ( lang_str_t *ls, const char *str, const char *lang );
 int             lang_str_append  
@@ -66,6 +58,7 @@ int             lang_str_set2
   ( lang_str_t **dst, const lang_str_t *src );
 
 /* Serialize/Deserialize */
+
 htsmsg_t       *lang_str_serialize_map
   ( lang_str_t *ls );
 void            lang_str_serialize
@@ -78,13 +71,16 @@ lang_str_t     *lang_str_deserialize
   ( htsmsg_t *m, const char *f );
 
 /* Compare */
+
 int             lang_str_compare ( const lang_str_t *ls1, const lang_str_t *ls2 );
 
 /* Is string empty? */
+
 static inline int lang_str_empty(lang_str_t* str)
   { return strempty(lang_str_get(str, NULL)); }
 
 /* Size in bytes */
+
 size_t          lang_str_size ( const lang_str_t *ls );
 
 #endif /* __TVH_LANG_STR_H__ */
index c633d05c920336fa2937aff18ba3eeeb6f850f9b..b8bffdd2cd040da6ea80b4234470a3065410bfe5 100644 (file)
@@ -7,6 +7,7 @@
 /**
  *
  */
+
 static void
 libav_log_callback(void *ptr, int level, const char *fmt, va_list vl)
 {
@@ -86,6 +87,7 @@ libav_log_callback(void *ptr, int level, const char *fmt, va_list vl)
 /**
  * Translate a component type to a libavcodec id
  */
+
 enum AVCodecID
 streaming_component_type2codec_id(streaming_component_type_t type)
 {
@@ -153,6 +155,7 @@ streaming_component_type2codec_id(streaming_component_type_t type)
 /**
  * Translate a libavcodec id to a component type
  */
+
 streaming_component_type_t
 codec_id2streaming_component_type(enum AVCodecID id)
 {
@@ -225,6 +228,7 @@ codec_id2streaming_component_type(enum AVCodecID id)
 /**
  *
  */
+
 #if ENABLE_VAAPI
 #ifdef VA_FOURCC_I010
 static void libav_va_log(int severity, const char *msg)
@@ -264,6 +268,7 @@ static void libav_va_info_callback(const char *msg)
 /**
  *
  */
+
 static void
 libav_vaapi_init(void)
 {
@@ -280,6 +285,7 @@ libav_vaapi_init(void)
 /**
  *
  */
+
 void
 libav_vaapi_init_context(void *context)
 {
@@ -296,6 +302,7 @@ libav_vaapi_init_context(void *context)
 /**
  *
  */
+
 void
 libav_set_loglevel(void)
 {
@@ -306,6 +313,7 @@ libav_set_loglevel(void)
 /**
  *
  */
+
 void
 libav_init(void)
 {
@@ -319,6 +327,7 @@ libav_init(void)
 /**
  *
  */
+
 void
 libav_done(void)
 {
index 902b305d852cd58ec28a584a9d513d76ba31e3fc..2f6558c7e91a2993e1a6902c374d2b11357c7f52 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, libav utils
- *  Copyright (C) 2012 John Törnblom
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 John Törnblom
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <htmlui://www.gnu.org/licenses/>.
+ * tvheadend, libav utils
  */
 
 #ifndef LIBAV_H_
@@ -37,6 +26,7 @@ http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=104e10fb426f903ba9157fdbfe3
 
 This list must be updated every time we use a new AV_CODEC_ID
 */
+
 #if LIBAVCODEC_VERSION_MAJOR < 54 || (LIBAVCODEC_VERSION_MAJOR == 54 && LIBAVCODEC_VERSION_MINOR < 25)
 #define AVCodecID CodecID
 #define AV_CODEC_ID_AAC          CODEC_ID_AAC
index ffa9d6ebeaab35ad70c1b5f1fe471164fe08b6e2..1c617e4eec016e4c0575b32deefa1107c23d05e2 100644 (file)
@@ -1,18 +1,7 @@
 /*
- * Copyright (c) 2014 Jaroslav Kysela <perex@perex.cz>
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
+ * SPDX-License-Identifier: GPL-3.0-or-later
  *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Copyright (c) 2014 Jaroslav Kysela <perex@perex.cz>
  */
 
 #include <stdio.h>
index 2f5690393c88190301d962b53accf89fdaf061a4..0af6658d6665e5b1a386abe0824900c7b027a5b6 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  File locking
- *  Copyright (C) 2014 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * File locking
  */
 
 #ifndef TVH_LOCK_H
index fa3a335d5fa3e0f1b504ec442f9bb74e88f3b2cd..158b1b9ed81103a0f1832a599474458af8797bb3 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  TVheadend
- *  Copyright (C) 2007 - 2010 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 - 2010 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * TVheadend
  */
 
 #include <stdio.h>
index 8039164a522e6fc88293a26230e28b3b8b7efe56..ebf8b923660d478ff31dfd7a593b38303919f460 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Tvheadend - memory info support
- *  Copyright (C) 2016 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - memory info support
  */
 
 #include "tvheadend.h"
index d59c8a6a1ab5940737e734a612155078927c9332..6a70073aa83a7bfe7016be07213eebdcd51f6f90 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Tvheadend - memory info support
- *  Copyright (C) 2016 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - memory info support
  */
 
 #ifndef TVHEADEND_MEMORYINFO_H
index 08bbdb89122163839dc53473fd44a29a9a681bf1..b26142866ac67d696cdb836133dd9b6409e6f4e0 100644 (file)
@@ -1,21 +1,8 @@
 /*
- *  Floating point conversion functions.
- *  Not accurate but should be enough for Showtime's needs
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2011 Andreas Ã–man
  *
- *  Copyright (C) 2011 Andreas Ã–man
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Floating point conversion functions.
  */
 
 #define _ISOC99_SOURCE
@@ -301,4 +288,3 @@ my_double2str(char *buf, size_t bufsize, double realvalue)
   *bufpt = 0;
   return 0;
 }
-
index 27be484129b98a29f3192d571c27c67a8d9fa11f..0f18339e86b7d275a685d5647b8b6b222006d673 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  JSON helpers
- *  Copyright (C) 2011 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2011 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * JSON helpers
  */
 
 #include <stdlib.h>
index cc5dc48e6ac27be63a8f77b55bb4b13e865507a0..e3518551152ef6d14a73979e818190cac16cc525 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  M3U parser
- *  Copyright (C) 2015 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2015 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * M3U parser
  */
 
 #include "tvheadend.h"
@@ -24,6 +13,7 @@
 /*
  *
  */
+
 static char *get_m3u_str(char *data, char **res, int *last)
 {
   char *p = data, first = *data;
@@ -52,6 +42,7 @@ static char *get_m3u_str(char *data, char **res, int *last)
 /*
  *
  */
+
 static void get_m3u_str_post(char **data, int delim)
 {
   if (delim == '\n' || delim == '\r') {
@@ -63,6 +54,7 @@ static void get_m3u_str_post(char **data, int delim)
 /*
  *
  */
+
 static char *until_eol(char *d)
 {
   while (*d && *d != '\r' && *d != '\n') d++;
@@ -74,6 +66,7 @@ static char *until_eol(char *d)
 /*
  *
  */
+
 static int is_full_url(const char *url)
 {
   if (strncmp(url, "file://", 7) == 0) return 7;
@@ -90,6 +83,7 @@ static int is_full_url(const char *url)
 /*
  *
  */
+
 static const char *get_url
   (char *buf, size_t buflen, const char *rel, const char *url)
 {
@@ -120,6 +114,7 @@ static const char *get_url
 /*
  * Note: text in data pointer is not preserved (must be read/write)
  */
+
 htsmsg_t *parse_m3u
   (char *data, const char *charset, const char *url)
 {
index 81b9cea4ce65d4474bb6d97ae673db3d5050f619..a7c6fcc06fde8ea371b02f0fac96b1c061a239bb 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, generic muxing utils
- *  Copyright (C) 2012 John Törnblom
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 John Törnblom
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <htmlui://www.gnu.org/licenses/>.
+ * tvheadend, generic muxing utils
  */
 
 #include <string.h>
@@ -30,6 +19,7 @@
 #endif
 
 /* Newer platforms such as FreeBSD 11.1 support fdatasync so only alias on older systems */
+
 #ifndef CONFIG_FDATASYNC
 #if defined(PLATFORM_DARWIN)
 #define fdatasync(fd)       fcntl(fd, F_FULLFSYNC)
@@ -41,6 +31,7 @@
 /**
  * Mime type for containers containing only audio
  */
+
 static struct strtab container_audio_mime[] = {
   { "application/octet-stream", MC_UNKNOWN },
   { "audio/x-matroska",         MC_MATROSKA },
@@ -64,6 +55,7 @@ static struct strtab container_audio_mime[] = {
 /**
  * Mime type for containers
  */
+
 static struct strtab container_video_mime[] = {
   { "application/octet-stream", MC_UNKNOWN },
   { "video/x-matroska",         MC_MATROSKA },
@@ -81,6 +73,7 @@ static struct strtab container_video_mime[] = {
 /**
  * Name of the container
  */
+
 static struct strtab container_name[] = {
   { "unknown",    MC_UNKNOWN },
   { "matroska",   MC_MATROSKA },
@@ -104,6 +97,7 @@ static struct strtab container_name[] = {
 /**
  * filename suffix of audio-only streams
  */
+
 static struct strtab container_audio_file_suffix[] = {
   { "bin",  MC_UNKNOWN },
   { "mka",  MC_MATROSKA },
@@ -127,6 +121,7 @@ static struct strtab container_audio_file_suffix[] = {
 /**
  * filename suffix of video streams
  */
+
 static struct strtab container_video_file_suffix[] = {
   { "bin",  MC_UNKNOWN },
   { "mkv",  MC_MATROSKA },
@@ -144,6 +139,7 @@ static struct strtab container_video_file_suffix[] = {
 /**
  * Get the mime type for a container
  */
+
 const char*
 muxer_container_type2mime(muxer_container_type_t mc, int video)
 {
@@ -164,6 +160,7 @@ muxer_container_type2mime(muxer_container_type_t mc, int video)
 /**
  * Get the mime type for a filename
  */
+
 const char*
 muxer_container_filename2mime(const char *filename, int video)
 {
@@ -189,6 +186,7 @@ muxer_container_filename2mime(const char *filename, int video)
 /**
  * Get the suffix used in file names
  */
+
 const char*
 muxer_container_suffix(muxer_container_type_t mc, int video)
 {
@@ -208,6 +206,7 @@ muxer_container_suffix(muxer_container_type_t mc, int video)
 /**
  * Convert a container type to a string
  */
+
 const char*
 muxer_container_type2txt(muxer_container_type_t mc)
 {
@@ -224,6 +223,7 @@ muxer_container_type2txt(muxer_container_type_t mc)
 /**
  * Convert a container name to a container type
  */
+
 muxer_container_type_t
 muxer_container_txt2type(const char *str)
 {
@@ -243,6 +243,7 @@ muxer_container_txt2type(const char *str)
 /**
  * Convert a mime-string to a container type
  */
+
 muxer_container_type_t
 muxer_container_mime2type(const char *str)
 {
@@ -265,6 +266,7 @@ muxer_container_mime2type(const char *str)
 /**
  * Copy muxer settings
  */
+
 void
 muxer_config_copy(muxer_config_t *dst, const muxer_config_t *src)
 {
@@ -279,6 +281,7 @@ muxer_config_copy(muxer_config_t *dst, const muxer_config_t *src)
 /**
  * Free muxer settings
  */
+
 void
 muxer_config_free(muxer_config_t *m_cfg)
 {
@@ -293,6 +296,7 @@ muxer_config_free(muxer_config_t *m_cfg)
 /**
  * Create muxer hints
  */
+
 muxer_hints_t *
 muxer_hints_create(const char *agent)
 {
@@ -305,6 +309,7 @@ muxer_hints_create(const char *agent)
 /**
  * Free muxer hints
  */
+
 void
 muxer_hints_free(muxer_hints_t *hints)
 {
@@ -317,6 +322,7 @@ muxer_hints_free(muxer_hints_t *hints)
 /**
  * Create a new muxer
  */
+
 muxer_t* 
 muxer_create(muxer_config_t *m_cfg, muxer_hints_t *hints)
 {
@@ -354,6 +360,7 @@ muxer_create(muxer_config_t *m_cfg, muxer_hints_t *hints)
 /**
  * Figure out the file suffix by looking at the mime type
  */
+
 const char*
 muxer_suffix(muxer_t *m,  const struct streaming_start *ss)
 {
@@ -374,6 +381,7 @@ muxer_suffix(muxer_t *m,  const struct streaming_start *ss)
 /**
  * cache type conversions
  */
+
 static struct strtab cache_types[] = {
   { "Unknown",            MC_CACHE_UNKNOWN },
   { "System",             MC_CACHE_SYSTEM },
@@ -400,6 +408,7 @@ muxer_cache_txt2type(const char *str)
 /**
  * cache scheme
  */
+
 void
 muxer_cache_update(muxer_t *m, int fd, off_t pos, size_t size)
 {
@@ -428,6 +437,7 @@ muxer_cache_update(muxer_t *m, int fd, off_t pos, size_t size)
 /**
  * Get a list of supported cache schemes
  */
+
 int
 muxer_cache_list(htsmsg_t *array)
 {
index 55a9a294714ac79d0c0b7c10909137114ca02fc6..d3c3189a5ef15e89f0de5dbfc93da8b0ef704fc3 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, generic muxing utils
- *  Copyright (C) 2012 John Törnblom
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 John Törnblom
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <htmlui://www.gnu.org/licenses/>.
+ * tvheadend, generic muxing utils
  */
 
 #ifndef MUXER_H_
index 6a8a7104905ccb3ce5001c873c604af593068c7e..cb3de45728fd5dafd21a96a8cad9bb7ad2dc17d2 100644 (file)
@@ -1,23 +1,8 @@
-/*****************************************************************************
- * matroska_ebml.c:
- *****************************************************************************
+/*
+ * SPDX-License-Identifier: GPL-3.0-or-later
  * Copyright (C) 2005 Mike Matsnev
  * Copyright (C) 2010 Andreas Ã–man
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111, USA.
- *****************************************************************************/
+ */
 
 #include <assert.h>
 #include <string.h>
index ab0ca2884bd9f09ab2043918928d2ab681bf8e23..9c6034a0784564db219a5aef3217a16bc2a47176 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  "muxer" to write mpeg audio elementary streams
- *  Copyright (C) 2013 Dave Chapman
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Dave Chapman
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <htmlui://www.gnu.org/licenses/>.
+ * "muxer" to write mpeg audio elementary streams
  */
 
 #include <assert.h>
@@ -50,6 +39,7 @@ typedef struct audioes_muxer {
 /**
  *
  */
+
 static int
 audioes_muxer_type(streaming_component_type_t type)
 {
@@ -71,6 +61,7 @@ audioes_muxer_type(streaming_component_type_t type)
 /**
  *
  */
+
 static const streaming_start_component_t *
 audioes_get_component(muxer_t *m, const struct streaming_start *ss)
 {
@@ -98,6 +89,7 @@ audioes_get_component(muxer_t *m, const struct streaming_start *ss)
 /**
  * Figure out the mimetype
  */
+
 static const char *
 audioes_muxer_mime(muxer_t *m, const struct streaming_start *ss)
 {
@@ -118,6 +110,7 @@ audioes_muxer_mime(muxer_t *m, const struct streaming_start *ss)
 /**
  * Reconfigure the muxer
  */
+
 static int
 audioes_muxer_reconfigure(muxer_t *m, const struct streaming_start *ss)
 {
@@ -137,6 +130,7 @@ audioes_muxer_reconfigure(muxer_t *m, const struct streaming_start *ss)
 /**
  * Init the builtin mkv muxer with streams
  */
+
 static int
 audioes_muxer_init(muxer_t* m, struct streaming_start *ss, const char *name)
 {
@@ -147,6 +141,7 @@ audioes_muxer_init(muxer_t* m, struct streaming_start *ss, const char *name)
 /*
  * Open the muxer as a stream muxer (using a non-seekable socket)
  */
+
 static int
 audioes_muxer_open_stream(muxer_t *m, int fd)
 {
@@ -164,6 +159,7 @@ audioes_muxer_open_stream(muxer_t *m, int fd)
 /**
  * Open the file and set the file descriptor
  */
+
 static int
 audioes_muxer_open_file(muxer_t *m, const char *filename)
 {
@@ -197,6 +193,7 @@ audioes_muxer_open_file(muxer_t *m, const char *filename)
 /**
  * Write a packet to the muxer
  */
+
 static int
 audioes_muxer_write_pkt(muxer_t *m, streaming_message_type_t smt, void *data)
 {
@@ -246,6 +243,7 @@ audioes_muxer_write_pkt(muxer_t *m, streaming_message_type_t smt, void *data)
 /**
  * NOP
  */
+
 static int
 audioes_muxer_write_meta(muxer_t *m, struct epg_broadcast *eb, const char *comment)
 {
@@ -257,6 +255,7 @@ audioes_muxer_write_meta(muxer_t *m, struct epg_broadcast *eb, const char *comme
 /**
  * Close the muxer
  */
+
 static int
 audioes_muxer_close(muxer_t *m)
 {
@@ -277,6 +276,7 @@ audioes_muxer_close(muxer_t *m)
 /**
  * Free all memory associated with the muxer
  */
+
 static void
 audioes_muxer_destroy(muxer_t *m)
 {
@@ -293,6 +293,7 @@ audioes_muxer_destroy(muxer_t *m)
 /**
  * Create a new builtin muxer
  */
+
 muxer_t*
 audioes_muxer_create(const muxer_config_t *m_cfg,
                      const muxer_hints_t *hints)
index ac1a73d2ba967b7e6f7c8daf56faba7a9efd3647..e1c42dd86b49225aca0e48449f9fcb3a244648c9 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  "muxer" to write raw audio streams
- *  Copyright (C) 2013 Dave Chapman
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Dave Chapman
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <htmlui://www.gnu.org/licenses/>.
+ * "muxer" to write raw audio streams
  */
 
 #ifndef AUDIOES_MUXER_H_
index 04e8441435331aaa56ac541c45c7b518a86f2dad..74ee1cca61f98de92dcc71111f67556881a701c0 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, libavformat based muxer
- *  Copyright (C) 2012 John Törnblom
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 John Törnblom
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <htmlui://www.gnu.org/licenses/>.
+ * tvheadend, libavformat based muxer
  */
 
 #include <assert.h>
@@ -55,6 +44,7 @@ static const AVRational mpeg_tc = {1, 90000};
 /**
  * Callback function for libavformat
  */
+
 #if LIBAVFORMAT_VERSION_MAJOR > 60
 static int
 lav_muxer_write(void *opaque, const uint8_t *buf, int buf_size)
@@ -85,6 +75,7 @@ lav_muxer_write(void *opaque, uint8_t *buf, int buf_size)
 /**
  * Add a stream to the muxer
  */
+
 static int
 lav_muxer_add_stream(lav_muxer_t *lm, 
                     const streaming_start_component_t *ssc)
@@ -242,6 +233,7 @@ fail:
 /**
  * Check if a container supports a given streaming component
  */
+
 static int
 lav_muxer_support_stream(muxer_container_type_t mc, 
                         streaming_component_type_t type)
@@ -311,6 +303,7 @@ lav_muxer_support_stream(muxer_container_type_t mc,
 /**
  * Figure out the mime-type for the muxed data stream
  */
+
 static const char*
 lav_muxer_mime(muxer_t* m, const struct streaming_start *ss)
 {
@@ -347,6 +340,7 @@ lav_muxer_mime(muxer_t* m, const struct streaming_start *ss)
 /**
  * Init the muxer with streams
  */
+
 static int
 lav_muxer_init(muxer_t* m, struct streaming_start *ss, const char *name)
 {
@@ -531,6 +525,7 @@ fail:
 /**
  * Handle changes to the streams (usually PMT updates)
  */
+
 static int
 lav_muxer_reconfigure(muxer_t* m, const struct streaming_start *ss)
 {
@@ -545,6 +540,7 @@ lav_muxer_reconfigure(muxer_t* m, const struct streaming_start *ss)
 /**
  * Open the muxer and write the header
  */
+
 static int
 lav_muxer_open_stream(muxer_t *m, int fd)
 {
@@ -593,6 +589,7 @@ lav_muxer_open_file(muxer_t *m, const char *filename)
 /**
  * Write a packet to the muxer
  */
+
 static int
 lav_muxer_write_pkt(muxer_t *m, streaming_message_type_t smt, void *data)
 {
@@ -682,6 +679,7 @@ lav_muxer_write_pkt(muxer_t *m, streaming_message_type_t smt, void *data)
 /**
  * NOP
  */
+
 static int
 lav_muxer_write_meta(muxer_t *m, struct epg_broadcast *eb, const char *comment)
 {
@@ -692,6 +690,7 @@ lav_muxer_write_meta(muxer_t *m, struct epg_broadcast *eb, const char *comment)
 /**
  * NOP
  */
+
 static int
 lav_muxer_add_marker(muxer_t* m)
 {
@@ -702,6 +701,7 @@ lav_muxer_add_marker(muxer_t* m)
 /**
  * Close the muxer and append trailer to output
  */
+
 static int
 lav_muxer_close(muxer_t *m)
 {
@@ -736,6 +736,7 @@ lav_muxer_close(muxer_t *m)
 /**
  * Free all memory associated with the muxer
  */
+
 static void
 lav_muxer_destroy(muxer_t *m)
 {
@@ -767,6 +768,7 @@ lav_muxer_destroy(muxer_t *m)
 /**
  * Create a new libavformat based muxer
  */
+
 muxer_t*
 lav_muxer_create(const muxer_config_t *m_cfg,
                  const muxer_hints_t *hints)
index 3852948cb23bd75b5334c21b47563446e9197716..3e8583c9cfff3a87b27b77ecdeb6418610daa7e1 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, muxing of packets with libavformat
- *  Copyright (C) 2012 John Törnblom
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 John Törnblom
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <htmlui://www.gnu.org/licenses/>.
+ * tvheadend, muxing of packets with libavformat
  */
 
 #ifndef LAV_MUXER_H_
index 13b437987f1809652ba188fe6c1fd764116ce0f6..d19e604cf60373fe2b414e96f62ae75740275a79 100644 (file)
@@ -1,26 +1,11 @@
 /*
- *  Matroska muxer
- *  Copyright (C) 2005 Mike Matsnev
- *  Copyright (C) 2010 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2005 Mike Matsnev
+ * Copyright (C) 2010 Andreas Ã–man
+ * Copyright (C) 2012 John Törnblom
+ * Copyright (C) 2014,2015,2016,2017 Jaroslav Kysela
  *
- *  tvheadend, wrapper for the builtin dvr muxer
- *  Copyright (C) 2012 John Törnblom
- *
- *  code merge, fixes, enhancements
- *  Copyright (C) 2014,2015,2016,2017 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <htmlui://www.gnu.org/licenses/>.
+ * Matroska muxer
  */
 
 #include <sys/types.h>
index 9abd2e5a96928cb52d5ee16de74fc8f4c30bcda1..1182952826b3b7c152a9bb499980f45863e72825 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, muxing of packets with builtin dvr muxer
- *  Copyright (C) 2012 John Törnblom
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 John Törnblom
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <htmlui://www.gnu.org/licenses/>.
+ * tvheadend, muxing of packets with builtin dvr muxer
  */
 
 #ifndef MUXER_MKV_H_
index 95ba86e527b9fea5b6075006fd8471c77eef6afc..0d0b69c14fec4df1413d1bf95fac0119a6c436d5 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, simple muxer that just passes the input along
- *  Copyright (C) 2012 John Törnblom
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 John Törnblom
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <htmlui://www.gnu.org/licenses/>.
+ * tvheadend, simple muxer that just passes the input along
  */
 
 #include <string.h>
index 0cf269438cd20a7abbefb80b696446b92eea5cba..da1c72a9f13990b10d1e012f680f99b9492927cb 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, simple muxer that just passes the input along
- *  Copyright (C) 2012 John Törnblom
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 John Törnblom
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <htmlui://www.gnu.org/licenses/>.
+ * tvheadend, simple muxer that just passes the input along
  */
 
 #ifndef PASS_MUXER_H_
index 056d5df6a41f6f853195ddcb099d59cf765ddfce..40213a40e744242c68c3b86eec9f2a5aea6a4a2a 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, Notification framework
- *  Copyright (C) 2008 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, Notification framework
  */
 
 #include <assert.h>
index e7bf18b5384c49d0bbc7d9f5860e73f0a9a0f6ec..74a772c4a1a2afa0baa86bb4ea7c8eb45a842d2b 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, Notification framework
- *  Copyright (C) 2008 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, Notification framework
  */
 
 #ifndef NOTIFY_H_
index 58f8419560e09148c54e562e5b0d5dfa5d506417..f8d9dbfc60197e0be8e51c55ef2f56dadfe886cf 100644 (file)
@@ -1,22 +1,8 @@
-/**
- *  Packet management
- *  Copyright (C) 2008 Andreas Ã–man
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+/*
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man
  */
 
-
 #include "tvheadend.h"
 #include "streaming.h"
 #include "packet.h"
index 3b2bed91eb3c49db834ce23d63a2e7cf7ce5f278..367dd9dfcddca71cb1de01178048f2a176b6ba69 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Packet management
- *  Copyright (C) 2008 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Packet management
  */
 
 #ifndef PACKET_H_
index 921ee0ef0b534d79796d5adf62f01ff61ccbd80c..28c8c60c21c19a7f9f2d78629603bddf08fde4ec 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Bit stream reader
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Bit stream reader
  */
 
 #include <stdio.h>
index f1bcf16dfa6df331cd5c7fd0354b65f191093664..7cd317b8e1f9203cb60aada207ff473487fb47e2 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Bit stream reader
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Bit stream reader
  */
 
 #ifndef BITSTREAM_H_
index a56ea7bed3488abc7972a41d6672d8e9c2a47b24..f08015941c9c4befd64ec3cdbebbdef30a12a097 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Packet parsing functions - streaming message handler
- *  Copyright (C) 2017 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2017 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Packet parsing functions - streaming message handler
  */
 
 #include "parsers.h"
index ade299a6331b4243e9ff437d678f2de7c0a244ea..795836f99e0eb4f5560b42cfe7af1d347bd89150 100644 (file)
@@ -40,6 +40,7 @@
 /**
  * H.264 parser, nal escaper
  */
+
 void *
 h264_nal_deescape(bitstream_t *bs, const uint8_t *data, int size)
 {
index 79d8241fedbf9bcca2f184490f44d3f088ddd927..e00866d75038fecdb8b094edee53f1bc4055027c 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Packet parsing functions
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Packet parsing functions
  */
 
 #ifndef PARSER_H264_H_
index 5f21f1ddf040e3330defe6a727035f049e796168..55155a09a7b67bba74d979873df7bc310ee6c7e6 100644 (file)
@@ -223,6 +223,7 @@ read_stream_mux_config(parser_es_t *st, latm_private_t *latm, bitstream_t *bs)
 /**
  * Parse AAC LATM
  */
+
 th_pkt_t *
 parse_latm_audio_mux_element(parser_t *t, parser_es_t *st,
                             const uint8_t *data, int len)
index 4251bb2f47d2bcff3f72832857ff17972d7052f2..69192663eef086181d388035c9acb8d39fba3a45 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Packet parsing functions
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Packet parsing functions
  */
 
 #ifndef PARSER_LATM_H_
index ff39eb6ac4af5d2dce1ee3d9e49fa5c2058d79fd..2b9abb20b1e470ded549f988aebba6ddb3ec5199 100644 (file)
@@ -1,20 +1,7 @@
 /*
- *  Teletext parsing functions
- *  Copyright (C) 2007 Andreas Ã–man
- *  Copyright (C) 2014 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
+ * Copyright (C) 2014 Jaroslav Kysela
  */
 
 #include <ctype.h>
@@ -124,16 +111,16 @@ static const uint8_t hamtable[] = {
 #define SUBSET_CZECH_SLOVAK    1  /* Cesky / Slovencina */
 #define SUBSET_ENGLISH         2  /* English */
 #define SUBSET_ESTONIAN        3  /* Eesti */
-#define SUBSET_FRENCH          4  /* Français */
+#define SUBSET_FRENCH          4  /* Fran�ais */
 #define SUBSET_GERMAN          5  /* German / Deutch */
 #define SUBSET_ITALIAN         6  /* Italiano */
 #define SUBSET_LETT_LITH       7  /* Lettish / Lietuviskai */
 #define SUBSET_POLISH          8  /* Polski */
-#define SUBSET_PORTUG_SPANISH  9  /* Português / Español */
-#define SUBSET_RUMANIAN        10 /* Româna */
+#define SUBSET_PORTUG_SPANISH  9  /* Portugu�s / Espa�ol */
+#define SUBSET_RUMANIAN        10 /* Rom�na */
 #define SUBSET_SERB_CRO_SLO    11 /* Srpski / Hrvatski / Slovenscina */
 #define SUBSET_SWE_FIN_HUN     12 /* Svenska / Suomi / Magyar */
-#define SUBSET_TURKISH         13 /* Türkçe */
+#define SUBSET_TURKISH         13 /* T�rk�e */
 #define SUBSET_LAST            SUBSET_TURKISH
 
 #define SUBSET_CHARMAP_COUNT   13
index 2f44b386ded24da0ff9b17b826e4a09201a112af..6043796b577b0108ebf2049d0c41a1b6ab0203af 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Teletext parsing functions
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Teletext parsing functions
  */
 
 #ifndef TELETEXT_H
index 7c20d01d218162f8592ff9efc5a2ba93d1f29b48..c8c5de9a8c79fcacb531422dea29d078ed39fdac 100644 (file)
@@ -1,20 +1,9 @@
 /*
- *  Packet parsing functions
- *  Copyright (C) 2007 Andreas Ã–man
- *  Copyright (C) 2014-2017 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
+ * Copyright (C) 2014-2017 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Packet parsing functions
  */
 
 #include "parsers.h"
index 404d69dd5012e0954cdce2b52524390f69f86ff3..87dcda269b665258d6f2ba7bd4223da288edc76b 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Elementary stream functions
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Elementary stream functions
  */
 
 #ifndef PARSERS_H
index ecd560ec668bf0ac8eb292b429d33d9003780ccf..28d3e59943111ce6628124b9d2434b73583a6d65 100644 (file)
@@ -1,19 +1,6 @@
-/**
- *  Global header modification
- *  Copyright (C) 2010 Andreas Ã–man
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+/*
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2010 Andreas Ã–man
  */
 
 #include <assert.h>
@@ -35,12 +22,14 @@ typedef struct globalheaders {
 } globalheaders_t;
 
 /* note: there up to 2.5 sec diffs in some sources! */
+
 #define MAX_SCAN_TIME   5000  // in ms
 #define MAX_NOPKT_TIME  2500  // in ms
 
 /**
  *
  */
+
 static inline int
 gh_require_meta(int type)
 {
@@ -56,6 +45,7 @@ gh_require_meta(int type)
 /**
  *
  */
+
 static inline int
 gh_is_audiovideo(int type)
 {
@@ -65,6 +55,7 @@ gh_is_audiovideo(int type)
 /**
  *
  */
+
 static void
 gh_flush(globalheaders_t *gh)
 {
@@ -80,6 +71,7 @@ gh_flush(globalheaders_t *gh)
 /**
  *
  */
+
 static void
 apply_header(streaming_start_component_t *ssc, th_pkt_t *pkt)
 {
@@ -127,6 +119,7 @@ apply_header(streaming_start_component_t *ssc, th_pkt_t *pkt)
 /**
  *
  */
+
 static int
 header_complete(streaming_start_component_t *ssc, int not_so_picky)
 {
@@ -155,6 +148,7 @@ header_complete(streaming_start_component_t *ssc, int not_so_picky)
 /**
  *
  */
+
 static int64_t
 gh_queue_delay(globalheaders_t *gh, int index)
 {
@@ -204,6 +198,7 @@ gh_queue_delay(globalheaders_t *gh, int index)
 /**
  *
  */
+
 static int
 headers_complete(globalheaders_t *gh)
 {
@@ -269,6 +264,7 @@ headers_complete(globalheaders_t *gh)
 /**
  *
  */
+
 static void
 gh_start(globalheaders_t *gh, streaming_message_t *sm)
 {
@@ -280,6 +276,7 @@ gh_start(globalheaders_t *gh, streaming_message_t *sm)
 /**
  *
  */
+
 static void
 gh_hold(globalheaders_t *gh, streaming_message_t *sm)
 {
@@ -361,6 +358,7 @@ gh_hold(globalheaders_t *gh, streaming_message_t *sm)
 /**
  *
  */
+
 static void
 gh_pass(globalheaders_t *gh, streaming_message_t *sm)
 {
@@ -405,6 +403,7 @@ gh_pass(globalheaders_t *gh, streaming_message_t *sm)
 /**
  *
  */
+
 static void
 globalheaders_input(void *opaque, streaming_message_t *sm)
 {
@@ -434,6 +433,7 @@ static streaming_ops_t globalheaders_input_ops = {
 /**
  *
  */
+
 streaming_target_t *
 globalheaders_create(streaming_target_t *output)
 {
@@ -450,6 +450,7 @@ globalheaders_create(streaming_target_t *output)
 /**
  *
  */
+
 void
 globalheaders_destroy(streaming_target_t *pad)
 {
index dff742e5fcdabcd9ef3a033774b15697d7ad9910..8f29b6ac2feb5bc6d4cd23c390d9340342422fa7 100644 (file)
@@ -1,19 +1,6 @@
-/**
- *  Global header modification
- *  Copyright (C) 2010 Andreas Ã–man
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+/*
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2010 Andreas Ã–man
  */
 
 #ifndef GLOBALHEADERS_H__
index 08a4c9498f51c15cbc5f0b50034ace6f3dc810d3..acdade472c5d7dd3b68fa2276a56670267cf5413 100644 (file)
@@ -1,19 +1,6 @@
-/**
- *  Timestamp fixup
- *  Copyright (C) 2010 Andreas Ã–man
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+/*
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2010 Andreas Ã–man
  */
 
 #include "tvheadend.h"
@@ -29,6 +16,7 @@ LIST_HEAD(tfstream_list, tfstream);
 /**
  *
  */
+
 typedef struct tfstream {
 
   LIST_ENTRY(tfstream) tfs_link;
@@ -57,6 +45,7 @@ typedef struct tfstream {
 /**
  *
  */
+
 typedef struct tsfix {
   streaming_target_t tf_input;
 
@@ -79,6 +68,7 @@ typedef struct tsfix {
 /**
  * Compute the timestamp deltas
  */
+
 static int64_t
 tsfix_ts_diff(int64_t ts1, int64_t ts2)
 {
@@ -101,6 +91,7 @@ tsfix_ts_diff(int64_t ts1, int64_t ts2)
 /**
  *
  */
+
 static void
 tsfix_destroy_streams(tsfix_t *tf)
 {
@@ -127,6 +118,7 @@ tfs_find(tsfix_t *tf, th_pkt_t *pkt)
 /**
  *
  */
+
 static tfstream_t *
 tsfix_add_stream(tsfix_t *tf, int index, streaming_component_type_t type)
 {
@@ -155,6 +147,7 @@ tsfix_add_stream(tsfix_t *tf, int index, streaming_component_type_t type)
 /**
  *
  */
+
 static void
 tsfix_start(tsfix_t *tf, streaming_start_t *ss)
 {
@@ -184,6 +177,7 @@ tsfix_start(tsfix_t *tf, streaming_start_t *ss)
 /**
  *
  */
+
 static void
 tsfix_stop(tsfix_t *tf)
 {
@@ -194,6 +188,7 @@ tsfix_stop(tsfix_t *tf)
 /**
  *
  */
+
 static void
 tsfix_packet_drop(tfstream_t *tfs, th_pkt_t *pkt, const char *reason)
 {
@@ -208,6 +203,7 @@ tsfix_packet_drop(tfstream_t *tfs, th_pkt_t *pkt, const char *reason)
 /**
  *
  */
+
 static void
 normalize_ts(tsfix_t *tf, tfstream_t *tfs, th_pkt_t *pkt, int backlog)
 {
@@ -327,6 +323,7 @@ deliver:
 /**
  *
  */
+
 static inline int
 txfix_need_to_update_ref(tsfix_t *tf, tfstream_t *tfs, th_pkt_t *pkt)
 {
@@ -338,6 +335,7 @@ txfix_need_to_update_ref(tsfix_t *tf, tfstream_t *tfs, th_pkt_t *pkt)
 /**
  *
  */
+
 static int
 tsfix_update_ref(tsfix_t *tf, tfstream_t *tfs, th_pkt_t *pkt)
 {
@@ -388,6 +386,7 @@ tsfix_update_ref(tsfix_t *tf, tfstream_t *tfs, th_pkt_t *pkt)
 /**
  *
  */
+
 static void
 tsfix_backlog(tsfix_t *tf)
 {
@@ -412,6 +411,7 @@ tsfix_backlog(tsfix_t *tf)
 /**
  *
  */
+
 static int64_t
 tsfix_backlog_diff(tsfix_t *tf)
 {
@@ -453,6 +453,7 @@ tsfix_backlog_diff(tsfix_t *tf)
  * 12: B dts 4922741536 pts <unset>    rpts 4922741536
  * 13: I dts 4922745136 pts 4922755936 rpts 4922755936
  */
+
 static void
 recover_pts(tsfix_t *tf, tfstream_t *tfs, th_pkt_t *pkt)
 {
@@ -523,6 +524,7 @@ recover_pts(tsfix_t *tf, tfstream_t *tfs, th_pkt_t *pkt)
 /**
  * Compute PTS (if not known)
  */
+
 static void
 compute_pts(tsfix_t *tf, tfstream_t *tfs, th_pkt_t *pkt)
 {
@@ -545,6 +547,7 @@ compute_pts(tsfix_t *tf, tfstream_t *tfs, th_pkt_t *pkt)
 /**
  *
  */
+
 static void
 tsfix_input_packet(tsfix_t *tf, streaming_message_t *sm)
 {
@@ -628,6 +631,7 @@ tsfix_input_packet(tsfix_t *tf, streaming_message_t *sm)
 /**
  *
  */
+
 static void
 tsfix_input(void *opaque, streaming_message_t *sm)
 {
@@ -698,6 +702,7 @@ static streaming_ops_t tsfix_input_ops = {
 /**
  *
  */
+
 streaming_target_t *
 tsfix_create(streaming_target_t *output)
 {
@@ -715,6 +720,7 @@ tsfix_create(streaming_target_t *output)
 /**
  *
  */
+
 void
 tsfix_destroy(streaming_target_t *pad)
 {
index 7e6f7bd0bb3bd6624764b3f4ecf95d27d4234364..14a2dab75ce4d5454eff7aa40e36a187d3a8bb69 100644 (file)
@@ -1,19 +1,6 @@
-/**
- *  Timestamp fixup
- *  Copyright (C) 2010 Andreas Ã–man
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+/*
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2010 Andreas Ã–man
  */
 
 #ifndef TSFIX_H__
index 1aa9c57c809a034131110bbfb8e4623f3051e221..9bb40006d563a62aae25f54ec94338dfae54b0fa 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, Stream Profile
- *  Copyright (C) 2014 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, Stream Profile
  */
 
 #include "tvheadend.h"
index ac135c4d669c5e316537fe00c5652046c92c78d7..5d03198153f3c409206335853a7af7754f986a83 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, Stream Profile
- *  Copyright (C) 2014 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, Stream Profile
  */
 
 #ifndef __TVH_PROFILE_H__
index b1e87ccbd7a73a19476befb9fed1a2aeed0eab63..2b1efa5b8f7860730e552778ff057a76a8a6cd92 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - property system (part of idnode)
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Andreas Ã–man
  *
- *  Copyright (C) 2013 Andreas Ã–man
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - property system (part of idnode)
  */
 
 #include <stdio.h>
index 5855b2d6f31c3aa8414ab77b25e7653b48d3d71e..f01e2f7ec0f4bc24afe0a926d785ca1106bb1051 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - property system (part of idnode)
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Andreas Ã–man
  *
- *  Copyright (C) 2013 Andreas Ã–man
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - property system (part of idnode)
  */
 
 #ifndef __TVH_PROP_H__
index 057b46181d5f3d2dacd20d1deaf7e85982ed2f1b..7efc24ff0eaf70a7521c11aa49ea610d1d482035 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - property system library (part of idnode)
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2017 Jaroslav Kysela
  *
- *  Copyright (C) 2017 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - property system library (part of idnode)
  */
 
 #include <stdio.h>
index 5671a4dd5ccbf27d046254023228d182d2f0acb1..4a33d8ae797e7a9e051648d87d87488cc8572474 100644 (file)
@@ -1,25 +1,9 @@
 /*
- *  tvheadend, Rating Labels
- *  Copyright (C) 2014 Jaroslav Kysela (Original Bouquets)
- *  Copyright (C) 2023 DeltaMikeCharlie (Updated for Rating Labels)
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela (Original Bouquets)
+ * Copyright (C) 2023 DeltaMikeCharlie (Updated for Rating Labels)
  *
- *  'Rating labels' are text codes like 'PG', 'PG-13', 'FSK 12', etc,
- *  and are related to the parental classification code values
- *  that are broadcast via DVB as numbers.
- *  Each country/region has their own ratings.
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, Rating Labels
  */
 
 #include "tvheadend.h"
index 50415ed73d63c479e7ffda0c1c67b82b091c8cb3..0e766b443735901cb01b18f8e939d36d80af0dba 100644 (file)
@@ -1,20 +1,9 @@
 /*
- *  TV headend - Rating Labels
- *  Copyright (C) 2014 Jaroslav Kysela (Original Bouquets)
- *  Copyright (C) 2023 DeltaMikeCharlie (Updated for Rating Labels)
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela (Original Bouquets)
+ * Copyright (C) 2023 DeltaMikeCharlie (Updated for Rating Labels)
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * TV headend - Rating Labels
  */
 
 #ifndef RATINGLABEL_H_
index 864fa34374919f5da077073559d8f0a8f3a3fdb8..37bc37223bbb534779117b896c3bdba0d2225b66 100644 (file)
@@ -1,26 +1,8 @@
-/*****************************************************************************
- *
-* Copyright (C) 2001 Mark Edel
-* Copyright (C) 2008 Andreas Ã–man
-
-* This is free software; you can redistribute it and/or modify it under the
-* terms of the GNU General Public License as published by the Free Software
-* Foundation; either version 2 of the License, or (at your option) any later
-* version.
-*
-* This software is distributed in the hope that it will be useful, but WITHOUT
-* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
-* FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
-* for more details.
-*
-* You should have received a copy of the GNU General Public License along with
-* software; if not, write to the Free Software Foundation, Inc., 51 Franklin
-* Street, Fifth Floor, Boston, MA 02110-1301 USA
-*
-* Written by Mark Edel
-* Macroified + additional support functions by Andreas Ã–man
-*
-*****************************************************************************/
+/*
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2001 Mark Edel
+ * Copyright (C) 2008 Andreas Ã–man
+ */
 
 #ifndef REDBLACK_H_
 #define REDBLACK_H_
@@ -145,6 +127,7 @@ do {                                                                          \
 /**
  * Insert a new node, if a collision occures the colliding node is returned
  */
+
 #define RB_INSERT_SORTED(head, skel, field, cmpfunc)                    \
 ({                                                                      \
   int res, fromleft = 0;                                                \
@@ -199,6 +182,7 @@ do {                                                                          \
 /**
  * Returns next node
  */
+
 #define RB_NEXT(e, field)                      \
 ({                                             \
   typeof(e) xx = e, f;                         \
@@ -221,6 +205,7 @@ do {                                                                          \
 /**
  * Returns previous node
  */
+
 #define RB_PREV(e, field)                      \
 ({                                             \
   typeof(e) xx = e, f;                         \
@@ -243,16 +228,19 @@ do {                                                                        \
 /**
  * Returns first node
  */
+
 #define RB_FIRST(head) ((head)->first)
 
 /**
  * Returns last node
  */
+
 #define RB_LAST(head)  ((head)->last)
 
 /**
  * Iterate thru all nodes
  */
+
 #define RB_FOREACH(e, head, field)             \
  for(e = (head)->first; e != NULL;             \
        ({                                      \
@@ -274,6 +262,7 @@ do {                                                                          \
 /**
  * Iterate thru all nodes in reverse order
  */
+
 #define RB_FOREACH_REVERSE(e, head, field)     \
  for(e = (head)->last; e != NULL;              \
        ({                                      \
@@ -294,6 +283,7 @@ do {                                                                          \
 /**
  * Remove the given node
  */
+
 #define RB_REMOVE(head, e, field)                                       \
 do {                                                                    \
   int swapColor;                                                        \
@@ -461,6 +451,7 @@ do {                                                                         \
 /**
  * Finds a node
  */
+
 #define RB_FIND(head, skel, field, cmpfunc)    \
 ({                                             \
   int res;                                        \
@@ -483,6 +474,7 @@ do {                                                                         \
 /**
  * Finds first node greater than 'skel'
  */
+
 #define RB_FIND_GT(head, skel, field, cmpfunc)   \
 ({                                               \
   int res;                                        \
@@ -505,6 +497,7 @@ do {                                                                         \
 /**
  * Finds a node greater or equal to 'skel'
  */
+
 #define RB_FIND_GE(head, skel, field, cmpfunc)   \
 ({                                               \
   int res;                                        \
@@ -528,6 +521,7 @@ do {                                                                         \
 /**
  * Finds first node lesser than 'skel'
  */
+
 #define RB_FIND_LT(head, skel, field, cmpfunc)   \
 ({                                               \
   int res;                                        \
@@ -550,6 +544,7 @@ do {                                                                         \
 /**
  * Finds a node lesser or equal to 'skel'
  */
+
 #define RB_FIND_LE(head, skel, field, cmpfunc)   \
 ({                                               \
   int res;                                        \
index f4ca839226c40a9b9574e300e1f0e604e423c356..1e52a8fc9f1afd32bcab0277bbcaa497fa11aca9 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - RTSP routines
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  Copyright (C) 2014 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - RTSP routines
  */
 
 #include <signal.h>
index a66eea01bd7c1f7fc43be2e9944356c5781b38c5..d6916003cc6d1ba4292c274285d25819d49f4aec 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - SAT-IP server - RTP part
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2015 Jaroslav Kysela
  *
- *  Copyright (C) 2015 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - SAT-IP server - RTP part
  */
 
 #include <signal.h>
@@ -34,7 +22,9 @@
 #define RTP_PACKETS 128
 #define RTP_PAYLOAD (7*188+12)
 #define RTP_TCP_MIN_PAYLOAD (7*188+12+4)   /* fit ethernet packet */
+
 #define RTP_TCP_MAX_PAYLOAD (348*188+12+4) /* cca 64kB */
+
 #define RTCP_PAYLOAD (1420)
 
 #define RTP_TCP_BUFFER_SIZE (64*1024*1024)
@@ -464,6 +454,7 @@ satip_rtp_thread(void *aux)
 /*
  *
  */
+
 void *satip_rtp_queue(th_subscription_t *subs,
                       streaming_queue_t *sq,
                       http_connection_t *hc,
@@ -646,6 +637,7 @@ void satip_rtp_close(void *_rtp)
 /*
  *
  */
+
 static const char *
 satip_rtcp_pol(int pol)
 {
@@ -668,6 +660,7 @@ satip_rtcp_pol(int pol)
 /*
  *
  */
+
 static const char *
 satip_rtcp_fec(int fec)
 {
@@ -692,6 +685,7 @@ satip_rtcp_fec(int fec)
 /*
  *
  */
+
 static int
 satip_status_build(satip_rtp_session_t *rtp, char *buf, int len)
 {
@@ -854,6 +848,7 @@ satip_status_build(satip_rtp_session_t *rtp, char *buf, int len)
 /*
  *
  */
+
 int satip_rtp_status(void *_rtp, char *buf, int len)
 {
   satip_rtp_session_t *rtp = _rtp;
@@ -873,6 +868,7 @@ int satip_rtp_status(void *_rtp, char *buf, int len)
 /*
  *
  */
+
 static int
 satip_rtcp_build(satip_rtp_session_t *rtp, uint8_t *msg)
 {
@@ -914,6 +910,7 @@ satip_rtcp_build(satip_rtp_session_t *rtp, uint8_t *msg)
 /*
  *
  */
+
 static void *
 satip_rtcp_thread(void *aux)
 {
@@ -979,6 +976,7 @@ end:
 /*
  *
  */
+
 void satip_rtp_init(int boot)
 {
   TAILQ_INIT(&satip_rtp_sessions);
@@ -996,6 +994,7 @@ void satip_rtp_init(int boot)
 /*
  *
  */
+
 void satip_rtp_done(void)
 {
   assert(TAILQ_EMPTY(&satip_rtp_sessions));
index 24efae9d792c0a1e66deb84eb7d5514ca6b9fc74..363e6f6e15e43f447aeed06943614d3e941fb1a8 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - SAT-IP server - RTSP part
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2015 Jaroslav Kysela
  *
- *  Copyright (C) 2015 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - SAT-IP server - RTSP part
  */
 
 #include "tvheadend.h"
index 401fd6b63ab386ed8f6814f25ffa754349c28e02..df0d06b77c978de3b4fa33d046a08f2bf4503318 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - SAT-IP server
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2015 Jaroslav Kysela
  *
- *  Copyright (C) 2015 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - SAT-IP server
  */
 
 #include "tvheadend.h"
index 03a286289c7690160586d082953f2a624fc35937..bc5c2c20f94744852214c1fca8c7e653cf3d4e06 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - SAT-IP DVB server - private data
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2015 Jaroslav Kysela
  *
- *  Copyright (C) 2015 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - SAT-IP DVB server - private data
  */
 
 #ifndef __TVH_SATIP_SERVER_H__
index 2969e6c94c5deaaa6dc961e5b1f4092866193465..7601a8b701ccbd9dcc8e54d0a3bc68bd4088241a 100644 (file)
@@ -1,20 +1,9 @@
 /*
- *  Tvheadend - sbuf routines
- *  Copyright (C) 2007 Andreas Ã–man
- *  Copyright (C) 2014-2017 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
+ * Copyright (C) 2014-2017 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - sbuf routines
  */
 
 #ifndef __TVH_SBUF_H
@@ -28,6 +17,7 @@
 /**
  * Simple dynamically growing buffer
  */
+
 typedef struct sbuf {
   uint8_t *sb_data;
   int      sb_ptr;
index c65301666f7b748d012bee7c150b628306b182dc..8241dc4b7cf3cbb68e95049e4e8c780d72730616 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Services
- *  Copyright (C) 2010 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2010 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Services
  */
 
 #include "tvheadend.h"
index d4833848f35eb5ec1746809f9e9e5075158fe9ff..d6a734228f15298b662c8eb0625b1578b3cbfffc 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Tvheadend
- *  Copyright (C) 2010 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2010 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend
  */
 
 #ifndef SERVICE_H__
index ee37a54fc64e12d6186d3a54d2c54fab80e0751d..1fbd8632e25d04591262fda31cfad9b535a1d22a 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Service Mapper functions
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Service Mapper functions
  */
 
 #include <ctype.h>
index 64166253b8c76916feb23b6ffbee64e13ba67e48..ca48ee76815af18cfedbb99f5e8abbe4d296fdf5 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Functions for transport probing
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Functions for transport probing
  */
 
 #ifndef __TVH_SERVICE_MAPPER_H__
index da98a249a49021a87bb42d1b0a82615b532920e2..f318eee2a91bfb2dd31cc5740db75386436a67e4 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Functions for storing program settings
- *  Copyright (C) 2008 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Functions for storing program settings
  */
 
 #include <sys/types.h>
@@ -42,6 +31,7 @@ static char *settingspath = NULL;
 /**
  *
  */
+
 const char *
 hts_settings_get_root(void)
 {
@@ -51,6 +41,7 @@ hts_settings_get_root(void)
 /**
  *
  */
+
 void
 hts_settings_init(const char *confpath)
 {
@@ -61,6 +52,7 @@ hts_settings_init(const char *confpath)
 /**
  *
  */
+
 void
 hts_settings_done(void)
 {
@@ -70,6 +62,7 @@ hts_settings_done(void)
 /**
  *
  */
+
 int
 hts_settings_makedirs ( const char *inpath )
 {
@@ -92,6 +85,7 @@ hts_settings_makedirs ( const char *inpath )
 /**
  *
  */
+
 static void
 _hts_settings_buildpath
   (char *dst, size_t dstsize, const char *fmt, va_list ap, const char *prefix)
@@ -128,6 +122,7 @@ hts_settings_buildpath
 /**
  *
  */
+
 void
 hts_settings_save(htsmsg_t *record, const char *pathfmt, ...)
 {
@@ -161,6 +156,7 @@ hts_settings_save(htsmsg_t *record, const char *pathfmt, ...)
   }
 
   /* Store data */
+
 #if ENABLE_ZLIB
   pack = strstr(path, "/muxes/") != NULL && /* ugly, redesign API */
          strstr(path, "/networks/") != NULL &&
@@ -217,6 +213,7 @@ hts_settings_save(htsmsg_t *record, const char *pathfmt, ...)
 /**
  *
  */
+
 static htsmsg_t *
 hts_settings_load_one(const char *filename)
 {
@@ -270,6 +267,7 @@ hts_settings_load_one(const char *filename)
 /**
  *
  */
+
 static htsmsg_t *
 hts_settings_load_path(const char *fullpath, int depth)
 {
@@ -322,6 +320,7 @@ hts_settings_load_path(const char *fullpath, int depth)
 /**
  *
  */
+
 static htsmsg_t *
 hts_settings_vload(const char *pathfmt, va_list ap, int depth)
 {
@@ -351,6 +350,7 @@ hts_settings_vload(const char *pathfmt, va_list ap, int depth)
 /**
  *
  */
+
 htsmsg_t *
 hts_settings_load(const char *pathfmt, ...)
 {
@@ -365,6 +365,7 @@ hts_settings_load(const char *pathfmt, ...)
 /**
  *
  */
+
 htsmsg_t *
 hts_settings_load_r(int depth, const char *pathfmt, ...)
 {
@@ -378,6 +379,7 @@ hts_settings_load_r(int depth, const char *pathfmt, ...)
 /**
  *
  */
+
 void
 hts_settings_remove(const char *pathfmt, ...)
 {
@@ -402,6 +404,7 @@ hts_settings_remove(const char *pathfmt, ...)
 /**
  *
  */
+
 int
 hts_settings_open_file(int flags, const char *pathfmt, ...)
 {
@@ -430,6 +433,7 @@ hts_settings_open_file(int flags, const char *pathfmt, ...)
 /*
  * Check if a path exists
  */
+
 int
 hts_settings_exists ( const char *pathfmt, ... )
 {
@@ -448,6 +452,7 @@ hts_settings_exists ( const char *pathfmt, ... )
 /*
  * XDG user directory support
  */
+
 char *
 hts_settings_get_xdg_dir_lookup (const char *name)
 {
index bf852462811c534e00493c399402d41b2b98be61..6afa4faecf6659518deacf7e1a5fdff9467e81ce 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Functions for storing program settings
- *  Copyright (C) 2008 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Functions for storing program settings
  */
 
 #ifndef HTSSETTINGS_H__
index 89b65402c7526b90da40dfda1e1901ed73847b70..e6c30937b76702e97a3d93cbee2b60103eaaf0c7 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Process spawn functions
- *  Copyright (C) 2008 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Process spawn functions
  */
 
 #include <sys/types.h>
@@ -67,6 +56,7 @@ static void spawn_reaper(void);
 /*
  *
  */
+
 #define SPAWN_PIPE_READ_SIZE 4096
 
 static void
@@ -184,6 +174,7 @@ spawn_error( const char *fmt, ... )
 /*
  * Search PATH for executable
  */
+
 int
 find_exec ( const char *name, char *out, size_t len )
 {
@@ -224,6 +215,7 @@ find_exec ( const char *name, char *out, size_t len )
 /**
  * Reap one child
  */
+
 int
 spawn_reap(pid_t wpid, char *stxt, size_t stxtlen)
 {
@@ -278,6 +270,7 @@ spawn_reap(pid_t wpid, char *stxt, size_t stxtlen)
 /**
  * The reaper is called once a second to finish of any pending spawns
  */
+
 static void
 spawn_reaper(void)
 {
@@ -307,6 +300,7 @@ spawn_reaper(void)
 /**
  * Kill the pid (only if waiting)
  */
+
 int
 spawn_kill(pid_t pid, int sig, int timeout)
 {
@@ -339,6 +333,7 @@ spawn_kill(pid_t pid, int sig, int timeout)
 /**
  * Enqueue a spawn on the pending spawn list
  */
+
 static spawn_t *
 spawn_enq(const char *name, int pid)
 {
@@ -355,6 +350,7 @@ spawn_enq(const char *name, int pid)
 /**
  *
  */
+
 int
 spawn_parse_args(char ***argv, int argc, const char *cmd, const char **replace)
 {
@@ -442,6 +438,7 @@ spawn_parse_args(char ***argv, int argc, const char *cmd, const char **replace)
 /**
  *
  */
+
 void
 spawn_free_args(char **argv)
 {
@@ -454,6 +451,7 @@ spawn_free_args(char **argv)
 /**
  * Execute the given program and return its standard output as file-descriptor (pipe).
  */
+
 int
 spawn_and_give_stdout(const char *prog, char *argv[], char *envp[],
                       int *rd, pid_t *pid, int redir_stderr)
@@ -598,6 +596,7 @@ spawn_and_give_stdout(const char *prog, char *argv[], char *envp[],
  * Execute the given program and return its standard input as file-descriptor (pipe).
  * The standard output file-decriptor (od) must be valid, too.
  */
+
 int
 spawn_with_passthrough(const char *prog, char *argv[], char *envp[],
                        int od, int *wd, pid_t *pid, int redir_stderr)
@@ -738,6 +737,7 @@ spawn_with_passthrough(const char *prog, char *argv[], char *envp[],
  * 
  * *outp will point to the allocated buffer
  */
+
 int
 spawnv(const char *prog, char *argv[], pid_t *pid, int redir_stdout, int redir_stderr)
 {
@@ -821,6 +821,7 @@ spawnv(const char *prog, char *argv[], pid_t *pid, int redir_stdout, int redir_s
 /*
  *
  */
+
 void spawn_init(void)
 {
   tvh_pipe(O_NONBLOCK, &spawn_pipe_info);
index 12c0b2ec8e4a4bec76efd1d9e33f0aca8277461c..8beeec9a879c550f6df95974b7920b2d658f9d77 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Process spawn functions
- *  Copyright (C) 2008 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Process spawn functions
  */
 
 #ifndef SPAWN_H
index 54f48b9ec51f56d590703ca90c7292ec19946939..e3352e3d2c3308a0e065503c2ee10007d9ef7d25 100644 (file)
@@ -1,19 +1,6 @@
-/**
- *  Streaming helpers
- *  Copyright (C) 2008 Andreas Ã–man
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+/*
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man
  */
 
 #include <string.h>
@@ -39,6 +26,7 @@ streaming_pad_init(streaming_pad_t *sp)
 /**
  *
  */
+
 void
 streaming_target_init(streaming_target_t *st, streaming_ops_t *ops,
                       void *opaque, int reject_filter)
@@ -51,6 +39,7 @@ streaming_target_init(streaming_target_t *st, streaming_ops_t *ops,
 /**
  *
  */
+
 static size_t
 streaming_message_data_size(streaming_message_t *sm)
 {
@@ -69,6 +58,7 @@ streaming_message_data_size(streaming_message_t *sm)
 /**
  *
  */
+
 static void
 streaming_queue_deliver(void *opauqe, streaming_message_t *sm)
 {
@@ -91,6 +81,7 @@ streaming_queue_deliver(void *opauqe, streaming_message_t *sm)
 /**
  *
  */
+
 static htsmsg_t *
 streaming_queue_info(void *opaque, htsmsg_t *list)
 {
@@ -108,6 +99,7 @@ streaming_queue_info(void *opaque, htsmsg_t *list)
 /**
  *
  */
+
 void
 streaming_queue_remove(streaming_queue_t *sq, streaming_message_t *sm)
 {
@@ -118,6 +110,7 @@ streaming_queue_remove(streaming_queue_t *sq, streaming_message_t *sm)
 /**
  *
  */
+
 void
 streaming_queue_init(streaming_queue_t *sq, int reject_filter, size_t maxsize)
 {
@@ -139,6 +132,7 @@ streaming_queue_init(streaming_queue_t *sq, int reject_filter, size_t maxsize)
 /**
  *
  */
+
 void
 streaming_queue_deinit(streaming_queue_t *sq)
 {
@@ -151,6 +145,7 @@ streaming_queue_deinit(streaming_queue_t *sq)
 /**
  *
  */
+
 void
 streaming_queue_clear(struct streaming_message_queue *q)
 {
@@ -165,6 +160,7 @@ streaming_queue_clear(struct streaming_message_queue *q)
 /**
  *
  */
+
 void
 streaming_target_connect(streaming_pad_t *sp, streaming_target_t *st)
 {
@@ -178,6 +174,7 @@ streaming_target_connect(streaming_pad_t *sp, streaming_target_t *st)
 /**
  *
  */
+
 void
 streaming_target_disconnect(streaming_pad_t *sp, streaming_target_t *st)
 {
@@ -198,6 +195,7 @@ streaming_target_disconnect(streaming_pad_t *sp, streaming_target_t *st)
 /**
  *
  */
+
 streaming_message_t *
 streaming_msg_create(streaming_message_type_t type)
 {
@@ -215,6 +213,7 @@ streaming_msg_create(streaming_message_type_t type)
 /**
  *
  */
+
 streaming_message_t *
 streaming_msg_create_pkt(th_pkt_t *pkt)
 {
@@ -228,6 +227,7 @@ streaming_msg_create_pkt(th_pkt_t *pkt)
 /**
  *
  */
+
 streaming_message_t *
 streaming_msg_create_data(streaming_message_type_t type, void *data)
 {
@@ -240,6 +240,7 @@ streaming_msg_create_data(streaming_message_type_t type, void *data)
 /**
  *
  */
+
 streaming_message_t *
 streaming_msg_create_code(streaming_message_type_t type, int code)
 {
@@ -253,6 +254,7 @@ streaming_msg_create_code(streaming_message_type_t type, int code)
 /**
  *
  */
+
 streaming_message_t *
 streaming_msg_clone(streaming_message_t *src)
 {
@@ -326,6 +328,7 @@ streaming_msg_clone(streaming_message_t *src)
 /**
  *
  */
+
 void
 streaming_start_unref(streaming_start_t *ss)
 {
@@ -344,6 +347,7 @@ streaming_start_unref(streaming_start_t *ss)
 /**
  *
  */
+
 void
 streaming_msg_free(streaming_message_t *sm)
 {
@@ -394,6 +398,7 @@ streaming_msg_free(streaming_message_t *sm)
 /**
  *
  */
+
 void
 streaming_target_deliver2(streaming_target_t *st, streaming_message_t *sm)
 {
@@ -406,6 +411,7 @@ streaming_target_deliver2(streaming_target_t *st, streaming_message_t *sm)
 /**
  *
  */
+
 void
 streaming_pad_deliver(streaming_pad_t *sp, streaming_message_t *sm)
 {
@@ -429,6 +435,7 @@ streaming_pad_deliver(streaming_pad_t *sp, streaming_message_t *sm)
 /**
  *
  */
+
 void
 streaming_service_deliver(service_t *t, streaming_message_t *sm)
 {
@@ -441,6 +448,7 @@ streaming_service_deliver(service_t *t, streaming_message_t *sm)
 /**
  *
  */
+
 const char *
 streaming_code2txt(int code)
 {
@@ -522,6 +530,7 @@ streaming_code2txt(int code)
 /**
  *
  */
+
 streaming_start_t *
 streaming_start_copy(const streaming_start_t *src)
 {
@@ -548,6 +557,7 @@ streaming_start_copy(const streaming_start_t *src)
 /**
  *
  */
+
 streaming_start_component_t *
 streaming_start_component_find_by_index(streaming_start_t *ss, int idx)
 {
@@ -562,6 +572,7 @@ streaming_start_component_find_by_index(streaming_start_t *ss, int idx)
 /**
  *
  */
+
 static struct strtab streamtypetab[] = {
   { "NONE",       SCT_NONE },
   { "UNKNOWN",    SCT_UNKNOWN },
@@ -595,6 +606,7 @@ static struct strtab streamtypetab[] = {
 /**
  *
  */
+
 const char *
 streaming_component_type2txt(streaming_component_type_t s)
 {
@@ -638,6 +650,7 @@ const char *signal2str(signal_state_t st)
 /*
  *
  */
+
 void streaming_init(void)
 {
   memoryinfo_register(&streaming_msg_memoryinfo);
index c90034358ad5f089606b0488bf8368c0c835b334..5782e1f6c2716896af133c786aab716ed5827377 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Stream plumbing, connects individual streaming components to each other
- *  Copyright (C) 2008 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Stream plumbing, connects individual streaming components to each other
  */
 
 #ifndef STREAMING_H_
index cfe0fa03415abf649c94737d599561556b5e0a76..5176d7518ef9c6f3f364560f057f1c879c947979 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Sorted String List Functions
- *  Copyright (C) 2017 Tvheadend Project (https://tvheadend.org)
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2017 Tvheadend Project (https://tvheadend.org)
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Sorted String List Functions
  */
 
 #include "string_list.h"
index e60ead66ea24207ab9566c5089ba6dc28912dabd..81dc9ede89a3c999fc456335f7465513abf1d894 100644 (file)
@@ -1,20 +1,10 @@
 /*
- *  Sorted String List Functions
- *  Copyright (C) 2017 Tvheadend Project (https://tvheadend.org)
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2017 Tvheadend Project (https://tvheadend.org)
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Sorted String List Functions
  */
+
 #ifndef STRING_LIST_H
 #define STRING_LIST_H
 
@@ -23,6 +13,7 @@
 /*
  * External forward decls
  */
+
 struct htsmsg;
 
 /// Simple _sorted_ string list type and helper functions.
index 08f490e1dfff77a663b790fc58dd62a5bf584316..d73694c66678c6c3d682f8b92b1a6a20957221ff 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, transport and subscription functions
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, transport and subscription functions
  */
 
 #include "tvheadend.h"
index 1416f37470570d27e649a4dfa55d1ce48f6257c6..80f3376b6ae5f5e2e74f9c71720466b70f2d8189 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, subscription functions
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, subscription functions
  */
 
 #ifndef SUBSCRIPTIONS_H
index 0c86146a8e13e4c6704b7dd95252a2dc8a126221..3c17b418bc94ed69e50f1d59db70f6e8aacab2b0 100644 (file)
--- a/src/tcp.c
+++ b/src/tcp.c
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, TCP common functions
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, TCP common functions
  */
 
 #include <fcntl.h>
@@ -48,6 +37,7 @@ th_pipe_t tcp_server_pipe;
 /**
  *
  */
+
 int
 socket_set_dscp(int sockfd, uint32_t dscp, char *errbuf, size_t errbufsize)
 {
@@ -66,6 +56,7 @@ socket_set_dscp(int sockfd, uint32_t dscp, char *errbuf, size_t errbufsize)
 /**
  *
  */
+
 int
 ip_check_is_local_address
   (const struct sockaddr_storage *peer, const struct sockaddr_storage *local,
@@ -108,6 +99,7 @@ ip_check_is_local_address
 /**
  *
  */
+
 int
 tcp_connect(const char *hostname, int port, const char *bindaddr,
             char *errbuf, size_t errbufsize, int timeout)
@@ -254,6 +246,7 @@ error:
 /**
  *
  */
+
 int
 tcp_write_queue(int fd, htsbuf_queue_t *q)
 {
@@ -277,6 +270,7 @@ tcp_write_queue(int fd, htsbuf_queue_t *q)
 /**
  *
  */
+
 static int
 tcp_fill_htsbuf_from_fd(int fd, htsbuf_queue_t *hq)
 {
@@ -325,6 +319,7 @@ tcp_fill_htsbuf_from_fd(int fd, htsbuf_queue_t *hq)
 /**
  *
  */
+
 char *
 tcp_read_line(int fd, htsbuf_queue_t *spill)
 {
@@ -355,6 +350,7 @@ tcp_read_line(int fd, htsbuf_queue_t *spill)
 /**
  *
  */
+
 int
 tcp_read_data(int fd, char *buf, const size_t bufsize, htsbuf_queue_t *spill)
 {
@@ -373,6 +369,7 @@ tcp_read_data(int fd, char *buf, const size_t bufsize, htsbuf_queue_t *spill)
 /**
  *
  */
+
 int
 tcp_read(int fd, void *buf, size_t len)
 {
@@ -389,6 +386,7 @@ tcp_read(int fd, void *buf, size_t len)
 /**
  *
  */
+
 int
 tcp_read_timeout(int fd, void *buf, size_t len, int timeout)
 {
@@ -434,6 +432,7 @@ tcp_read_timeout(int fd, void *buf, size_t len, int timeout)
 /**
  *
  */
+
 int
 tcp_socket_dead(int fd)
 {
@@ -457,6 +456,7 @@ tcp_socket_dead(int fd)
 /**
  *
  */
+
 char *
 tcp_get_str_from_ip(const struct sockaddr_storage *sa, char *dst, size_t maxlen)
 {
@@ -482,6 +482,7 @@ tcp_get_str_from_ip(const struct sockaddr_storage *sa, char *dst, size_t maxlen)
 /**
  *
  */
+
 struct sockaddr_storage *
 tcp_get_ip_from_str(const char *src, struct sockaddr_storage *sa)
 {
@@ -506,6 +507,7 @@ tcp_get_ip_from_str(const char *src, struct sockaddr_storage *sa)
 /**
  *
  */
+
 static tvhpoll_t *tcp_server_poll;
 static uint32_t tcp_server_launch_id;
 
@@ -542,6 +544,7 @@ static LIST_HEAD(, tcp_server_launch) tcp_server_join = { 0 };
 /**
  *
  */
+
 uint32_t
 tcp_connection_count(access_t *aa)
 {
@@ -562,6 +565,7 @@ tcp_connection_count(access_t *aa)
 /**
  *
  */
+
 void *
 tcp_connection_launch
   (int fd, int streaming, void (*status) (void *opaque, htsmsg_t *m), access_t *aa)
@@ -630,6 +634,7 @@ try_again:
 /**
  *
  */
+
 void
 tcp_connection_land(void *tcp_id)
 {
@@ -650,6 +655,7 @@ tcp_connection_land(void *tcp_id)
 /**
  *
  */
+
 void
 tcp_connection_cancel(uint32_t id)
 {
@@ -668,6 +674,7 @@ tcp_connection_cancel(uint32_t id)
 /**
  *
  */
+
 void
 tcp_connection_cancel_all(void)
 {
@@ -683,6 +690,7 @@ tcp_connection_cancel_all(void)
 /*
  *
  */
+
 static void *
 tcp_server_start(void *aux)
 {
@@ -737,6 +745,7 @@ tcp_server_start(void *aux)
 /**
  *
  */
+
 static void *
 tcp_server_loop(void *aux)
 {
@@ -826,6 +835,7 @@ next:
 /**
  *
  */
+
 #if ENABLE_LIBSYSTEMD_DAEMON
 static void *tcp_server_create_new
 #else
@@ -913,6 +923,7 @@ void *tcp_server_create
 /**
  *
  */
+
 void *
 tcp_server_create
   (int subsystem, const char *name, const char *bindaddr,
@@ -984,6 +995,7 @@ tcp_server_create
 /**
  *
  */
+
 void tcp_server_register(void *server)
 {
   tcp_server_t *ts = server;
@@ -997,6 +1009,7 @@ void tcp_server_register(void *server)
 /**
  *
  */
+
 void
 tcp_server_delete(void *server)
 {
@@ -1016,6 +1029,7 @@ tcp_server_delete(void *server)
 /**
  *
  */
+
 int
 tcp_default_ip_addr ( struct sockaddr_storage *deflt, int family )
 {
@@ -1065,6 +1079,7 @@ tcp_default_ip_addr ( struct sockaddr_storage *deflt, int family )
 /**
  *
  */
+
 int
 tcp_server_bound ( void *server, struct sockaddr_storage *bound, int family )
 {
@@ -1101,6 +1116,7 @@ tcp_server_bound ( void *server, struct sockaddr_storage *bound, int family )
 /**
  *
  */
+
 int
 tcp_server_onall ( void *server )
 {
@@ -1121,6 +1137,7 @@ tcp_server_onall ( void *server )
 /*
  * Connections status
  */
+
 htsmsg_t *
 tcp_server_connections ( void )
 {
@@ -1159,6 +1176,7 @@ tcp_server_connections ( void )
 /*
  * Connections count
  */
+
 int
 tcp_server_connections_count ( void )
 {
@@ -1176,6 +1194,7 @@ tcp_server_connections_count ( void )
 /**
  *
  */
+
 pthread_t tcp_server_tid;
 
 void
index 2ae9c1d39fc6497d12d6abc5f85062afdc450cc0..ee3bab9f72b362d8a6b49f65e5b5885c5a01121c 100644 (file)
--- a/src/tcp.h
+++ b/src/tcp.h
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, TCP common functions
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, TCP common functions
  */
 
 #ifndef TCP_H_
index 463aa17d61dc5873dea792f5823ba7352c8ac796..9d142c2f8be051ed233b49682d250c4ac22738c5 100644 (file)
@@ -3,6 +3,7 @@
 #include <stdint.h>
 
 /* Parent */
+
 typedef struct obj_a
 {
   idnode_t a_id;
@@ -18,6 +19,7 @@ typedef struct obj_a
 extern const idclass_t obj_a_class;
 
 /* Child */
+
 typedef struct obj_b
 {
   obj_a_t;
index be5655318c0bc6afebf04247e76eef177030f619..da588b3752f55872f42d598179027bc6038c7fba 100644 (file)
@@ -1,19 +1,6 @@
-/**
- *  TV headend - Timeshift
- *  Copyright (C) 2012 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+/*
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  */
 
 #include "tvheadend.h"
index a97621cb540d5d25fdb25791111d44ac1d7c9adf..9e723878fa606fe7bc90b0add007fe1704994582 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  TV headend - Timeshift
- *  Copyright (C) 2012 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * TV headend - Timeshift
  */
 
 #ifndef __TVH_TIMESHIFT_H__
index c6a5609f260b3bb2c58b8c6cf78d7e004594a512..ea9cb938182c97f164d94b0fa220d51304b395db 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  TV headend - Timeshift
- *  Copyright (C) 2012 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * TV headend - Timeshift
  */
 
 #ifndef __TVH_TIMESHIFT_PRIVATE_H__
@@ -26,6 +15,7 @@
 /**
  * Indexes of import data in the stream
  */
+
 typedef struct timeshift_index_iframe
 {
   off_t                               pos;    ///< Position in the file
@@ -38,6 +28,7 @@ typedef TAILQ_HEAD(timeshift_index_iframe_list,timeshift_index_iframe) timeshift
 /**
  * Indexes of import data in the stream
  */
+
 typedef struct timeshift_index_data
 {
   off_t                             pos;    ///< Position in the file
@@ -50,6 +41,7 @@ typedef TAILQ_HEAD(timeshift_index_data_list,timeshift_index_data) timeshift_ind
 /**
  * Timeshift file
  */
+
 typedef struct timeshift_file
 {
   int                           wfd;      ///< Write descriptor
@@ -82,6 +74,7 @@ typedef TAILQ_HEAD(timeshift_file_list,timeshift_file) timeshift_file_list_t;
 /**
  *
  */
+
 typedef struct timeshift_seek {
   timeshift_file_t           *file;
   timeshift_index_iframe_t   *frame;
@@ -90,6 +83,7 @@ typedef struct timeshift_seek {
 /**
  *
  */
+
 typedef struct timeshift {
   // Note: input MUST BE FIRST in struct
   streaming_target_t          input;      ///< Input source
@@ -142,6 +136,7 @@ typedef struct timeshift {
 /*
  *
  */
+
 extern uint64_t timeshift_total_size;
 extern uint64_t timeshift_total_ram_size;
 
@@ -158,6 +153,7 @@ static inline void timeshift_packet_log
 /*
  * Write functions
  */
+
 ssize_t timeshift_write_start   ( timeshift_file_t *tsf, int64_t time, streaming_start_t *ss );
 ssize_t timeshift_write_sigstat ( timeshift_file_t *tsf, int64_t time, signal_status_t *ss );
 ssize_t timeshift_write_packet  ( timeshift_file_t *tsf, int64_t time, th_pkt_t *pkt );
@@ -171,12 +167,14 @@ ssize_t timeshift_write_eof     ( timeshift_file_t *tsf );
 /*
  * Threads
  */
+
 void *timeshift_reader ( void *p );
 void *timeshift_writer ( void *p );
 
 /*
  * File management
  */
+
 void timeshift_filemgr_init     ( void );
 void timeshift_filemgr_term     ( void );
 int  timeshift_filemgr_makedirs ( int ts_index, char *buf, size_t len );
index e82e2cf3311b7b10a4b8c9acc68fae1fec5d315f..a9f6d10d5fafa4152cbec6b0cef780dd7222cb6f 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  TV headend - Timeshift File Manager
- *  Copyright (C) 2012 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * TV headend - Timeshift File Manager
  */
 
 #include <fcntl.h>
index 6339a948550b8f36207eb38372780331f1d78814..58a443bfdeaa8f9cbc9e90f46960180a6476b7cc 100644 (file)
@@ -1,19 +1,6 @@
-/**
- *  TV headend - Timeshift Reader
- *  Copyright (C) 2012 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+/*
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  */
 
 #include "tvheadend.h"
index 9c6591c37f421bd54ca909d96608d8efaeaadf75..4e93a78fde6e53df0c08e7421de63399a4eb166a 100644 (file)
@@ -1,19 +1,6 @@
-/**
- *  TV headend - Timeshift Write Handler
- *  Copyright (C) 2012 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+/*
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  */
 
 #include "tvheadend.h"
index 5d9aeaacb1223e9e6bb1025c7f569fcef9523f92..60395f381e8646a37ca76d033bde72f6f4511b3c 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, Gather timing statistics - profiling
- *  Copyright (C) 2018 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2018 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, Gather timing statistics - profiling
  */
 
 #include <assert.h>
index ddfba6e9afa1a4d04c5b094cb8239cba7a03501f..64934fcb402361150ae490718818a834a13b22c5 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, Gather timing statistics - profiling
- *  Copyright (C) 2018 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2018 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, Gather timing statistics - profiling
  */
 
 #ifndef __TVH_TPROFILE_H__
index 97a25e498ec6ff6e4d879c94f7499d727e2e559c..e3da293186d584543c78996d4964dd2c3d5ce9d4 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Codec Profiles
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Codec Profiles
  */
 
-
 #ifndef TVH_TRANSCODING_CODEC_H__
 #define TVH_TRANSCODING_CODEC_H__
 
index 6e5d1e3e78f8031e2701cba2a313cfc74e96237e..532d7d5dea46a7bee4534a7452f4b9e570fa9f12 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Codec Profiles
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Codec Profiles
  */
 
-
 #include "internals.h"
 
 #if ENABLE_VAAPI
index 63239083aab03856b868113b80b9f9dc9c3dd67f..c3d76ee161d2a7979e82cf73d9764a4e4062e3b1 100644 (file)
@@ -1,27 +1,15 @@
 /*
- *  tvheadend - Codec Profiles
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Codec Profiles
  */
 
-
 #include "transcoding/codec/internals.h"
 
 
 /* aac ====================================================================== */
+
 // see aacenc_profiles[] ffmpeg-7.0/libavcodec/aacenctab.h + AV_PROFILE_UNKNOWN
 static const AVProfile aac_profiles[] = {
     { FF_AV_PROFILE_AAC_MAIN,      "Main" },
index 3bb62c45453dd25fae29ab84f7754d979ae7c079..9bf9b708375dc9770bd84292c2a36e24e0b170f1 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Codec Profiles
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Codec Profiles
  */
 
-
 #include "transcoding/codec/internals.h"
 
 
index 6aeeb43d294dbe3c7d8632080fd1f1a509ed3e28..08602bd8cbea44d7c420875ed134f04c3d8ca147 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Codec Profiles
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Codec Profiles
  */
 
-
 #include "transcoding/codec/internals.h"
 
 
index 0efdca617d6bfd76c60595fe7d341c6fdb249fc7..291260d47bd1f5c07e6d77081a7b1c75dc99f4df 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Codec Profiles
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Codec Profiles
  */
 
-
 #include "transcoding/codec/internals.h"
 
 #include <opus/opus_defines.h>
index cc64ed0af419a687205f5234cc92831e700a392b..3c8b37a6ec91afb4910cd609b8e06ff326eba5e2 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Codec Profiles
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Codec Profiles
  */
 
-
 #include "transcoding/codec/internals.h"
 
 
index cc66aad3ac3cd182c6567eb53bb8ade75504451a..33d329ce7c8640fef6f96024ec6b55335fc09b92 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Codec Profiles
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Codec Profiles
  */
 
-
 #include "transcoding/codec/internals.h"
 
 
index ee9445f3cce3461442f1d5b65fc190c403c5ab61..3d4a91fa10a316d9ffe30be3e4bca01f0ee61a55 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Codec Profiles
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Codec Profiles
  */
 
-
 #include "transcoding/codec/internals.h"
 
 #include <vpx/vp8cx.h>
index abe3ca443289f03fbba951328e693d73fa2b1c7e..5db83f23b7ac4b82dd57f94f0e3d93c01c37af72 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Codec Profiles
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Codec Profiles
  */
 
-
 #include "transcoding/codec/internals.h"
 
 
index 914fb5ac2b8ce7b09663808b882059f816f347bc..cef1ba7c6c125d33400de6f416106202551521af 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Codec Profiles
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2017 Tvheadend
  *
- *  Copyright (C) 2017 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Codec Profiles
  */
 
-
 #include "transcoding/codec/internals.h"
 #include <fcntl.h>
 #include <sys/ioctl.h>
index 916fcddbbd8fd90f73d4036fc3fe71fc8a3e28df..c459c830993b94b72e9ed2845ad39ecb2f892d63 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Codec Profiles
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Codec Profiles
  */
 
-
 #include "transcoding/codec/internals.h"
 
 
index 1cc77fae36d15dbefe88c82034d1f00c751a4483..d1dedf69247443f6445d420d662529c3ebf2da91 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Codec Profiles
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Codec Profiles
  */
 
-
 #include "transcoding/codec/internals.h"
 #include <fcntl.h>
 #include <sys/ioctl.h>
index e26ad3eb89f211c813dd7638bf36b2249e22a344..c8cff9a27e34a5ee2f9507352e3682745a258c17 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Codec Profiles
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Codec Profiles
  */
 
-
 #include "transcoding/codec/internals.h"
 
 
index d50601f87b6622cefe3ce3744b4fabf7b00020ed..682e0c5df77784eebd3f58672ba10114e1c9ebd3 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Codec Profiles
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Codec Profiles
  */
 
-
 #include "transcoding/codec/internals.h"
 
 
index 17a718c88bb0b947be24334e648e13b59142e0ce..1688c77f37478e4320fe0ba44727b51cfb2e0061 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Codec Profiles
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Codec Profiles
  */
 
-
 #include "transcoding/codec/internals.h"
 
 
index f60b77be425ce074cc8556c523876bf2dcd9923e..3a349d4f71cc073a177d4d2685f15d335ee119ed 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Codec Profiles
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Codec Profiles
  */
 
-
 #ifndef TVH_TRANSCODING_CODEC_INTERNALS_H__
 #define TVH_TRANSCODING_CODEC_INTERNALS_H__
 
index bfe62442735e60306bd38ddc3e20c5cd21e1c98f..edc2a1791f6cb00027993bf8489127f93f8e0689 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Codec Profiles
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Codec Profiles
  */
 
-
 #include "internals.h"
 
 
index 2e1dff4447fdd13339be9db2fabad9ffbd567f9c..1c4a350bd59413ca7e2720497fd8fd5829c5965b 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Codec Profiles
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Codec Profiles
  */
 
-
 #include "internals.h"
 
 #include "settings.h"
index f82a68a0b1c5f741d45d0ca18a35970581ad514d..05a1d9eb1194ea36fefc38217d7f3b4bfcbe095c 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Codec Profiles
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Codec Profiles
  */
 
-
 #include "internals.h"
 
 #include "lang_codes.h"
index c093a43b64bad609e0f0b9f8f68715143eee50ad..c917c01402094be35be95662976698aa893313ab 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Codec Profiles
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Codec Profiles
  */
 
-
 #include "internals.h"
 
 #include "access.h"
index 20f87dd6e7b0580e678a57a07ac96b523bb83914..7fe0c8575aeff101c25194cc3f8934c0ec51e1bc 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Codec Profiles
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Codec Profiles
  */
 
-
 #include "internals.h"
 
 #include <libavutil/pixdesc.h>
index cca42a13b02448f1702df8d35ce7f526030c4a70..69d545a7e283dfea9a06972a768ab6043e97d284 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Transcoding
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2023 Tvheadend
  *
- *  Copyright (C) 2023 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Transcoding
  */
 
-
 #include "vainfo.h"
 #include "internals.h"
 
@@ -574,4 +561,4 @@ int vainfo_encoder_maxQuality(int codec)
 void vainfo_deinit()
 {
     // this function should not be called
-}
\ No newline at end of file
+}
index 21d2a4dce61679c322cb7148fb6af0f0206a7b84..0690110ee7b28ae5c76fffa1ad6191243123bebb 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Transcoding
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2023 Tvheadend
  *
- *  Copyright (C) 2023 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Transcoding
  */
 
-
 #ifndef TVH_TRANSCODING_TRANSCODE_CODEC_VAINFO_H__
 #define TVH_TRANSCODING_TRANSCODE_CODEC_VAINFO_H__
 
@@ -29,6 +16,7 @@
  * Will not print output with detected codec/profiles
  * 
  */
+
 #define VAINFO_DONT_SHOW_LOGS   0
 
 /**
@@ -38,6 +26,7 @@
  * Will print output with detected codec/profiles
  * 
  */
+
 #define VAINFO_SHOW_LOGS        1
 
 
  * @note
  * Define used when calling functions for H264
  */
+
 #define VAINFO_H264                 1
 /**
  * VAINFO CODEC DEFINE.
  * @note
  * Define used when calling functions for H264 low power
  */
+
 #define VAINFO_H264_LOW_POWER       2
 /**
  * VAINFO CODEC DEFINE.
  * @note
  * Define used when calling functions for HEVC
  */
+
 #define VAINFO_HEVC                 3
 /**
  * VAINFO CODEC DEFINE.
  * @note
  * Define used when calling functions for HEVC low power
  */
+
 #define VAINFO_HEVC_LOW_POWER       4
 /**
  * VAINFO CODEC DEFINE.
  * @note
  * Define used when calling functions for VP8
  */
+
 #define VAINFO_VP8                  5
 /**
  * VAINFO CODEC DEFINE.
  * @note
  * Define used when calling functions for VP8 low power
  */
+
 #define VAINFO_VP8_LOW_POWER        6
 /**
  * VAINFO CODEC DEFINE.
  * @note
  * Define used when calling functions for VP9
  */
+
 #define VAINFO_VP9                  7
 /**
  * VAINFO CODEC DEFINE.
  * @note
  * Define used when calling functions for VP9 low power
  */
+
 #define VAINFO_VP9_LOW_POWER        8
 
 /**
  * 0 = no logs generated
  * 
  */
+
 int vainfo_init(int show_log);
 
 
@@ -114,6 +112,7 @@ int vainfo_init(int show_log);
  * 1 - if encoder is available
  * 
  */
+
 int vainfo_encoder_isavailable(int codec);
 
 
@@ -126,6 +125,7 @@ int vainfo_encoder_isavailable(int codec);
  * > 0 - if encoder is supporting B frames and how many (MAX = 7)
  * 
  */
+
 int vainfo_encoder_maxBfreames(int codec);
 
 
@@ -138,6 +138,7 @@ int vainfo_encoder_maxBfreames(int codec);
  * 1 - if encoder is supporting Quality and how much (MAX = 15)
  * 
  */
+
 int vainfo_encoder_maxQuality(int codec);
 
 
@@ -148,6 +149,7 @@ int vainfo_encoder_maxQuality(int codec);
  * Return all variables to default state
  * 
  */
+
 void vainfo_deinit(void);
 
-#endif // TVH_TRANSCODING_TRANSCODE_CODEC_VAINFO_H__
\ No newline at end of file
+#endif // TVH_TRANSCODING_TRANSCODE_CODEC_VAINFO_H__
index f34eaec90dd2ca366570e74e54b9e6f40da45cff..3fb8588e4c7b6695eecd1ba82c2220e2f8887b46 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Transcoding
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Transcoding
  */
 
-
 #include "memutils.h"
 
 #include <libavutil/mem.h>
@@ -105,6 +92,7 @@ str_snprintf(char *str, size_t size, const char *format, ...)
 
 /* _IMPORTANT!_: need to check for pb->pb_size and pb->pb_data
    _BEFORE_ calling pktbuf_copy_data */
+
 uint8_t *
 pktbuf_copy_data(pktbuf_t *pb)
 {
index 3ca2c9ebe71019db5ae405d1c4dba6cb9e249b1e..c0f3c0abca5b1014c36c23554f10af0202af10b4 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Transcoding
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Transcoding
  */
 
-
 #ifndef TVH_TRANSCODING_MEMUTILS_H__
 #define TVH_TRANSCODING_MEMUTILS_H__
 
@@ -60,6 +47,7 @@ str_snprintf(char *str, size_t size, const char *format, ...);
 
 /* _IMPORTANT!_: need to check for pb->pb_size and pb->pb_data
    _BEFORE_ calling pktbuf_copy_data */
+
 uint8_t *
 pktbuf_copy_data(pktbuf_t *pb);
 
index 4708919bcdb23cade996454090e524e8ba0e228b..ba875b99f24b9bbb6b0ced6a0360fd71127c4658 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Transcoding
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Transcoding
  */
 
-
 #ifndef TVH_TRANSCODING_TRANSCODE_H__
 #define TVH_TRANSCODING_TRANSCODE_H__
 
index 6c6119877a68de4a347f6e14ea8f3e5bc79ac253..f79b753b5b151fc4e6075ec80f60f4b996186af4 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Transcoding
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Transcoding
  */
 
-
 #include "internals.h"
 
 
index 6d939e8f034e434cb0299f65d7e406cce35006e6..6c270e7e7b7942012aab76141569432d37b8c04b 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Transcoding
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Transcoding
  */
 
-
 #include "internals.h"
 
 #include <libavutil/opt.h>
index 025512f63c695548eb2636ed5f77ed166a5a074b..22c47997297af82e4f3c4acda12d47c24edf457e 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Transcoding
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Transcoding
  */
 
-
 #include "internals.h"
 
 #include "parsers/parsers.h"
index 55b772ccb6d9663956c9901f6dc6d8fb9c61ee35..1f9373afc37c3dff5fca01fc46f2f6a23b9c6ade 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  tvheadend - Transcoding
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Transcoding
  */
 
 #include "hwaccels.h"
index ed04f67485fd8f4540585bf0675e1c2e00c6e9fc..983ef083b881ab52e7770951599fdf31206bec45 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Transcoding
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Transcoding
  */
 
-
 #ifndef TVH_TRANSCODING_TRANSCODE_HWACCELS_H__
 #define TVH_TRANSCODING_TRANSCODE_HWACCELS_H__
 
index 15473773efa2b73aaa76a2ebb860fe08375fe260..e1710d7260f4f9d010c4db1a7d2366106374cd77 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  tvheadend - Transcoding
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Transcoding
  */
 
 #include "../../codec/internals.h"
index 57417b052701b833d369c0fb9d4f4d16779424e7..bdd0c25254294bff8a035448ca314fa5f92992ff 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Transcoding
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Transcoding
  */
 
-
 #ifndef TVH_TRANSCODING_TRANSCODE_HWACCELS_VAAPI_H__
 #define TVH_TRANSCODING_TRANSCODE_HWACCELS_VAAPI_H__
 
index 2bf58b002de40805831d9581f7adf4712689a69c..1f24cc46caa9c69c8f2325e5836730da5c584fb0 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Transcoding
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Transcoding
  */
 
-
 #ifndef TVH_TRANSCODING_TRANSCODE_INTERNALS_H__
 #define TVH_TRANSCODING_TRANSCODE_INTERNALS_H__
 
index db471674c000ab1ba3407c7b474eb5c328506bb7..73a26745c06eef77088c32bd7d0a5c7f1546f2da 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Transcoding
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Transcoding
  */
 
-
 #ifndef TVH_TRANSCODING_TRANSCODE_LOG_H__
 #define TVH_TRANSCODING_TRANSCODE_LOG_H__
 
index c41d2f9ae7bc2adaeac5da6288c9896a9d543445..01f16fdc705029b743b0cb7b8b366bc8ab484f58 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Transcoding
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Transcoding
  */
 
-
 #include "transcoding/transcode.h"
 #include "internals.h"
 
index b2b5d20de21f73520a6b562b44b7516590b51dd2..6ce8ba6dc8858b12c8c5a44b303cf7c836f56e97 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Transcoding
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Transcoding
  */
 
-
 #include "internals.h"
 #include "../codec/internals.h"
 
index 52fe227c634e2de6215efd70d38ff9aac66bfc8d..83579cb99061f0031a052b511de292482696fd25 100644 (file)
@@ -1,23 +1,10 @@
 /*
- *  tvheadend - Transcoding
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Transcoding
  */
 
-
 #include "internals.h"
 #include "../codec/internals.h"
 #include "service.h"
index 92223224cb4bb6d4af7223f24e619db10b9dd85f..e90a9f3edf1e9cc339a24eb417ef67c7ad020fdf 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  tvheadend - Transcoding
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Tvheadend
  *
- *  Copyright (C) 2016 Tvheadend
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend - Transcoding
  */
 
 #include "internals.h"
index 952f5531805b334daa41a14df57910526e04ab33..64bcec0e7be36526dc4f6ea93d310ce81cbf6674 100644 (file)
@@ -1,20 +1,8 @@
-/**
- *  Crash handling
- *  Copyright (C) 2009 Andreas Ã–man
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+/*
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2009 Andreas Ã–man
  */
+
 #include "build.h"
 #include "trap.h"
 
@@ -77,6 +65,7 @@ sappend(char *buf, size_t l, const char *fmt, ...)
 /**
  *
  */
+
 #ifndef ENABLE_LIBUNWIND
 #if ENABLE_EXECINFO
 static int
@@ -139,6 +128,7 @@ addr2lineresolve(const char *binary, intptr_t addr, char *buf0, size_t buflen)
   return 0;
 }
 #endif /* ENABLE_EXECINFO */
+
 #endif
 
 #if ENABLE_LIBUNWIND
@@ -217,6 +207,7 @@ traphandler(int sig, siginfo_t *si, void *UC)
    * handler often terminates without a trace, or does not provide
    * correct function name mapping.
    */
+
 #if ENABLE_LIBUNWIND
   traphandler_libunwind();
   return;
index bc40a284474b4daee243c129dc650ae5e70a1773..b89b50de65a6651690efae63f47f1ae2f34c881a 100644 (file)
@@ -1,19 +1,6 @@
-/**
- *  Crash handling
- *  Copyright (C) 2009 Andreas Ã–man
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+/*
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2009 Andreas Ã–man
  */
 
 #ifndef TRAP_H__
@@ -22,4 +9,3 @@
 void trap_init(const char *swname);
 
 #endif /* TRAP_H__ */
-
index c30638f63982a92581c5b62c493d851949db156b..e25470bbd8e19994985a9d39f8f38a8e78500c46 100644 (file)
@@ -1,18 +1,7 @@
 /*
- * Copyright (c) 2015 Jaroslav Kysela <perex@perex.cz>
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
+ * SPDX-License-Identifier: GPL-3.0-or-later
  *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Copyright (c) 2015 Jaroslav Kysela <perex@perex.cz>
  */
 
 #ifndef __TVH_ENDIAN_H
index 7d1420e99f9d976ea1764b8bfc515a6b146eb317..1c1e33016205f06083c4330470effdd2ac798133 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, internationalization (locale)
- *  Copyright (C) 2015 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2015 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, internationalization (locale)
  */
 
 #include <stdio.h>
index 05564a4000ee2b70587379e9aaaf18ac951b6f80..2172c372bf024deb6149b6b42c2c9f6a8e0329fc 100644 (file)
@@ -1,20 +1,10 @@
 /*
- *  Tvheadend - internationalization (locale)
- *  Copyright (C) 2015 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2015 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - internationalization (locale)
  */
+
 #ifndef __TVH_LOCALE_H__
 #define __TVH_LOCALE_H__
 
index 707a01007fa7d179242c033b372daed21ceafd72..a437bdf6270e95ef10fec0c42cc298802ff7610c 100644 (file)
@@ -1,21 +1,11 @@
 /*
- *  Tvheadend - advanced string functions
- *  Copyright (C) 2007 Andreas Ã–man
- *  Copyright (C) 2014-2018 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
+ * Copyright (C) 2014-2018 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - advanced string functions
  */
+
 #ifndef TVHEADEND_STRING_H
 #define TVHEADEND_STRING_H
 
index 6a019d7a02f3446deefe07cdb581e8192929d40b..fca2dfdcbd35bfb1d0279298f0f0f65a3e65bb6d 100644 (file)
@@ -121,6 +121,7 @@ int tvh_thread_kill(pthread_t thread, int sig)
 }
 
 /* linux style: -19 .. 20 */
+
 int
 tvh_thread_renice(int value)
 {
index 3305ba299724d42f5f20ec2f1f489c9fcfc6c165..2b5545501a0ff63b8918e5d2731f0a845805f039 100644 (file)
@@ -1,20 +1,10 @@
 /*
- *  Tvheadend - mutex functions
- *  Copyright (C) 2018 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2018 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - mutex functions
  */
+
 #ifndef TVHEADEND_THREAD_H
 #define TVHEADEND_THREAD_H
 
index 23f58cbd95bec591e0b85fa8f199da28114445fc..b376bc79ccffd271a84213e6107fb218852bd44c 100644 (file)
@@ -1,20 +1,10 @@
 /*
- *  Tvheadend - structures
- *  Copyright (C) 2007 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2007 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - structures
  */
+
 #ifndef TVHEADEND_H
 #define TVHEADEND_H
 
index bc67e40dc36a3c8f58c116dbc37be4d1b547edc0..95304d35f27ce4bbd639df5e158502b61a4e2d12 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Tvheadend - logging
- *  Copyright (C) 2012 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - logging
  */
 
 #include <stdio.h>
index 481d362e019726b47fafabec01e8cb2693fe936f..dc29080b8442a2481d891bde12277b2984840d3e 100644 (file)
@@ -1,20 +1,10 @@
 /*
- *  Tvheadend - logging
- *  Copyright (C) 2012 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - logging
  */
+
 #ifndef __TVH_LOGGING_H__
 #define __TVH_LOGGING_H__
 
@@ -43,6 +33,7 @@ typedef struct {
 } tvhlog_subsys_t;
 
 /* Config */
+
 extern int              tvhlog_level;
 extern char            *tvhlog_path;
 extern int              tvhlog_options;
@@ -50,6 +41,7 @@ extern tvh_mutex_t      tvhlog_mutex;
 extern tvhlog_subsys_t  tvhlog_subsystems[];
 
 /* Initialise */
+
 void tvhlog_init       ( int level, int options, const char *path );
 void tvhlog_start      ( void );
 void tvhlog_end        ( void );
@@ -73,6 +65,7 @@ static inline int tvhlog_limit ( tvhlog_limit_t *limit, uint32_t delay )
 
 
 /* Options */
+
 #define TVHLOG_OPT_DBG_SYSLOG   0x0001
 #define TVHLOG_OPT_DBG_STDERR   0x0002
 #define TVHLOG_OPT_DBG_FILE     0x0004
@@ -86,6 +79,7 @@ static inline int tvhlog_limit ( tvhlog_limit_t *limit, uint32_t delay )
 #define TVHLOG_OPT_ALL          0xFFFF
 
 /* Levels */
+
 #ifndef LOG_TRACE
 #define LOG_TRACE (LOG_DEBUG+1)
 #endif
@@ -93,6 +87,7 @@ static inline int tvhlog_limit ( tvhlog_limit_t *limit, uint32_t delay )
 #define LOG_TVH_NOTIFY 0x40000000
 
 /* Subsystems */
+
 enum {
   LS_NONE,
   LS_START,
@@ -202,9 +197,11 @@ enum {
   LS_UDP,
   LS_RATINGLABELS,
   LS_LAST     /* keep this last */
+
 };
 
 /* Macros */
+
 #define tvhlog(severity, subsys, fmt, ...)\
   _tvhlog(__FILE__, __LINE__, severity | LOG_TVH_NOTIFY, subsys, fmt, ##__VA_ARGS__)
 #define tvhlog_spawn(severity, subsys, fmt, ...)\
index 71db7036fc4dbbddcebf4a37e4efdc2c5e03ad6b..f892bb6f06318a7ba357d5d99a4cb8beb67d5692 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  TVheadend - poll/select wrapper
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * TVheadend - poll/select wrapper
  */
 
 #include "tvheadend.h"
index a76970b90247c33f860390fcd011a0e864d367a3..95e5e48cfb42208a1391f5aec2a5b9f81c80a95f 100644 (file)
@@ -1,21 +1,8 @@
-
 /*
- *  TVheadend - poll/select wrapper
- *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * TVheadend - poll/select wrapper
  */
 
 #ifndef __TVHPOLL_H__
index b7b8ec1d33812481d203cc0e91dc379ad559eb35..cb81107ae274e8e524e675d894df64def1a9a489 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  TVheadend - regex wrapper
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2017 Jaroslav Kysela
  *
- *  Copyright (C) 2017 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * TVheadend - regex wrapper
  */
 
 #ifndef __TVHREGEX_H__
index 82c910da0dce0124b1c5eddab6ee2c7209b189df..0c7fa7e964b5e8ecd049b278d667134d7907c807 100644 (file)
@@ -18,7 +18,9 @@
 /*
  * NTP processing
  */
+
 #define NTPD_BASE      0x4e545030      /* "NTP0" */
+
 #define NTPD_UNIT      2
 
 #if !ENABLE_ANDROID
@@ -76,6 +78,7 @@ ntp_shm_init ( void )
 /*
  * Update time
  */
+
 void
 tvhtime_update ( time_t utc, const char *srcname )
 {
@@ -133,6 +136,7 @@ tvhtime_update ( time_t utc, const char *srcname )
 }
 
 /* Initialise */
+
 void tvhtime_init ( void )
 {
   if (config.tvhtime_tolerance == 0)
index 4bff0dd144d46a19efcb00c26f54d1f40c50a4f9..7218cfbe2cf50f4d17b1b86b9b356315d363e378 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  TVheadend - time processing
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * TVheadend - time processing
  */
 
 #ifndef __TVH_TIME_H__
index 0be2592a37a623172ee25155a01d0576f2a502c7..2fe9106651b8a7ac6d8304837853ca6db58e59da 100644 (file)
@@ -1,18 +1,7 @@
 /*
- * Copyright (c) 2017 Jaroslav Kysela <perex@perex.cz>
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
+ * SPDX-License-Identifier: GPL-3.0-or-later
  *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Copyright (c) 2017 Jaroslav Kysela <perex@perex.cz>
  */
 
 #include "tvheadend.h"
index 5a33672f6bf33fce89694e033e910c78265626f2..43320df79ad6076768bbcd065a69187b9b1aad6f 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  File system management
- *  Copyright (C) 2015 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2015 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * File system management
  */
 
 #ifndef __TVH_VFS_H__
index 40cb8308b9d9d319dbcd1c83a0427033dc99c07d..03c49588c4aa93679b33cbdd0df857da7ec731d2 100644 (file)
--- a/src/udp.c
+++ b/src/udp.c
@@ -1,21 +1,9 @@
 /*
- *  TVHeadend - UDP common routines
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  Copyright (C) 2013 Adam Sutton
- *  Copyright (C) 2014 Jaroslav Kysela
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * TVHeadend - UDP common routines
  */
 
 #define _GNU_SOURCE
index 75328961a6b3edf9083743f5701ed546d961d727..62e265376f8f3d154708980cd41aa2622ee66568 100644 (file)
--- a/src/udp.h
+++ b/src/udp.h
@@ -1,20 +1,9 @@
 /*
- *  tvheadend, UDP interface
- *  Copyright (C) 2013 Adam Sutton
- *  Copyright (C) 2014 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, UDP interface
  */
 
 #ifndef UDP_H_
index 48842a9924c867aa459dd2f07d793fb964fca93a..0686421ca633d57beed7a1c4a83389afb53387d9 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  TVHeadend - UDP stream common routines
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2019 Stephane Duperron
  *
- *  Copyright (C) 2019 Stephane Duperron
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * TVHeadend - UDP stream common routines
  */
 
 #define _GNU_SOURCE
@@ -263,4 +251,4 @@ udp_stream_shutdown (udp_stream_t *us)
   }
   atomic_set(&us->us_running, 0);
   return pthread_join(us->us_tid, NULL);
-}
\ No newline at end of file
+}
index 64bbea0e2d7871c7c571e9665a7b7fea8f4d72bd..bd2dd59d5ae6d63b5125a6560333ed49ddba719d 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, UDP stream interface
- *  Copyright (C) 2019 Stephane Duperron
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2019 Stephane Duperron
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, UDP stream interface
  */
 
 #ifndef UDP_STREAM_H_
index 51dac4291c1b1c34a0d7bebef7e53a92fb047d14..a2d6cbb0819c924a202b0a35c0c25e3cf1f48fa9 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, UPnP interface
- *  Copyright (C) 2014 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, UPnP interface
  */
 
 #include "tvheadend.h"
@@ -53,6 +42,7 @@ static struct sockaddr_storage upnp_ipv4_multicast;
 /*
  *
  */
+
 upnp_service_t *upnp_service_create0( upnp_service_t *us )
 {
   tvh_mutex_lock(&upnp_lock);
@@ -73,6 +63,7 @@ void upnp_service_destroy( upnp_service_t *us )
 /*
  *
  */
+
 void
 upnp_send( htsbuf_queue_t *q, struct sockaddr_storage *storage,
            int delay_ms, int from_multicast )
@@ -98,6 +89,7 @@ upnp_send( htsbuf_queue_t *q, struct sockaddr_storage *storage,
 /*
  *
  */
+
 static void
 upnp_dump_data( upnp_data_t *data )
 {
@@ -112,6 +104,7 @@ upnp_dump_data( upnp_data_t *data )
 /*
  *  Discovery thread
  */
+
 static void *
 upnp_thread( void *aux )
 {
@@ -220,6 +213,7 @@ error:
 /*
  *  Fire up UPnP server
  */
+
 void
 upnp_server_init(const char *bindaddr)
 {
index c2f6726cd83db6f95f2432e71b4f4d2955203cc8..a7bf42fca9587a4c934d05f86575206cbb4d21df 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, UPnP interface
- *  Copyright (C) 2014 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, UPnP interface
  */
 
 #ifndef UPNP_H_
index 77a1eaaf84c0cd7840c9c58add20b49e322771b0..389aaffea36aeb29b1a6de3a686343088acd17f0 100644 (file)
--- a/src/url.c
+++ b/src/url.c
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - URL Processing
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - URL Processing
  */
 
 #include "tvheadend.h"
index f4859c1a961c7c626aefb94b641d3f06dad8191d..7b19ba96ae336e93b5c5f93ef70404803c89666d 100644 (file)
--- a/src/url.h
+++ b/src/url.h
@@ -1,20 +1,8 @@
 /*
- *  Tvheadend - URL Processing
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend - URL Processing
  */
 
 #ifndef __TVH_URL_H__
@@ -24,6 +12,7 @@
 #include <string.h>
 
 /* URL structure */
+
 typedef struct url
 {
   char  *scheme;
index bc6401d22f38c3198e10e4faa1881ba1f3286117..9a9ced2ec617070b529e0130a0f18c0970f4df85 100644 (file)
@@ -1,20 +1,9 @@
 /*
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ *
  * Copyright (c) 2005 Michael Niedermayer <michaelni@gmx.at>
  * Copyright (c) 2006 Ryan Martell. (rdm4@martellventures.com)
  * Copyright (c) 2010 Andreas Ã–man
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
 #include <limits.h>
index acbdfd4dd3e965201256b24823799486be347260..98266e8f3816b60459dc0a4948f295b04519cbd4 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  TV headend - UUID generation routines
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Adam Sutton
  *
- *  Copyright (C) 2014 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * TV headend - UUID generation routines
  */
 
 #include "tvheadend.h"
index ebadbb20c0c1ad290d877c73bb0b93df9f9585bf..b97b980351e27ae77c6816d9e4e284074f03e9b0 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  TV headend - UUID generation routines
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2014 Adam Sutton
  *
- *  Copyright (C) 2014 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * TV headend - UUID generation routines
  */
 
 #ifndef __TVH_UUID_H__
 extern uint8_t ___uuid_empty[UUID_BIN_SIZE];
 
 /* Structure to hold UUID */
+
 typedef struct uuid {
   uint8_t bin[UUID_BIN_SIZE];
 } tvh_uuid_t;
 
 /* Structure for the uuid set */
+
 typedef struct uuid_set {
   tvh_uuid_t *us_array;
   uint32_t us_count;
@@ -42,20 +32,25 @@ typedef struct uuid_set {
 } tvh_uuid_set_t;
 
 /* Initialise subsystem */
+
 void uuid_init ( void );
 
 /* Random bytes */
+
 void uuid_random ( uint8_t *buf, size_t bufsize );
 
 /* Set uuid */
+
 int uuid_set ( tvh_uuid_t *u, const char *str );
 
 /* Get hexa uuid, str must have length at least UUID_HEX_SIZE */
+
 char *uuid_get_hex ( const tvh_uuid_t *u, char *dst );
 
 /**
  * Copy
  */
+
 static inline void uuid_duplicate ( tvh_uuid_t *dst, const tvh_uuid_t *src )
 {
   *dst = *src;
@@ -64,6 +59,7 @@ static inline void uuid_duplicate ( tvh_uuid_t *dst, const tvh_uuid_t *src )
 /**
  * Compare
  */
+
 static inline int uuid_cmp ( const tvh_uuid_t *a, const tvh_uuid_t *b )
 {
   return memcmp(a->bin, b->bin, UUID_BIN_SIZE);
@@ -72,6 +68,7 @@ static inline int uuid_cmp ( const tvh_uuid_t *a, const tvh_uuid_t *b )
 /**
  * Empty
  */
+
 static inline int uuid_empty ( const tvh_uuid_t *a )
 {
   return memcmp(a->bin, ___uuid_empty, UUID_BIN_SIZE) == 0;
@@ -80,42 +77,50 @@ static inline int uuid_empty ( const tvh_uuid_t *a )
 /**
  * Validate the hexadecimal representation of uuid
  */
+
 int uuid_hexvalid ( const char *uuid );
 
 /**
  *
  */
+
 void uuid_set_init( tvh_uuid_set_t *us, uint32_t alloc_chunk );
 
 /**
  *
  */
+
 tvh_uuid_set_t *uuid_set_copy( tvh_uuid_set_t *dst, const tvh_uuid_set_t *src );
 
 /**
  *
  */
+
 tvh_uuid_t *uuid_set_add( tvh_uuid_set_t *us, const tvh_uuid_t *u );
 
 /**
  *
  */
+
 void uuid_set_free( tvh_uuid_set_t *us );
 
 /**
  *
  */
+
 void uuid_set_destroy( tvh_uuid_set_t *us );
 
 /**
  *
  */
+
 static inline int uuid_set_empty( tvh_uuid_set_t *us )
   { return us->us_count == 0; }
 
 /**
  *
  */
+
 #define UUID_SET_FOREACH(u, us, u32) \
   if ((us)->us_count > 0) \
     for ((u32) = 0, (u) = (us)->us_array; \
@@ -124,11 +129,13 @@ static inline int uuid_set_empty( tvh_uuid_set_t *us )
 /**
  * Hex string to binary
  */
+
 int hex2bin ( uint8_t *buf, size_t buflen, const char *hex );
 
 /**
  * Binary to hex string
  */
+
 char *bin2hex ( char *dst, size_t dstlen, const uint8_t *src, size_t srclen );
 
 #endif /* __TVH_UUID_H__ */
index 9fcb4d857cbef27e0dfa4fa1405c9437956eed65..e8a1097fbf1efba6764d30750a5f30e6d93abf43 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, systemd watchdog support
- *  Copyright (C) 2017-2018 Erkki Seppälä
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2017-2018 Erkki Seppälä
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, systemd watchdog support
  */
 
 #include "watchdog.h"
index 68af82831855b9c23ecbd18f8a87a9a7c22cdd8f..ee77adc4d9c2e40f9c51513ee9116f31d6037094 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, systemd watchdog support
- *  Copyright (C) 2017-2018 Erkki Seppälä
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2017-2018 Erkki Seppälä
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, systemd watchdog support
  */
 
 #ifndef WATCHDOG_H_
index def64844b351cbc177dc78ec4a0dcd2ba08c47f1..3d84175308b02ca43c3c2fedb9208d7a3532c3a8 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, COMET
- *  Copyright (C) 2008 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, COMET
  */
 
 #include <openssl/sha.h>
index e4f776cfef4433f0152b72f666f7f31c3c45f275..5433adfcceb008d8f9848d4c58b8e8335d5d3e18 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, documenation markdown generator
- *  Copyright (C) 2016 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2016 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, documenation markdown generator
  */
 
 #include "tvheadend.h"
@@ -27,6 +16,7 @@ static int md_class(htsbuf_queue_t *hq, const char *clazz, const char *lang,
                     int hdr, int docs, int props);
 
 /* */
+
 static int
 md_nl(htsbuf_queue_t *hq, int nl)
 {
@@ -36,6 +26,7 @@ md_nl(htsbuf_queue_t *hq, int nl)
 }
 
 /* */
+
 static void
 md_header(htsbuf_queue_t *hq, const char *prefix, const char *s)
 {
@@ -45,6 +36,7 @@ md_header(htsbuf_queue_t *hq, const char *prefix, const char *s)
 }
 
 /* */
+
 static void
 md_style(htsbuf_queue_t *hq, const char *style, const char *s)
 {
@@ -55,6 +47,7 @@ md_style(htsbuf_queue_t *hq, const char *style, const char *s)
 }
 
 /* */
+
 static void
 md_text(htsbuf_queue_t *hq, const char *first, const char *next, const char *text)
 {
@@ -95,6 +88,7 @@ md_text(htsbuf_queue_t *hq, const char *first, const char *next, const char *tex
 }
 
 /* */
+
 static int
 md_props(htsbuf_queue_t *hq, htsmsg_t *m, const char *lang, int nl)
 {
@@ -164,6 +158,7 @@ md_props(htsbuf_queue_t *hq, htsmsg_t *m, const char *lang, int nl)
 }
 
 /* */
+
 static void
 md_render(htsbuf_queue_t *hq, const char *doc, const char *lang)
 {
@@ -194,6 +189,7 @@ md_render(htsbuf_queue_t *hq, const char *doc, const char *lang)
 }
 
 /* */
+
 static int
 md_doc(htsbuf_queue_t *hq, const char **doc, const char *lang, int nl)
 {
@@ -207,6 +203,7 @@ md_doc(htsbuf_queue_t *hq, const char **doc, const char *lang, int nl)
 }
 
 /* */
+
 static int
 md_class(htsbuf_queue_t *hq, const char *clazz, const char *lang,
          int hdr, int docs, int props)
@@ -243,6 +240,7 @@ md_class(htsbuf_queue_t *hq, const char *clazz, const char *lang,
 /**
  * List of all classes with documentation
  */
+
 static int
 http_markdown_classes(http_connection_t *hc)
 {
@@ -272,6 +270,7 @@ http_markdown_classes(http_connection_t *hc)
 /**
  *
  */
+
 static int
 http_markdown_class(http_connection_t *hc, const char *clazz)
 {
@@ -284,6 +283,7 @@ http_markdown_class(http_connection_t *hc, const char *clazz)
 /**
  *
  */
+
 static int
 http_markdown_page(http_connection_t *hc, const struct tvh_doc_page *page)
 {
@@ -300,6 +300,7 @@ http_markdown_page(http_connection_t *hc, const struct tvh_doc_page *page)
 /**
  * Handle requests for markdown export.
  */
+
 int
 page_markdown(http_connection_t *hc, const char *remain, void *opaque)
 {
index 73b338a21f168b3c83f423be2cd98569192f2af3..88273cd294c7609b7c1e7ea2b6a3261d806f3ee7 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, EXTJS based interface
- *  Copyright (C) 2008 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, EXTJS based interface
  */
 
 #include "htsmsg.h"
@@ -29,6 +18,7 @@
 /**
  *
  */
+
 static void
 extjs_load(htsbuf_queue_t *hq, const char *script, ...)
 {
@@ -45,6 +35,7 @@ extjs_load(htsbuf_queue_t *hq, const char *script, ...)
 /**
  *
  */
+
 static void
 extjs_lcss(htsbuf_queue_t *hq, const char *css, ...)
 {
@@ -62,6 +53,7 @@ extjs_lcss(htsbuf_queue_t *hq, const char *css, ...)
 /**
  *
  */
+
 static void
 extjs_exec(htsbuf_queue_t *hq, const char *fmt, ...)
 {
@@ -79,6 +71,7 @@ extjs_exec(htsbuf_queue_t *hq, const char *fmt, ...)
 /**
  * EXTJS root page
  */
+
 static int
 extjs_root(http_connection_t *hc, const char *remain, void *opaque)
 {
@@ -141,6 +134,7 @@ Ext.onReady(tvheadend.app.init, tvheadend.app);\
 /**
  *
  */
+
 static int
 extjs_livetv(http_connection_t *hc, const char *remain, void *opaque)
 {
@@ -179,6 +173,7 @@ extjs_livetv(http_connection_t *hc, const char *remain, void *opaque)
 /**
  * 
  */
+
 static int
 page_about(http_connection_t *hc, const char *remain, void *opaque)
 {
@@ -236,6 +231,7 @@ FamFamFam</a>, "\
 /**
  * WEB user interface
  */
+
 void
 extjs_start(void)
 {
index fc7a56c029ba7d3b7c89f600fe8b25da97a8df7f..0be524fcd869965dc018eea7e52c8d5ba61dc05c 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, HTML/XML helper routines
- *  Copyright (C) 2012 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, HTML/XML helper routines
  */
 
 #include <string.h>
@@ -22,6 +11,7 @@
 #include "hts_strtab.h"
 
 /* Escape chars */
+
 static struct {
   char        chr;
   const char *esc;
@@ -46,6 +36,7 @@ static const char *html_escape_char ( const char chr )
  * Escape characters that will interfere with xml.
  * Count how many bytes str would contain if it would be rss escapped
  */
+
 size_t
 html_escaped_len(const char *src)
 {
@@ -65,6 +56,7 @@ html_escaped_len(const char *src)
 /*
  * http (xml) escape a string
  */
+
 const char*
 html_escape(char *dst, const char *src, size_t len)
 {
index 16b808f7523427291fbbdefa1e2960ee675b0cd7..f28848ecf55f9cc1f790368b106f4619cbc97966 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, WEBUI / HTML user interface
- *  Copyright (C) 2008 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, WEBUI / HTML user interface
  */
 
 #include "tvheadend.h"
index ea2bb033e3dbfe61a0690b215fbfa47c78f447b1..b37719582d43cc49214c0f2e9cf20ad33a23e316 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  Tvheadend, Statedump
- *  Copyright (C) 2010 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2010 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * Tvheadend, Statedump
  */
 
 #include "tvheadend.h"
@@ -169,4 +158,3 @@ page_statedump(http_connection_t *hc, const char *remain, void *opaque)
   http_output_content(hc, "text/plain; charset=UTF-8");
   return 0;
 }
-
index d2669389d330150b62d8a1e9f4d70796e5ae6bad..cb38149faa94ace42c4231e815c829ee72d30678 100644 (file)
@@ -1,20 +1,9 @@
 /*
- *  tvheadend, WEBUI / HTML user interface
- *  Copyright (C) 2008 Andreas Ã–man
- *  Copyright (C) 2014,2015 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man
+ * Copyright (C) 2014,2015 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, WEBUI / HTML user interface
  */
 
 #include <sys/stat.h>
index 003a778d8a3fa196956fdea4f2ceb0328f785232..8d9832c431b61ce7f611096d853b9a86d4adbf73 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, web user interface
- *  Copyright (C) 2008 Andreas Ã–man
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2008 Andreas Ã–man
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <htmlui://www.gnu.org/licenses/>.
+ * tvheadend, web user interface
  */
 
 #ifndef WEBUI_H_
@@ -61,6 +50,7 @@ void webui_api_init ( void );
 /**
  *
  */
+
 void comet_init(void);
 
 void comet_done(void);
index 718fbcce749d074b82444ea1c5d34fbfd77faadf..9c485d54bba4b8df0fb6c7e0f62fdae4625a4b9a 100644 (file)
@@ -1,20 +1,8 @@
 /*
- *  tvheadend, WebAPI access point
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2013 Adam Sutton
  *
- *  Copyright (C) 2013 Adam Sutton
- *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, WebAPI access point
  */
 
 #include "tvheadend.h"
index d7e26037350e337d29a17b62586041a09ad878d6..7631e6d60216e4dd9ce327fddb28e84807453d0b 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, XMLTV exporter
- *  Copyright (C) 2015 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2015 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, XMLTV exporter
  */
 
 #include "tvheadend.h"
@@ -30,6 +19,7 @@
 /*
  *
  */
+
 static void
 http_xmltv_time(char *dst, time_t t)
 {
@@ -41,6 +31,7 @@ http_xmltv_time(char *dst, time_t t)
 /*
  *
  */
+
 static void
 http_xmltv_begin(htsbuf_queue_t *hq)
 {
@@ -57,6 +48,7 @@ http_xmltv_begin(htsbuf_queue_t *hq)
 /*
  *
  */
+
 static void
 http_xmltv_end(htsbuf_queue_t *hq)
 {
@@ -75,6 +67,7 @@ http_xmltv_end(htsbuf_queue_t *hq)
  * be the same as the passed in temporary buffer.
  *
  */
+
 static const char *
 http_xmltv_channel_get_name(const http_connection_t *hc,
                             const channel_t *ch,
@@ -93,6 +86,7 @@ http_xmltv_channel_get_name(const http_connection_t *hc,
 /*
  *
  */
+
 static void
 http_xmltv_channel_add(http_connection_t *hc, htsbuf_queue_t *hq, int flags, const char *hostpath, channel_t *ch)
 {
@@ -177,6 +171,7 @@ _http_xmltv_add_episode_num(htsbuf_queue_t *hq, uint16_t num, uint16_t cnt)
 /** Output long description fields of the programme which are
  * not output for basic/limited devices.
  */
+
 static void
 http_xmltv_programme_one_long(const http_connection_t *hc,
                               htsbuf_queue_t *hq, const char *hostpath,
@@ -289,6 +284,7 @@ http_xmltv_programme_one_long(const http_connection_t *hc,
 /*
  *
  */
+
 static void
 http_xmltv_programme_one(const http_connection_t *hc,
                          htsbuf_queue_t *hq, const char *hostpath,
@@ -339,6 +335,7 @@ http_xmltv_programme_one(const http_connection_t *hc,
 /*
  *
  */
+
 static void
 http_xmltv_programme_add(const http_connection_t *hc, htsbuf_queue_t *hq, const char *hostpath, channel_t *ch)
 {
@@ -351,6 +348,7 @@ http_xmltv_programme_add(const http_connection_t *hc, htsbuf_queue_t *hq, const
 /**
  * Output a XMLTV containing a single channel
  */
+
 static int
 http_xmltv_channel(http_connection_t *hc, int flags, channel_t *channel)
 {
@@ -371,6 +369,7 @@ http_xmltv_channel(http_connection_t *hc, int flags, channel_t *channel)
 /**
  * Output a playlist containing all channels with a specific tag
  */
+
 static int
 http_xmltv_tag(http_connection_t *hc, int flags, channel_tag_t *tag)
 {
@@ -404,6 +403,7 @@ http_xmltv_tag(http_connection_t *hc, int flags, channel_tag_t *tag)
 /**
  * Output a flat playlist with all channels
  */
+
 static int
 http_xmltv_channel_list(http_connection_t *hc, int flags)
 {
@@ -434,6 +434,7 @@ http_xmltv_channel_list(http_connection_t *hc, int flags)
 /**
  * Handle requests for XMLTV export.
  */
+
 int
 page_xmltv(http_connection_t *hc, const char *remain, void *opaque)
 {
index 6ceded5f07f1e5210fe546c03a0ec590d02666e9..0a190f1868beb8226ce8cf36717de519032800a2 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, Wizard
- *  Copyright (C) 2015,2016 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2015,2016 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, Wizard
  */
 
 /*
index 7fcc186a30151e9c1991b09eacce32bfa3c38948..eb7a4676d55be720f3d2239346999675448fe6c3 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  tvheadend, Wizard
- *  Copyright (C) 2015 Jaroslav Kysela
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2015 Jaroslav Kysela
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * tvheadend, Wizard
  */
 
 #ifndef __TVH_WIZARD_H__
index 1f93b22c5451e3ee368a0119a9db95932f72edaa..81938f631e133f3ee269117cb8e762b3b6e272a3 100644 (file)
@@ -274,6 +274,7 @@ tvh_qsort_r(void *base, size_t nmemb, size_t size, int (*compar)(const void *, c
 /*
  * Regex stuff
  */
+
 void regex_free(tvh_regex_t *regex)
 {
 #if ENABLE_PCRE || ENABLE_PCRE2
index 9d2a5b614768953baa3d2ab9ea43647c183f076f..f1588ca0cad83a46202e64582124b3ac1e5f37c4 100644 (file)
@@ -1,19 +1,8 @@
 /*
- *  TV headend - zlib integration
- *  Copyright (C) 2012 Adam Sutton
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2012 Adam Sutton
  *
- *  This program is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * TV headend - zlib integration
  */
 
 #include "tvheadend.h"
index f177b9fcdc2d871ab4c9792932246a048d350cd9..466ea33d65f4973de57a0ba19da256e60ad86923 100755 (executable)
@@ -1,19 +1,7 @@
 #!/usr/bin/env python
-#
+# SPDX-License-Identifier: GPL-3.0-or-later
 # Copyright (C) 2017, 2018 Tvheadend Project (https://tvheadend.org)
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, version 3 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.
-#
+
 """
 Test regular expressions used in OTA EIT scraper.
 
index 3921685bdd0f5becc2da99302fd4f64377c355d4..cff81b1b6d535cf786e7a7f7f2a71585bd67a0f1 100755 (executable)
@@ -1,26 +1,6 @@
 #!/usr/bin/env bash
-#
+# SPDX-License-Identifier: GPL-3.0-or-later
 # Copyright (C) 2008-2014 Tvheadend Project (https://tvheadend.org)
-#
-# This file is part of Tvheadend
-#
-# Tvheadend is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# Tvheadend is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with Tvheadend.  If not, see <http://www.gnu.org/licenses/>.
-#
-# For more details, including opportunities for alternative licensing,
-# please read the LICENSE file.
-#
-# ############################################################################
 
 # ############################################################################
 # 3rd Party library processing support
@@ -57,11 +37,6 @@ CODENAME=$(echo "$CODENAME" | tr '\n' ' ' | sed -e 's/[[:blank:]]*$//g')
 # Convert amd64 to x86_64 (ensure uniformity)
 [ "${ARCH}" = "amd64" ] && ARCH=x86_64
 
-# ############################################################################
-# Config
-# ############################################################################
-
-
 # ############################################################################
 # Functions
 # ############################################################################
@@ -138,7 +113,7 @@ function unpack
   # Cleanup
   rm -rf "${BUILDDIR}/${LIB_NAME}" || return 1
   mkdir -p "${BUILDDIR}/${LIB_NAME}" || return 1
-  
+
   # Unpack
   echo "UNPACK          ${P}"
   tar -C "${BUILDDIR}/${LIB_NAME}" -xf "${P}" || return 1
@@ -159,7 +134,7 @@ function upload
 
   # Can't upload
   [ -z "${PCLOUD_USER}" -o -z "${PCLOUD_PASS}" ] && return 0
-  
+
   # Don't need to upload
   [ -f "${P}" ] && return 0
 
@@ -174,7 +149,7 @@ function upload
   N="${PCLOUD_BASEDIR}/staticlib/${CODENAME}/${ARCH}/${LIB_NAME}-${LIB_HASH}.tgz"
   echo "UPLOAD          ${N}"
   ${ROOTDIR}/support/pcloud.py upload "${N}" "${P}.tmp" || python3 ${ROOTDIR}/support/pcloud.py upload "${N}" "${P}.tmp" || return 1
-  
+
   # Done
   mv "${P}.tmp" "${P}" || return 1
 }
index 310bc7bf53bd0041e60ff3274ea13dcf8d7b3695..9959087f7dcaf83ba777a40446edf93436cc987a 100644 (file)
@@ -1,26 +1,7 @@
-/* ****************************************************************************
- *
- * Copyright (C) 2016- Tvheadend Project (https://tvheadend.org)
- *
- * This file is part of Tvheadend
- *
- * Tvheadend is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Tvheadend is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Tvheadend.  If not, see <http://www.gnu.org/licenses/>.
- *
- * For more details, including opportunities for alternative licensing,
- * please read the LICENSE file.
- *
- * ***************************************************************************/
+/*
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2025 Tvheadend Project (https://tvheadend.org)
+ */
 
 /* ****************************************************************************
  * Editor Configuration
index 48ffda672b6c4f28cfebff9335a31fd0317d38e4..2bab46d601f26a87abf7a01c3d6ced46d8331f45 100644 (file)
@@ -1,31 +1,12 @@
-/* ****************************************************************************
- *
- * Copyright (C) 2016- Tvheadend Project (https://tvheadend.org)
- *
- * This file is part of Tvheadend
- *
- * Tvheadend is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Tvheadend is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Tvheadend.  If not, see <http://www.gnu.org/licenses/>.
- *
- * For more details, including opportunities for alternative licensing,
- * please read the LICENSE file.
- *
- * ***************************************************************************/
+/*
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * Copyright (C) 2025 Tvheadend Project (https://tvheadend.org)
+ */
 
 /* ****************************************************************************
  * Module Title
  *
- * Basic module description
+ * Module Description
  *
  * ***************************************************************************/
 
index d366a4757f16113760919de453e85b98958f88b7..12363e94f4178e2a42b3670dcfbe535dc1a15325 100644 (file)
@@ -1,26 +1,6 @@
 #!/usr/bin/env python
-#
-# Copyright (C) 2008-2014 Tvheadend Project (https://tvheadend.org)
-#
-# This file is part of Tvheadend
-#
-# Tvheadend is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# Tvheadend is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with Tvheadend.  If not, see <http://www.gnu.org/licenses/>.
-#
-# For more details, including opportunities for alternative licensing,
-# please read the LICENSE file.
-#
-# ############################################################################
+# SPDX-License-Identifier: GPL-3.0-or-later
+# Copyright (C) 2025 Tvheadend Project (https://tvheadend.org)
 
 """
 Module Title
index cb78bd3a89d2d70b022c521a1e5f689cda850073..b8ab12bce6b54789376054d77d791a051ac232a7 100644 (file)
@@ -1,33 +1,14 @@
 #!/usr/bin/env bash
+# SPDX-License-Identifier: GPL-3.0-or-later
+# Copyright (C) 2025 Tvheadend Project (https://tvheadend.org)
 #
-# Copyright (C) 2008-2014 Tvheadend Project (https://tvheadend.org)
-#
-# This file is part of Tvheadend
-#
-# Tvheadend is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# Tvheadend is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with Tvheadend.  If not, see <http://www.gnu.org/licenses/>.
-#
-# For more details, including opportunities for alternative licensing,
-# please read the LICENSE file.
-#
-# ############################################################################
-
 # ############################################################################
 # Module Title
 #
 # Module Description
 # ############################################################################
 
+
 # ############################################################################
 # Editor Configuration
 #