aboutsummaryrefslogtreecommitdiffstats
path: root/merge.h
Commit message (Collapse)AuthorAgeFilesLines
* The common merge code merely needs to offer the abstraction of routinesGuy Harris2004-10-291-60/+29
| | | | | | | | | | | | | that return the next packet from a set of {chronologically sorted, sequential-by-file} packets; it doesn't need to have a loop over all those packets, or any code to write packets. Supply those abstractions, change the code that merges packets to do its own writing, and have the Ethereal version manage a progress bar and have the mergecap version print packet numbers in verbose mode, as the common merge code used to do. svn path=/trunk/; revision=12427
* Make "merge_files()" and "merge_append_files()" return a tri-stateGuy Harris2004-10-281-4/+15
| | | | | | | | | | indication - success, read failure, write failure - and have their callers handle read failures by looking for the file that got the read failure and reporting the failure in question. Free up the err_info string returned by "wtap_read()" after using it. svn path=/trunk/; revision=12423
* Remove all the verbose-mode code from merge.c, and put most of it inGuy Harris2004-10-281-17/+8
| | | | | | | | | | | | mergecap.c (get rid of the verbose printing of information for each packet). Have "merge_append_files()" return FALSE only on a write error, as "merge_files()" does. Sort the routines in "merge.c" in the order from "merge.h". svn path=/trunk/; revision=12422
* Get rid of merge_n_files() - it's only called in one place now, andGuy Harris2004-10-271-26/+0
| | | | | | absorbing its logic into "cf_merge_files()" simplifies things a bit. svn path=/trunk/; revision=12421
* Change some of the merge.c APIs to return more information on failure,Guy Harris2004-10-271-17/+34
| | | | | | | | | | | | | and use that information to provide better error messages. Have "merge_open_outfile()" do all the work of filling in the merge_out_file_t structure, with the values to use passed as arguments. Get rid of some structure members that used to be used solely to pass information to "merge_open_outfile()". Add a "cf_merge_files()" routine to do the merging and reporting of errors. svn path=/trunk/; revision=12420
* From Mark C. Brown: allow the file type for the merge operation to beGuy Harris2004-10-171-1/+1
| | | | | | specified in the GUI. svn path=/trunk/; revision=12326
* Set the svn:eol-style property on all text files to "native", so thatGuy Harris2004-07-181-1/+1
| | | | | | | | | they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. svn path=/trunk/; revision=11400
* avoid using tmpnam() for security reasons.Ulf Lamping2004-06-291-3/+3
| | | | | | | instead of giving the merge stuff a filename, give it an already opened file descriptor svn path=/trunk/; revision=11273
* if more than one file is (drag and) dropped into the program,Ulf Lamping2004-06-211-5/+5
| | | | | | | merge them together into a new temporary file (and notice the user by a simple_dialog about it) svn path=/trunk/; revision=11205
* Fix compile errors on Suse 9.1:Jörg Mayer2004-06-181-3/+3
| | | | | | | - It's gboolean not boolean Fix warning about extraneous , at end of enum. svn path=/trunk/; revision=11177
* merge: remove code duplication in merge.c and mergecap.c (put it in merge.c),Ulf Lamping2004-06-181-0/+163
and doing some more code cleanup svn path=/trunk/; revision=11176