libobs: Rename DEPRECATED to OBS_DEPRECATED
Avoid collisions with other libraries that define DEPRECATED.
This commit is contained in:
parent
500111e230
commit
00f280ff9d
@ -1309,12 +1309,14 @@ void obs_encoder_packet_create_instance(struct encoder_packet *dst,
|
||||
memcpy(dst->data, src->data, src->size);
|
||||
}
|
||||
|
||||
/* OBS_DEPRECATED */
|
||||
void obs_duplicate_encoder_packet(struct encoder_packet *dst,
|
||||
const struct encoder_packet *src)
|
||||
{
|
||||
obs_encoder_packet_create_instance(dst, src);
|
||||
}
|
||||
|
||||
/* OBS_DEPRECATED */
|
||||
void obs_free_encoder_packet(struct encoder_packet *packet)
|
||||
{
|
||||
obs_encoder_packet_release(packet);
|
||||
|
@ -397,7 +397,7 @@ EXPORT enum obs_group_type obs_property_group_type(obs_property_t *p);
|
||||
EXPORT obs_properties_t *obs_property_group_content(obs_property_t *p);
|
||||
|
||||
#ifndef SWIG
|
||||
DEPRECATED
|
||||
OBS_DEPRECATED
|
||||
EXPORT enum obs_text_type obs_proprety_text_type(obs_property_t *p);
|
||||
#endif
|
||||
|
||||
|
@ -1656,7 +1656,7 @@ gs_effect_t *obs_get_base_effect(enum obs_base_effect effect)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* DEPRECATED */
|
||||
/* OBS_DEPRECATED */
|
||||
gs_effect_t *obs_get_default_rect_effect(void)
|
||||
{
|
||||
if (!obs)
|
||||
@ -1678,6 +1678,7 @@ proc_handler_t *obs_get_proc_handler(void)
|
||||
return obs->procs;
|
||||
}
|
||||
|
||||
/* OBS_DEPRECATED */
|
||||
void obs_render_main_view(void)
|
||||
{
|
||||
if (!obs)
|
||||
|
@ -630,7 +630,7 @@ EXPORT gs_effect_t *obs_get_base_effect(enum obs_base_effect effect);
|
||||
|
||||
#ifndef SWIG
|
||||
/* DEPRECATED: gets texture_rect default effect */
|
||||
DEPRECATED
|
||||
OBS_DEPRECATED
|
||||
EXPORT gs_effect_t *obs_get_default_rect_effect(void);
|
||||
#endif
|
||||
|
||||
@ -642,7 +642,7 @@ EXPORT proc_handler_t *obs_get_proc_handler(void);
|
||||
|
||||
#ifndef SWIG
|
||||
/** Renders the main view */
|
||||
DEPRECATED
|
||||
OBS_DEPRECATED
|
||||
EXPORT void obs_render_main_view(void);
|
||||
#endif
|
||||
|
||||
@ -2037,11 +2037,11 @@ EXPORT uint32_t obs_encoder_get_caps(const obs_encoder_t *encoder);
|
||||
|
||||
#ifndef SWIG
|
||||
/** Duplicates an encoder packet */
|
||||
DEPRECATED
|
||||
OBS_DEPRECATED
|
||||
EXPORT void obs_duplicate_encoder_packet(struct encoder_packet *dst,
|
||||
const struct encoder_packet *src);
|
||||
|
||||
DEPRECATED
|
||||
OBS_DEPRECATED
|
||||
EXPORT void obs_free_encoder_packet(struct encoder_packet *packet);
|
||||
#endif
|
||||
|
||||
|
@ -24,10 +24,10 @@
|
||||
#define UNUSED_PARAMETER(param) (void)param
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define DEPRECATED __declspec(deprecated)
|
||||
#define OBS_DEPRECATED __declspec(deprecated)
|
||||
#define FORCE_INLINE __forceinline
|
||||
#else
|
||||
#define DEPRECATED __attribute__((deprecated))
|
||||
#define OBS_DEPRECATED __attribute__((deprecated))
|
||||
#define FORCE_INLINE inline __attribute__((always_inline))
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user