validate: Fix padding and constants

Without this the Rust -sys validate crate tests don't pass.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1810>
This commit is contained in:
Philippe Normand 2022-02-28 10:58:41 +00:00
parent 8780da3ffe
commit d07f2323fe
2 changed files with 5 additions and 3 deletions

View file

@ -265,7 +265,7 @@ struct _GstValidateActionType
GstValidateActionTypePrivate* priv;
/*< private >*/
gpointer _gst_reserved[GST_PADDING_LARGE - sizeof (GstRank) - 2];
gpointer _gst_reserved[GST_PADDING_LARGE];
};
#ifndef __GI_SCANNER__

View file

@ -29,8 +29,10 @@
G_BEGIN_DECLS
#define GST_VALIDATE_UNKNOWN_UINT64 (G_MAXUINT64 - 2)
#define GST_VALIDATE_UNKNOWN_BOOL (G_MAXUINT32 - 2)
#define GST_VALIDATE_UNKNOWN_UINT64 -1
#define GST_VALIDATE_UNKNOWN_BOOL -1
typedef struct
{
/* Children */