From 1250544719b81977f9bd3ad021b6bbbd0cc8983a Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 4 Dec 2024 08:32:26 -0400 Subject: [PATCH] MT#55283 support "text" and "application" media Change-Id: Id6294eab976e55b4c0bf1c0cfec9ab21b962d5ef --- lib/codeclib.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/codeclib.h b/lib/codeclib.h index 32c591559..57d5c68d9 100644 --- a/lib/codeclib.h +++ b/lib/codeclib.h @@ -14,6 +14,8 @@ enum media_type { MT_VIDEO, MT_IMAGE, MT_MESSAGE, + MT_TEXT, + MT_APPLICATION, MT_OTHER, __MT_MAX @@ -34,6 +36,10 @@ INLINE enum media_type codec_get_type(const str *type) { return MT_IMAGE; if (!str_cmp(type, "message")) return MT_MESSAGE; + if (!str_cmp(type, "text")) + return MT_TEXT; + if (!str_cmp(type, "application")) + return MT_APPLICATION; return MT_OTHER; }