gstreamer-rs/gstreamer-pbutils/sys/tests/constant.c

78 lines
3.8 KiB
C
Raw Normal View History

2022-03-30 15:45:54 +00:00
// Generated by gir (https://github.com/gtk-rs/gir @ 9aa16ead87e1)
2022-03-15 13:34:51 +00:00
// from gir-files (https://github.com/gtk-rs/gir-files @ 0831511aed59)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b4a8f8dee58d)
// DO NOT EDIT
#include "manual.h"
#include <stdio.h>
2021-02-07 15:07:17 +00:00
#define PRINT_CONSTANT(CONSTANT_NAME) \
printf("%s;", #CONSTANT_NAME); \
printf(_Generic((CONSTANT_NAME), \
char *: "%s", \
const char *: "%s", \
char: "%c", \
signed char: "%hhd", \
unsigned char: "%hhu", \
short int: "%hd", \
unsigned short int: "%hu", \
int: "%d", \
unsigned int: "%u", \
long: "%ld", \
unsigned long: "%lu", \
long long: "%lld", \
unsigned long long: "%llu", \
float: "%f", \
2021-02-07 15:07:17 +00:00
double: "%f", \
long double: "%ld"), \
CONSTANT_NAME); \
printf("\n");
int main() {
2021-02-07 15:07:17 +00:00
PRINT_CONSTANT((gint) GST_AUDIO_VISUALIZER_SHADER_FADE);
PRINT_CONSTANT((gint) GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_DOWN);
PRINT_CONSTANT((gint) GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_HORIZ_IN);
PRINT_CONSTANT((gint) GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_HORIZ_OUT);
PRINT_CONSTANT((gint) GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_LEFT);
PRINT_CONSTANT((gint) GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_RIGHT);
PRINT_CONSTANT((gint) GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_UP);
PRINT_CONSTANT((gint) GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_VERT_IN);
PRINT_CONSTANT((gint) GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_VERT_OUT);
PRINT_CONSTANT((gint) GST_AUDIO_VISUALIZER_SHADER_NONE);
PRINT_CONSTANT((gint) GST_DISCOVERER_BUSY);
PRINT_CONSTANT((gint) GST_DISCOVERER_ERROR);
PRINT_CONSTANT((gint) GST_DISCOVERER_MISSING_PLUGINS);
PRINT_CONSTANT((gint) GST_DISCOVERER_OK);
PRINT_CONSTANT((guint) GST_DISCOVERER_SERIALIZE_ALL);
PRINT_CONSTANT((guint) GST_DISCOVERER_SERIALIZE_BASIC);
PRINT_CONSTANT((guint) GST_DISCOVERER_SERIALIZE_CAPS);
PRINT_CONSTANT((guint) GST_DISCOVERER_SERIALIZE_MISC);
PRINT_CONSTANT((guint) GST_DISCOVERER_SERIALIZE_TAGS);
PRINT_CONSTANT((gint) GST_DISCOVERER_TIMEOUT);
PRINT_CONSTANT((gint) GST_DISCOVERER_URI_INVALID);
PRINT_CONSTANT(GST_ENCODING_CATEGORY_CAPTURE);
PRINT_CONSTANT(GST_ENCODING_CATEGORY_DEVICE);
PRINT_CONSTANT(GST_ENCODING_CATEGORY_FILE_EXTENSION);
PRINT_CONSTANT(GST_ENCODING_CATEGORY_ONLINE_SERVICE);
PRINT_CONSTANT(GST_ENCODING_CATEGORY_STORAGE_EDITING);
PRINT_CONSTANT((gint) GST_INSTALL_PLUGINS_CRASHED);
PRINT_CONSTANT((gint) GST_INSTALL_PLUGINS_ERROR);
PRINT_CONSTANT((gint) GST_INSTALL_PLUGINS_HELPER_MISSING);
PRINT_CONSTANT((gint) GST_INSTALL_PLUGINS_INSTALL_IN_PROGRESS);
PRINT_CONSTANT((gint) GST_INSTALL_PLUGINS_INTERNAL_FAILURE);
PRINT_CONSTANT((gint) GST_INSTALL_PLUGINS_INVALID);
PRINT_CONSTANT((gint) GST_INSTALL_PLUGINS_NOT_FOUND);
PRINT_CONSTANT((gint) GST_INSTALL_PLUGINS_PARTIAL_SUCCESS);
PRINT_CONSTANT((gint) GST_INSTALL_PLUGINS_STARTED_OK);
PRINT_CONSTANT((gint) GST_INSTALL_PLUGINS_SUCCESS);
PRINT_CONSTANT((gint) GST_INSTALL_PLUGINS_USER_ABORT);
2021-09-19 08:04:08 +00:00
PRINT_CONSTANT((guint) GST_PBUTILS_CAPS_DESCRIPTION_FLAG_AUDIO);
PRINT_CONSTANT((guint) GST_PBUTILS_CAPS_DESCRIPTION_FLAG_CONTAINER);
PRINT_CONSTANT((guint) GST_PBUTILS_CAPS_DESCRIPTION_FLAG_GENERIC);
PRINT_CONSTANT((guint) GST_PBUTILS_CAPS_DESCRIPTION_FLAG_IMAGE);
PRINT_CONSTANT((guint) GST_PBUTILS_CAPS_DESCRIPTION_FLAG_SUBTITLE);
PRINT_CONSTANT((guint) GST_PBUTILS_CAPS_DESCRIPTION_FLAG_TAG);
PRINT_CONSTANT((guint) GST_PBUTILS_CAPS_DESCRIPTION_FLAG_VIDEO);
return 0;
}