Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Functions
media_params.h File Reference
#include <epan/wmem_scopes.h>
#include "ws_symbol_export.h"

Go to the source code of this file.

Functions

WS_DLL_PUBLIC char * ws_find_media_type_parameter (wmem_allocator_t *scope, const char *parameters, const char *key)
 Finds a media type parameter in a given set of parameters.
 

Detailed Description

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 geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 1998 Gerald Combs

SPDX-License-Identifier: GPL-2.0-or-later

Function Documentation

◆ ws_find_media_type_parameter()

WS_DLL_PUBLIC char * ws_find_media_type_parameter ( wmem_allocator_t scope,
const char *  parameters,
const char *  key 
)

Finds a media type parameter in a given set of parameters.

Searches for a parameter with a specified key within a string containing multiple parameters.

Parameters
scopeMemory allocator scope.
parametersString containing the parameters to search through.
keyThe key of the parameter to find.
Returns
Pointer to the value of the found parameter, or NULL if not found.