From c6de17c9b4e1a8414ad359ad466a5e3647c75191 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 19 Feb 2025 18:07:33 +0100 Subject: [PATCH] spa: improve introspection --- spa/include/spa/control/type-info.h | 2 +- spa/include/spa/param/format-types.h | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/spa/include/spa/control/type-info.h b/spa/include/spa/control/type-info.h index 26f2f2cbd..6c7bd6a96 100644 --- a/spa/include/spa/control/type-info.h +++ b/spa/include/spa/control/type-info.h @@ -15,7 +15,7 @@ extern "C" { */ #include -#include +#include #include /* base for parameter object enumerations */ diff --git a/spa/include/spa/param/format-types.h b/spa/include/spa/param/format-types.h index b7f52d71d..8daaa103e 100644 --- a/spa/include/spa/param/format-types.h +++ b/spa/include/spa/param/format-types.h @@ -19,6 +19,7 @@ extern "C" { #include #include +#include #define SPA_TYPE_INFO_Format SPA_TYPE_INFO_PARAM_BASE "Format" #define SPA_TYPE_INFO_FORMAT_BASE SPA_TYPE_INFO_Format ":" @@ -103,6 +104,9 @@ static const struct spa_type_info spa_type_media_subtype[] = { #define SPA_TYPE_INFO_FORMAT_VIDEO_H264 SPA_TYPE_INFO_FORMAT_VIDEO_BASE "H264" #define SPA_TYPE_INFO_FORMAT_VIDEO_H264_BASE SPA_TYPE_INFO_FORMAT_VIDEO_H264 ":" +#define SPA_TYPE_INFO_FormatControl SPA_TYPE_INFO_FORMAT_BASE "Control" +#define SPA_TYPE_INFO_FORMAT_CONTROL_BASE SPA_TYPE_INFO_FormatControl ":" + static const struct spa_type_info spa_type_format[] = { { SPA_FORMAT_START, SPA_TYPE_Id, SPA_TYPE_INFO_FORMAT_BASE, spa_type_param, }, @@ -158,6 +162,8 @@ static const struct spa_type_info spa_type_format[] = { { SPA_FORMAT_VIDEO_H264_streamFormat, SPA_TYPE_Id, SPA_TYPE_INFO_FORMAT_VIDEO_H264_BASE "streamFormat", NULL }, { SPA_FORMAT_VIDEO_H264_alignment, SPA_TYPE_Id, SPA_TYPE_INFO_FORMAT_VIDEO_H264_BASE "alignment", NULL }, + + { SPA_FORMAT_CONTROL_types, SPA_TYPE_Id, SPA_TYPE_INFO_FORMAT_CONTROL_BASE "types", spa_type_control }, { 0, 0, NULL, NULL }, };