Commit graph

2530 commits

Author SHA1 Message Date
Adam Sutton
7037697cca idnode: added regexp filtering 2013-06-07 22:07:07 +01:00
Adam Sutton
1ed3627e77 idnode: added new set processing routines
This allow a list of arbitrary idnode's to be compiled, including the
ability to filter (based on props and filter config) what gets included
and then a matching sort routine.

This makes generating idnode based grids fairly straight-forward.
2013-06-07 21:34:24 +01:00
John Törnblom
2a9ccdd8bc libav: fixed compiling issues with more recent versions of libavcodec 2013-06-07 13:11:09 +02:00
Adam Sutton
75151722f6 webui: more functionality for creating networks 2013-06-04 16:56:56 +01:00
Adam Sutton
07a677ecba mpegts: added support for creating a network from an input
This won't actually link it, which might need to change.
2013-06-04 16:56:21 +01:00
Adam Sutton
38d4ffec95 mpegts: added some additional routines for network setup 2013-06-04 15:20:35 +01:00
Adam Sutton
88e866b3f1 idnode: starting to add some extensions to idnode/prop
Want to be able to drive some of the UI (or at least the API) from here
so need a few additional modes of operation.
2013-06-04 15:19:06 +01:00
Adam Sutton
331a63c6de webui: starting to get a slightly more usable idnode grid framework
The layout of the grid and filtering etc. is now auto-setup from the
idnode class definition.

I think I need to extend idnode to allow it to be used more for this
context.
2013-06-04 11:13:49 +01:00
Adam Sutton
e9631fa6ed webui: some hacked grids to start getting network management going 2013-06-04 11:13:49 +01:00
Adam Sutton
a59d888c9e idnode: allow property list to be written without an object
This allows the "class" to be written out without the need for an
instanatiation. Useful for auto-generating grid layouts for a given
object type.
2013-06-04 11:13:49 +01:00
Adam Sutton
f9b765fcc4 idnode: some additions to help getting individual values from idnode's 2013-06-04 11:13:49 +01:00
Adam Sutton
dce7902664 filebundle: follow symlinks on the local filesystem 2013-06-04 11:13:49 +01:00
Adam Sutton
da70a74f9e webui: link extjs back into the vendor directory 2013-06-04 11:13:49 +01:00
Adam Sutton
bafcfff42d webui: restructure webui/extjs source files
I want to keep the 3rd-party packages away from the main source
where possible.
2013-06-03 17:11:01 +01:00
Adam Sutton
4af016fbb7 webui: a VERY hacked list of networks, muxes and services 2013-06-03 11:23:42 +01:00
Adam Sutton
414a4b2d58 mpegts: do not set NID from PSI, this is used to limit NIT scanning 2013-06-03 09:47:19 +01:00
Adam Sutton
2181313793 mpegts: ensure that we check stuff is emabled
Otherwise starting on a debug system sends TVH into a tailspin. Though
this is another indication that some bounding of mm_start_mux is required!
2013-06-02 21:45:36 +01:00
Bernhard Froehlich
5d91d3b9ad Fix compile errors for kqueue on FreeBSD.
src/tvhpoll.c:127: warning: assignment makes pointer from integer without a cast
src/tvhpoll.c:179: warning: assignment makes integer from pointer without a cast
2013-06-02 12:06:10 +02:00
Bernhard Froehlich
0afd2ae15f Add missing includes for FreeBSD.
src/tcp.c:38: error: 'AF_INET' undeclared here (not in a function)
src/tcp.c:99: error: 'SOCK_STREAM' undeclared (first use in this function)
src/tcp.c:121: error: 'AF_INET6' undeclared (first use in this function)
src/tcp.c:159: error: 'SOL_SOCKET' undeclared (first use in this function)
src/tcp.c:159: error: 'SO_ERROR' undeclared (first use in this function)
2013-06-02 12:03:26 +02:00
Bernhard Froehlich
7082d8da77 Merge remote-tracking branch 'upstream/master' after all FreeBSD
related changes have been merged from upstream.
2013-06-02 11:30:50 +02:00
Adam Sutton
f77c934b76 mpegts: minor debug formatting correction 2013-06-01 23:58:39 +01:00
Adam Sutton
75458bf606 linuxdvb: fix some mistakes in frontend tuning 2013-06-01 23:27:17 +01:00
Adam Sutton
f26ee05092 linuxdvb: updated tuning/pid filtering code
All services/tables should now be opened using PES filters if the
tuner is not in full mux mode.
2013-06-01 23:03:17 +01:00
Adam Sutton
ead0b1b5ff linuxdvb: add complete (ish) v3 and S2 tuning calls
This still doesn't include any code to handle DVB-S, that needs further
thought on how best to configure.
2013-06-01 21:43:18 +01:00
Adam Sutton
f1eb285c8f mpegts: starting to tidy up input class 2013-06-01 20:51:10 +01:00
Adam Sutton
8e6d14b635 linuxdvb: fix service configuration loading
This is what was causing the duplicate service entries, it was
simply not loading the old configuration properly and thus creating
new entries.
2013-06-01 17:24:20 +01:00
Adam Sutton
fbd34be472 mpegts: fix scanning issue and lfe display name
Still have a problem with dup services being created when scanning
with multiple adapters.
2013-06-01 14:32:40 +01:00
Adam Sutton
ff3bc4c35a mpegts: fix display name bug and looks like mux arbitration is currently still broken 2013-06-01 14:07:01 +01:00
Adam Sutton
37f64806d7 mpegts: correct some types now I have added PT_U16 2013-06-01 13:46:01 +01:00
Adam Sutton
400e8c61ea mpegts linuxdvb: loads of tidying up of network/mux code 2013-06-01 13:40:29 +01:00
Adam Sutton
896345228c dvbpsi: tidied up some of the debug 2013-06-01 12:33:58 +01:00
Adam Sutton
1da619851b tvhlog: allow independent trace/debug subsystems to be enabled 2013-06-01 12:32:51 +01:00
Adam Sutton
3c00057b42 linuxdvb: new service file 2013-06-01 11:58:18 +01:00
Adam Sutton
2489e44492 mpegts: fixed some problems with service discovery 2013-05-31 23:55:43 +01:00
Adam Sutton
afd6d085d9 service: fix some mistakes in service saving 2013-05-31 21:48:59 +01:00
Adam Sutton
c412f6e28c service: trying to sort the service saving 2013-05-31 21:45:29 +01:00
Adam Sutton
dc773b0380 prop: added some extra sized types for clarity
In particular I wanted to be able to use u16, as this is commonly
used within the mpegts code for various fields.
2013-05-31 20:43:17 +01:00
Adam Sutton
cfbba3891d linuxdvb: stop the correct mux! 2013-05-31 20:18:49 +01:00
Bernhard Froehlich
17b16d7a76 tvhpoll: update all code to use new tvhpoll wrapper rather than epoll 2013-05-31 14:22:29 +01:00
Adam Sutton
7d122d8dea tvhpoll: corrected some mistakes and expanded usage for user data. 2013-05-31 14:22:29 +01:00
Bernhard Froehlich
a2ef8e9c94 tvhpoll: Fix kqueue parts of the poll wrapper API 2013-05-31 14:22:29 +01:00
Adam Sutton
ee5d2171d5 tvhpoll: new epoll/kqueue wrapper API
This is to ease some of the BSD porting work that has been done and
keep the core code cleaner.

Credit to Bernhard Froehlich <decke@bluelife.at>, for the original
kqueue code that was #if'd inline with epoll code (now hidden as a
result of tidying up commits).
2013-05-31 14:21:25 +01:00
Bernhard Froehlich
9a0d477acd Fix warning because of wrong time_t format specifier on FreeBSD i386
and fix places where format specifier is hardcoded for time_t and
correctly use PRItime_t instead.

src/epg.c:1412: warning: format '%ld' expects type 'long int', but argument 7 has type 'time_t'
src/dvr/dvr_rec.c:596: warning: format '%ld' expects type 'long int', but argument 4 has type 'time_t'
src/epggrab/module/eit.c:536: warning: format '%lu' expects type 'long unsigned int', but argument 8 has type 'time_t'
2013-05-31 14:19:26 +01:00
User Decke
138e73eb26 Fix printf format modifier to build properly with CLANG.
src/htsp_server.c:485:55: error: format specifies type 'short' but the argument has type 'int' [-Werror,-Wformat]
        p += snprintf(url+p, sizeof(url)-p, "%s%s%s:%hd%s",
                                                    ~~^
                                                    %d
2013-05-31 14:19:26 +01:00
User Decke
d137cc0073 Fix sendfile() call on FreeBSD/i386
src/webui/webui.c:885: warning: passing argument 6 of 'sendfile' from incompatible pointer type
2013-05-31 14:19:26 +01:00
Bernhard Froehlich
f22d3e0fb2 Add missing include for ssize_t on FreeBSD.
src/tvhlog.h:48: error: expected declaration specifiers or '...' before 'ssize_t'
src/tvhlog.c:244: error: conflicting types for '_tvhlog_hexdump'
src/tvhlog.h:48: error: previous declaration of '_tvhlog_hexdump' was here
2013-05-31 14:19:26 +01:00
Bernhard Froehlich
cf74b5f1c9 Fix IPv4 multicasting on FreeBSD and make IPv6 multicasting optional
because it's not yet supported on FreeBSD.
2013-05-31 14:19:26 +01:00
Bernhard Froehlich
2d6c12222c __u8 is not available on FreeBSD so use u_int8_t instead
tvheadend-3.4/src/dvb/diseqc.h:10: error: expected declaration specifiers or '...' before '__u8'
tvheadend-3.4/src/dvb/diseqc.h:11: error: expected declaration specifiers or '...' before '__u8'
2013-05-31 14:19:26 +01:00
Bernhard Froehlich
0ac56f0be8 Use internal tvh_strdupa() because strdupa() is GNU only. 2013-05-31 14:19:25 +01:00
Bernhard Froehlich
f24ea24b26 Add sendfile(2) support for FreeBSD. 2013-05-31 14:19:25 +01:00