Main Page | Data Structures | Directories | File List | Data Fields | Globals

format_helper.h

00001 /*
00002  * This file is part of libtrace
00003  *
00004  * Copyright (c) 2007 The University of Waikato, Hamilton, New Zealand.
00005  * Authors: Daniel Lawson 
00006  *          Perry Lorier 
00007  *          
00008  * All rights reserved.
00009  *
00010  * This code has been developed by the University of Waikato WAND 
00011  * research group. For further information please see http://www.wand.net.nz/
00012  *
00013  * libtrace is free software; you can redistribute it and/or modify
00014  * it under the terms of the GNU General Public License as published by
00015  * the Free Software Foundation; either version 2 of the License, or
00016  * (at your option) any later version.
00017  *
00018  * libtrace is distributed in the hope that it will be useful,
00019  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00021  * GNU General Public License for more details.
00022  *
00023  * You should have received a copy of the GNU General Public License
00024  * along with libtrace; if not, write to the Free Software
00025  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00026  *
00027  * $Id: format_helper.h 1131 2007-01-26 02:31:48Z perry $
00028  *
00029  */
00030 
00031 #ifndef FORMAT_HELPER_H
00032 #define FORMAT_HELPER_H
00033 #include "common.h"
00034 #include "libtraceio.h"
00035 
00036 int trace_read(libtrace_t *libtrace, void *buffer, size_t len);
00037 
00038 struct libtrace_eventobj_t trace_event_device(libtrace_t *trace, libtrace_packet_t *packet);
00039 struct libtrace_eventobj_t trace_event_trace(libtrace_t *trace, libtrace_packet_t *packet);
00040 
00041 int trace_bpf_compile(libtrace_filter_t *filter, 
00042                 const libtrace_packet_t *packet);
00043 
00044 libtrace_io_t *trace_open_file(libtrace_t *libtrace);
00045 libtrace_io_t *trace_open_file_out(libtrace_out_t *libtrace,
00046                 int level,
00047                 int filemode);
00048 #endif /* FORMAT_HELPER_H */

Generated on Mon Feb 12 11:43:50 2007 for WAND Trace processing by  doxygen 1.4.2