wireshark/epan/media_params.h
Michael Mann f2f7f7e557 Add wmem alloc parameter to ws_find_media_type_parameter.
All current uses of ws_find_media_type_parameter need wmem_packet_scope(), but there
is no sense in limiting what other dissectors may want to do.

Change-Id: I35b0dd2a024a0ae0a8345577dd92a1a21ddd2cc4
Reviewed-on: https://code.wireshark.org/review/26427
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Michael Mann <mmann78@netscape.net>
2018-03-11 15:07:24 +00:00

35 lines
811 B
C

/* media_params.h
* Routines for parsing media type parameters as per RFC 822 and RFC 2045
* Copyright 2004, Anders Broman.
* Copyright 2004, Olivier Biot.
*
* Refer to the AUTHORS file or the AUTHORS section in the man page
* for contacting the author(s) of this file.
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __MEDIA_PARAMS_H__
#define __MEDIA_PARAMS_H__
#include <epan/wmem/wmem.h>
#include "ws_symbol_export.h"
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
WS_DLL_PUBLIC char *
ws_find_media_type_parameter(wmem_allocator_t *scope, const char *parameters, const char *key);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* media_params.h */