Commit graph

3390 commits

Author SHA1 Message Date
Adam Sutton
f73482605d linuxdvb: updated mux to use new idnode delete routine 2013-08-16 13:56:31 +01:00
Adam Sutton
ecfacc5aed api webui: simplified webui API by removing "args" field
The API code has also been updated to use the htsmsg auto conversion of
strings to map/list where required. Basic approach is check for list/map
first and if that fails fallback to string (if that's whats appropriate
for a mixed type field).
2013-08-16 13:49:25 +01:00
Adam Sutton
91cfb24bbb htsmsg: added automatic conversion from string to msg/list
This is done on request if the string can be JSON deserialized. This is
useful for the common API where the webui will be sending in serialized
strings and saves having the special case "args" field.

For things like HTSP, which deal directly in htsmsg, the fields should
already have been converted to the right formats etc...
2013-08-16 13:47:41 +01:00
Adam Sutton
f50bb028ab htsmsg: missed off the header updates for cleanup 2013-08-16 12:57:03 +01:00
Adam Sutton
a79782c9e7 htsmsg prop: some tidying up of type conversions
Really this lot could do with a proper tidy up, but probably for another day
and since this code is kinda shared with showtime I want to keep the changes
to a minimum until I've had a chance to discuss with Andreas.
2013-08-15 22:31:47 +01:00
Adam Sutton
8ae30388aa webui: some minor corrections to mpegts/idnode code 2013-08-15 12:30:19 +01:00
Adam Sutton
a63df85c64 webui: ensure there is output for successful ops 2013-08-15 12:29:53 +01:00
Adam Sutton
09abad751e idnode: fix bug in config saving, not calling callback properly 2013-08-15 12:29:33 +01:00
Adam Sutton
6924fbc032 Merge branch 'feature/dvb-rewrite' of github.com:adamsutton/tvheadend into feature/dvb-rewrite 2013-08-15 12:06:51 +01:00
Adam Sutton
43d50f2d9b webui: updated UI to new API calls. Still crap, but hey ho! 2013-08-15 12:06:00 +01:00
Adam Sutton
0218b3842a mpegts linuxdvb: some minor modifications to linuxdvb for better idnode API 2013-08-15 12:05:30 +01:00
Adam Sutton
dee72beaa5 api webui: migrated most of the new web API stuff to the new API subsystem 2013-08-15 12:05:04 +01:00
Adam Sutton
c368e32f0d idnode: add new deletion method to allow generic api method 2013-08-14 16:10:17 +01:00
Adam Sutton
f067952fd5 api: started to add idnode to the new API structure 2013-08-12 20:39:40 +01:00
Adam Sutton
0efeda1727 api: started work on creating a common API framework
The idea is that this will become a common API framework for both HTTP
and HTSP. And anything else we might think off.

The only real constraint at the moment is both assume a JSON like input
format (for simplicity) since they currently have that in common.
2013-08-10 14:08:36 +01:00
Adam Sutton
0253651246 idnode: ensure nodes are properly saved on update 2013-08-09 23:13:34 +01:00
Adam Sutton
b96c432f69 mpegts linuxdvb: use new class lookup for satconf network lookup 2013-08-09 22:07:46 +01:00
Adam Sutton
2e13f5db01 idnode: added concept of class registration
this allows a class instance to be looked up by name, and in turn all
instances of that class can be found.
2013-08-09 22:07:45 +01:00
Adam Sutton
5cb2ea0768 idnode prop: tweak to get config to load in the right order. 2013-08-09 22:07:45 +01:00
Adam Sutton
6fc769e4ee linuxdvb: fix LNB frequency processing 2013-08-09 22:06:02 +01:00
Adam Sutton
22138a808d linuxdvb: some additional trace debug for S2 commands 2013-08-09 22:05:29 +01:00
Adam Sutton
28b204a905 mpegts idnode: updates to idnode for more resopsive list types
input network select is now dynamic and will update when network names are
changed
2013-08-07 15:27:53 +01:00
Adam Sutton
29f6d712e8 mpegts: added deleting of entire network 2013-08-06 23:11:03 +01:00
Adam Sutton
c2723dd7cf mpegts: added the ability to delete muxes 2013-08-06 22:23:24 +01:00
Adam Sutton
0d74894f33 debug: added a proper pthread_mutex ownership check in lock_assert()
this is conditional based on a test run from the configure script, as this
type of test is certainly not 100% cross platform compatible.

However its very useful to have a true check of lock ownership rather than
the rather arbitary check that "someone" holds the lock.
2013-08-06 19:57:07 +01:00
Adam Sutton
7a97b53665 channels: started work on a significant update to the way channels are managed
Channels to services will be N-N, to allow for some future options.

Also reworking the service mapper to get it working with the new code.
2013-08-06 19:56:54 +01:00
Adam Sutton
5f8510d7a3 cwc: fix stupid mistake in key updating (only setting using one set) 2013-07-23 22:12:25 +01:00
Adam Sutton
4db9fa050f linuxdvb: fix diseqc committed switch setting
Added new LNB callback for getting the hi/lo band setting. Minor correction
to repeat sending as well.
2013-07-15 12:15:47 +01:00
Luis Alves
dccb50dfd7 Diseqc fix (incomplete) 2013-07-15 11:50:59 +01:00
Adam Sutton
e197ca025e Merge remote-tracking branch 'origin/pr/51' into feature/dvb-rewrite 2013-07-14 20:15:01 +01:00
Luis Alves
e275aeda6c Fixed setting name. Was 'constellation' but 'modulation' expected. 2013-07-14 11:35:20 +01:00
Adam Sutton
1325dd7ad1 cwc: don't restart cwc clients when service is restarted 2013-07-13 20:07:14 +01:00
Adam Sutton
4e5c12ef94 capmt: properly check if input is enabled or not 2013-07-13 20:06:07 +01:00
Adam Sutton
7e565bc61e mpegts: added scan q length field to UI 2013-07-13 20:05:45 +01:00
Adam Sutton
68487e3735 webui: missing mutex unlock craeted deadlock 2013-07-10 16:25:33 +01:00
Adam Sutton
bfd8cffdc2 idnode: several improvements to the auto-updating features.
This can now be disabled via tick-box at bottom of the grid and no data
is actually sent in the update, just which nodes have been updated.

There is still an inefficiency in that a bunch of nodes being updated could
result in loads of reloads, but that could be improved with a bit of client
side buffering/delay.
2013-07-10 12:10:53 +01:00
Adam Sutton
c587fd3fdc idnode: added some rate limiting to idnode update messages 2013-07-09 19:46:36 +01:00
Adam Sutton
4833618031 Merge remote-tracking branch 'tornblom/dvb-rewrite' into feature/dvb-rewrite 2013-07-09 19:10:54 +01:00
Adam Sutton
ba25a62449 webui: add support for saving multiple entries directly from idnode grid 2013-07-09 18:54:23 +01:00
John Törblom
07122feaba dvb-c: default to SYS_DVBC_ANNEX_AC 2013-07-09 19:23:18 +02:00
Adam Sutton
f6d579079c mpegts: some updates to display values 2013-07-09 16:09:47 +01:00
Adam Sutton
cc144adabf idnode: fix sorting due to use of potentially static return values. 2013-07-09 16:09:31 +01:00
Adam Sutton
35b30871bd mpegts: add selective notifications
I still think too much data is sent in many instances. Often the same
info is sent over and over (particulary where the number of mux/svc per
network/mux increase).
2013-07-09 15:26:50 +01:00
Adam Sutton
f6eb21be9a idnode prop: add ability to be more selective about what updates are sent in notify 2013-07-09 15:26:18 +01:00
Adam Sutton
b7f5b82b01 mpegts: remove stray debug 2013-07-09 14:45:36 +01:00
Adam Sutton
f8813c1711 Merge remote-tracking branch 'tornblom/dvb-rewrite' into feature/dvb-rewrite 2013-07-09 14:40:36 +01:00
Adam Sutton
7fd63d7397 webui: updates to changes in idnode APIs and notification updates 2013-07-09 14:39:15 +01:00
Adam Sutton
3e6ff52146 mpegts/linuxdvb: reworking of network creation and notification
Should now get notifications for most things in the UI. However
there could be possible data overload if there are frequent small
updates.
2013-07-09 14:39:15 +01:00
Adam Sutton
3c9ac3a64f idnode prop: updated notification and some serialisation 2013-07-09 14:35:48 +01:00
John Törblom
14753a36d1 linuxtv: cosmetics 2013-07-09 13:58:56 +02:00