Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / dissectors / packet-media-type.h
blob70de824e19f6a35758ac05aee00b24a80c7f6d0a
1 /* packet-media-type.h
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 */
10 #ifndef __PACKET_MEDIA_TYPE_H__
11 #define __PACKET_MEDIA_TYPE_H__
13 typedef enum {
14 MEDIA_CONTAINER_HTTP_REQUEST, /* HTTP request */
15 MEDIA_CONTAINER_HTTP_RESPONSE, /* HTTP reply */
16 MEDIA_CONTAINER_HTTP_NOTIFICATION, /* HTTP notification */
17 MEDIA_CONTAINER_HTTP_OTHERS, /* other HTTP */
18 MEDIA_CONTAINER_SIP_DATA, /* SIP message */
19 MEDIA_CONTAINER_OTHER /* Everything else */
20 } media_container_type_t;
22 /** Should be passed to dissectors called through the media_type
23 * dissector table. */
24 typedef struct {
25 media_container_type_t type; /**< Container of media; may be MEDIA_CONTAINER_OTHER if not called by HTTP */
26 const char *media_str; /**< Content-Type parameters */
27 const char *content_id; /**< Content-ID parameter */
28 /** In http1.0/1.1, data contains the header name/value mappings, valid only within the packet scope.
29 In other protocols, the http_type is used to indicate the data transported. */
30 void *data; /**< Protocol-specific data */
31 } media_content_info_t;
33 #endif /* __PACKET_MEDIA_TYPE_H__ */