Files
Velix-MPV-Core/include/velix/core.h
T

38 lines
866 B
C

#pragma once
#include <stdint.h>
#if defined(__GNUC__) || defined(__clang__)
#define VELIX_CORE_API __attribute__((visibility("default")))
#else
#define VELIX_CORE_API
#endif
#define VELIX_CORE_API_VERSION 0x000100u
#ifdef __cplusplus
extern "C" {
#endif
typedef struct velix_core_build_info {
uint32_t api_version;
const char* sdk_version;
const char* mpv_version;
const char* mpv_commit;
const char* ffmpeg_commit;
const char* ffmpeg_harmony_commit;
const char* build_date;
const char* target;
const char* architecture;
const char* profile;
const char* feature_flags;
} velix_core_build_info;
VELIX_CORE_API uint32_t velix_core_get_api_version(void);
VELIX_CORE_API const char* velix_core_get_version(void);
VELIX_CORE_API const velix_core_build_info* velix_core_get_build_info(void);
#ifdef __cplusplus
}
#endif