diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-02-17 03:05:54 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-02-17 03:05:54 +0000 |
commit | 9105b04e4bdc3b9954ba474652c171ebcd32cadb (patch) | |
tree | 42adc7ae815b3fa17187af437c07eee04de224ce /file.h | |
parent | 60ffea9d7a9db78a3910c8da27f5081a31555fb9 (diff) |
Have "cf_merge_files()" take a pointer-to-pointer-to-char as the output
file name argument; if the pointed-to pointer is null, it opens a
temporary file, and sets that pointer to a mallocated copy of the
pathname of the temporary file. It no longer needs a file descriptor as
an argument.
svn path=/trunk/; revision=13419
Diffstat (limited to 'file.h')
-rw-r--r-- | file.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -406,8 +406,9 @@ char *cf_read_error_message(int err, const gchar *err_info); * Merge two (or more) capture files into one. * @todo is this the right place for this function? It doesn't have to do a lot with capture_file. * - * @param out_filename output filename - * @param out_fd output file descriptor + * @param out_filename pointer to output filename; if output filename is + * NULL, a temporary file name is generated and *out_filename is set + * to point to the generated file name * @param in_file_count the number of input files to merge * @param in_filnames array of input filenames * @param file_type the output filetype @@ -415,8 +416,7 @@ char *cf_read_error_message(int err, const gchar *err_info); * @return one of cf_status_t */ cf_status_t -cf_merge_files(const char *out_filename, int out_fd, int in_file_count, +cf_merge_files(char **out_filename, int in_file_count, char *const *in_filenames, int file_type, gboolean do_append); - #endif /* file.h */ |