summaryrefslogtreecommitdiff
path: root/filetap
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2014-01-08 04:35:28 +0000
committerMichael Mann <mmann78@netscape.net>2014-01-08 04:35:28 +0000
commitbf284da2eef917f8bf55be3aad15bb296072bb77 (patch)
treefbf66f67fb32e3d49466867e62a1c07a03300283 /filetap
parenta6ed8a1de97a70668a8feaeade2a11cc4c93185f (diff)
downloadwireshark-bf284da2eef917f8bf55be3aad15bb296072bb77.tar.gz
TFShark (Terminal Fileshark) v.001. Bug 9607 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9607)
This is a VERY PRELIMINARY version of tfshark. It's an attempt to jumpstart FileShark and its architecture. Right now it's mostly just a very stripped down version of tshark with all of the necessary build modifications (including now building filetap library since tfshark depends on it) This code has helped me identify what I believe to be all of the necessary layers for a complete fileshark architecture. And those layers will slowly be added in time (patches always welcome!). svn path=/trunk/; revision=54646
Diffstat (limited to 'filetap')
-rw-r--r--filetap/file_access.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/filetap/file_access.c b/filetap/file_access.c
index 60b876725d..bb93891562 100644
--- a/filetap/file_access.c
+++ b/filetap/file_access.c
@@ -208,6 +208,11 @@ GSList *ftap_get_all_file_extensions_list(void)
return extensions;
}
+int empty_open(ftap *wth, int *err, gchar **err_info)
+{
+ return 0;
+}
+
/* The open_file_* routines should return:
*
* -1 on an I/O error;
@@ -232,7 +237,7 @@ GSList *ftap_get_all_file_extensions_list(void)
* are easy to identify. Only an open routine is needed.
*/
static const ftap_open_routine_t magic_number_open_routines_base[] = {
- NULL/* libpcap_open, */
+ empty_open/* libpcap_open, */
};
#define N_MAGIC_FILE_TYPES (sizeof magic_number_open_routines_base / sizeof magic_number_open_routines_base[0])