filter.h (r4203/r3375)

Go to the documentation of this file.
00001 /*
00002  * $Id: filter.h 3375 2006-09-08 09:17:12Z riedel $
00003  *
00004  * Copyright (c) 2004
00005  * Telecooperation Office (TecO), Universitaet Karlsruhe (TH), Germany.
00006  * All rights reserved.
00007  *
00008  * Redistribution and use in source and binary forms, with or without
00009  * modification, are permitted provided that the following conditions
00010  * are met:
00011  * 1. Redistributions of source code must retain the above copyright
00012  *    notice, this list of conditions and the following disclaimer.
00013  * 2. Redistributions in binary form must reproduce the above
00014  *    copyright notice, this list of conditions and the following
00015  *    disclaimer in the documentation and/or other materials provided
00016  *    with the distribution.
00017  * 3. Neither the name of the Universitaet Karlsruhe (TH) nor the names
00018  *    of its contributors may be used to endorse or promote products
00019  *    derived from this software without specific prior written
00020  *    permission.
00021  *
00022  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00023  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00024  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
00025  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
00026  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00027  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
00028  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
00029  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
00030  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00031  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00032  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00033  *
00034  * Author(s): Max Laier <mlaier@freebsd.org>
00035  *                        Till Riedel <riedel@teco.edu>
00036  *                        Thomas Morper <morper@teco.edu>
00037  */
00038 
00049 #ifndef _FILTER_H_
00050 #define _FILTER_H_
00051 
00052 #include "conf.h"
00053 #include "filter_enum.h"
00054 
00055 struct p_packet;
00056 
00065 LIBPARTICLE_API int p_filter_create(const char * filter_name);
00066 
00074 LIBPARTICLE_API int p_filter_destroy(int filter);
00075 
00159 LIBPARTICLE_API int p_filter_add(int filter, int type, const void * arg);
00160 
00197 LIBPARTICLE_API int p_filter_add_str(int filter, const char *char_type, const char *char_arg);
00198 
00199 
00206 LIBPARTICLE_API int p_filter_apply(int filter, struct p_packet * packet);
00207 
00213 LIBPARTICLE_API void p_describe_filter(int filter);
00214 
00223 LIBPARTICLE_API void *p_filter_arg(int filter);
00224 
00228 #endif /* _FILTER_H */

Generated on Tue Apr 10 15:22:25 2007 for libparticle by  doxygen 1.5.1