Wykres commitów

224 Commity (master)

Autor SHA1 Wiadomość Data
tibs 8aad839cff Debug should be off by default in printing.c
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40124
2009-02-22 18:36:16 +00:00
tibs d3442186fd Python wrapping: forgot to add cwrapper.pxd (a bad name, and maybe not to stay)
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40123
2009-02-20 15:53:03 +00:00
tibs bc96299099 Python wrapping: For reasons explained in the top of tstools.pyx,
revert to the monolithic Pyrex file, although (for the moment at
least) still with two .pxd files to abstract some wrapping of
definitions and functions.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40122
2009-02-20 15:51:16 +00:00
tibs b0023efd46 More playing with printing redirection.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40121
2009-02-20 15:35:29 +00:00
tibs cf83dcabe0 Printing and doctests: and yet it still doesn't do what I want.
(Learning experience)

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40120
2009-02-18 13:35:31 +00:00
tibs be29f14a88 Python wrapping: add a comment about the problems with declaring va_list
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40119
2009-02-17 12:19:02 +00:00
tibs 6d6349eea4 Since none of the printing calls care about a return value,
make the new printing mechanism simpler, by having functions
with void returns.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40118
2009-02-17 11:45:14 +00:00
tibs 87e2ce8ca6 Python wrapping: A first attempt at using the new printing interface.
Not that I'm particularly happy with it.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40117
2009-02-16 23:13:00 +00:00
tibs 2f658aa0a3 Write some initial code to allow for output redirection
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40116
2009-02-16 21:45:34 +00:00
tibs 84a69a90d4 Python wrapping: remove the "build" directory when cleaning,
and the ".dep" files when distcleaning.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40115
2009-02-16 11:03:23 +00:00
tibs 6dae7d9049 Experimental: this make the TS PCR read-ahead buffer per-file (well, strictly,
per-tsreader), rather than static as it was before. This is a tentative commit,
subject to further testing, although the Python code's doctests appear to
indicate that it is probably working.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40114
2009-02-14 17:31:50 +00:00
tibs b03661d228 Python wrapping: tstools.pyx -> ts.pyx
--HG--
rename : python/tstools/tstools.pyx => python/tstools/ts.pyx
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40113
2009-02-13 20:58:17 +00:00
tibs 157cd347a2 Python wrapping: split the ES functionality out into a separate pyx file
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40112
2009-02-13 20:55:52 +00:00
tibs c63713db25 ts_defns.h didn't include compat.h, but it uses offset_t
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40111
2009-02-13 20:50:32 +00:00
tibs 47d7860fbe Python wrapping: move some of the Pyrex definitions from tstools.pyx to
common.pxd, ready for when we have more than one .pyx file. Fiddle with
the rest.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40110
2009-02-13 20:33:12 +00:00
tibs 685b3b14bd Python wrapping: make "tstools" into a package (initially with tstools.pyx
in it, but eventually to allow for multiple files).

--HG--
rename : python/tstools.pyx => python/tstools/tstools.pyx
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40109
2009-02-12 23:19:20 +00:00
tibs 58624e68fa Python wrapping: First pass at BufferedTSFile seems to do what is expected.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40108
2009-01-16 21:38:47 +00:00
tibs ec947858fb Python wrapping: Start implementing BufferedTSFile.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40107
2009-01-16 18:00:42 +00:00
tibs 43fdbd095d Python wrapping: Thanks to a hint from the Pyrex mailing list, remove the
compiler warnings for the "const void*" argument to PyObject_AsReadBuffer.
Unfortunately, it doesn't look like I can do anything about the "internal
linenumber variable might be used uninitialised" which the building of the
(generated) tstools.c gives.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40106
2009-01-01 16:21:36 +00:00
tibs 5da37c0537 Python wrapping: This version of PAT/PMT support is close enough to stop for now.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40105
2008-12-07 18:31:03 +00:00
tibs 3d098ad1a9 Python wrapping: PMT code a *little* bit tidier
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40104
2008-12-07 18:01:31 +00:00
tibs 8f1744419d Python wrapping: first (very ugly) attempt to accumulate PMTs automatically.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40103
2008-12-07 16:07:50 +00:00
tibs 333b312d6d Python wrapper: Tidy up PMT and ProgramStream a bit, add a test case for
*creating* a PMT.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40102
2008-11-27 23:32:19 +00:00
tibs 1d07e138fc Python wrapping: first stab at reading PMTs -- find the next PMT.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40101
2008-11-26 22:34:09 +00:00
tibs 2af44b632b As promised, add comment for new argument to find_next_pmt.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40100
2008-11-25 19:55:42 +00:00
jc44 307d5475ae Added program number checking to PMT selection in case there are multiple PMTs on the same PID (or indeed other garbage)
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4099
2008-11-25 13:47:39 +00:00
tibs 07dc395b13 Python wrapper: Reading TS packets from a TS file will update the PAT
as PAT records are found. Seeking forgets the current PAT.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4098
2008-11-23 21:07:25 +00:00
tibs 9a493c00b0 Python bindings: Re-reading the Pyrex documentation, it is obvious (!) that
Python methods in extension types *can* call cdef methods, so make the
cdef functions I was using, because I hadn't figured this out, be cdef
methods instead. This (a) makes the code simpler/nicer, and (b) will make
it easier to accumulate PAT (and later PMT) over repeated calls of the
(now a) method that reads the next TS packet.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4097
2008-11-23 17:32:28 +00:00
rhodri f16d7ed982 Fix command-line parsing of -output and -skew
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4096
2008-11-18 15:49:35 +00:00
tibs fa6d7c2a53 Add (missing) CHECKARG calls in various places (this addresses bug 14781).
Do some other minor tidying up at the same time.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4095
2008-11-11 20:28:20 +00:00
tibs 6816417666 Tidy up command line handling.
Tidy up reporting in general.
Make several defaults exist (and probably stop falling over behaviour).
Change the help text to be more in line with the other programs.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4094
2008-11-11 20:24:42 +00:00
tibs 94435ef050 Add the magic runes to the end, and reformat.
This should really be split into pcap_defns.h and pcap_fns.h, to match other
header files, but leave it for now. Also, leave in the horrible doxygen
format comments for the nonce (not that I have any opinions on this sort
of thing...).

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4093
2008-11-11 19:48:50 +00:00
tibs ebf0a5da1b Add the magic runes to the end, and reformat.
Move the two static functions to the top, so that forward prototyping
is not required.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4092
2008-11-11 19:46:58 +00:00
tibs 0b7868f9ca Make command line handling more commensurate with the other tools.
Despite the command line, retain  the "--" forms for switches, as
well as the documented "-" forms. Provide "-skew" as a shorter
synonym for the very-long-switch - hope that makes sense.
Make command line handling more robust.
Correct the error handling if an input file is not given.
Give the -dest switch a default port (0 seems most sensible).

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4091
2008-11-11 19:45:13 +00:00
tibs aab04f3347 Up the version number for a release.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4090
2008-11-07 09:26:27 +00:00
tibs c5afefd981 [JC] Reinserted lorenzos CC logging
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4089
2008-11-04 16:02:25 +00:00
tibs 816750af15 Correct documentation to match behaviour.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4088
2008-11-04 15:52:17 +00:00
tibs e4c53fd68c [JC] Now compiles under windows and my version of continuity counter checking added to tsreport
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4087
2008-11-04 15:23:03 +00:00
tibs a390c6f52c Tidying up the PAT stuff a little
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4086
2008-11-03 11:53:19 +00:00
tibs b94eaecaf0 Basic PAT retrieval
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4085
2008-11-03 11:34:09 +00:00
tibs da13a7cf69 Update the Windows makefile to include new programs
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4084
2008-10-31 11:38:03 +00:00
tibs a4e7a9179a Correct the program name in its help.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4083
2008-10-31 11:33:36 +00:00
tibs a5c36e3f65 Initially, remove compilation warnings in tsreport.c.
In the process, tighten up command line argument handling a bit, and
improve some error messages.
Also, make the "magic number" 0x2000 a bit more obvious.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4082
2008-10-31 11:16:21 +00:00
loreg a0e4830d8c In the previous file I committed (rev 79) I messed up u_int32 with uint32_t & Co.
Now it should be better.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4081
2008-10-29 15:28:05 +00:00
loreg 448f71158f Bug 014731
Update the documentation adding information about:
-x switch in esreport and
-cnt <pid> in tsreport

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4080
2008-10-29 09:42:08 +00:00
loreg 4db8ccdef8 Now in tsreport there is a new switch.
The ``-cnt`` switch is to be followed by a PID in decimal units.
It checks the values of the field continuity_counter in the specified PID,
warns in there are discontinuities and writes the values of continuity_counter in a file called
'continuity_counter.txt'. Using this automatically turns buffering on (-b).

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4079
2008-10-28 16:04:21 +00:00
loreg 79852099d0 Revert changes of Revision: 73
If one wants to know about the presence of broken_link_flag, the thing to do is to use esdots -x.
All the recovery point SEI message are reported there (included the value of broken_link_flag)

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4078
2008-10-27 14:03:31 +00:00
tibs 0a69aabc62 Re bug 14712, on my Linux (Ubuntu Hardy thingy) box, the man page for
lseek does indeed suggest inclusion of <sys/types.h>, as well as
<unistd.h>. Experimentation showed that ading <sys/types.h> didn't
hurt on Mac OS/X, so add both into compat.h -- hopefull this will
solve the bug.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4077
2008-10-27 09:32:09 +00:00
tibs 2112c26de3 Minor change.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4076
2008-10-27 09:30:17 +00:00
tibs d8b4360196 Reinstate the u_int32 to uint32_t changes for this file, so it will
compile again.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4075
2008-10-26 15:51:08 +00:00