2001-02-01 20:31:21 +00:00
|
|
|
/*
|
2004-07-18 00:24:25 +00:00
|
|
|
* $Id$
|
2001-02-01 20:31:21 +00:00
|
|
|
*
|
2006-05-21 05:12:17 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
2008-01-08 22:54:51 +00:00
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2001-02-01 20:31:21 +00:00
|
|
|
* Copyright 2001 Gerald Combs
|
|
|
|
*
|
2002-08-28 20:41:00 +00:00
|
|
|
*
|
2001-02-01 20:31:21 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2002-08-28 20:41:00 +00:00
|
|
|
*
|
2001-02-01 20:31:21 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2002-08-28 20:41:00 +00:00
|
|
|
*
|
2001-02-01 20:31:21 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2012-06-28 22:56:06 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2001-02-01 20:31:21 +00:00
|
|
|
*/
|
|
|
|
|
2001-02-01 20:21:25 +00:00
|
|
|
#ifndef STTYPE_RANGE_H
|
|
|
|
#define STTYPE_RANGE_H
|
|
|
|
|
|
|
|
#include "syntax-tree.h"
|
2001-02-27 19:23:30 +00:00
|
|
|
#include "drange.h"
|
2001-02-01 20:21:25 +00:00
|
|
|
|
|
|
|
STTYPE_ACCESSOR_PROTOTYPE(header_field_info*, range, hfinfo)
|
2013-03-05 06:16:45 +00:00
|
|
|
STTYPE_ACCESSOR_PROTOTYPE(drange_t*, range, drange)
|
2001-02-01 20:21:25 +00:00
|
|
|
|
2001-02-27 19:23:30 +00:00
|
|
|
/* Set a range */
|
2001-02-01 20:21:25 +00:00
|
|
|
void
|
2001-02-27 19:23:30 +00:00
|
|
|
sttype_range_set(stnode_t *node, stnode_t *field, GSList* drange_list);
|
2001-02-01 20:21:25 +00:00
|
|
|
|
|
|
|
void
|
2001-02-27 19:23:30 +00:00
|
|
|
sttype_range_set1(stnode_t *node, stnode_t *field, drange_node *rn);
|
|
|
|
|
|
|
|
/* Clear the 'drange' variable to remove responsibility for
|
|
|
|
* freeing it. */
|
|
|
|
void
|
|
|
|
sttype_range_remove_drange(stnode_t *node);
|
2001-02-01 20:21:25 +00:00
|
|
|
|
|
|
|
#endif
|