(API Change) Use 'get' convention in libobs (base)
Instead of having functions like obs_signal_handler() that can fail to properly specify their actual intent in the name (does it signal a handler, or does it return a signal handler?), always prefix functions that are meant to get information with 'get' to make its functionality more explicit. Previous names: New names: ----------------------------------------------------------- obs_audio obs_get_audio obs_video obs_get_video obs_signalhandler obs_get_signal_handler obs_prochandler obs_get_proc_handler obs_source_signalhandler obs_source_get_signal_handler obs_source_prochandler obs_source_get_proc_handler obs_output_signalhandler obs_output_get_signal_handler obs_output_prochandler obs_output_get_proc_handler obs_service_signalhandler obs_service_get_signal_handler obs_service_prochandler obs_service_get_proc_handler
This commit is contained in:
@@ -820,12 +820,12 @@ void obs_leave_graphics(void)
|
||||
gs_leavecontext();
|
||||
}
|
||||
|
||||
audio_t obs_audio(void)
|
||||
audio_t obs_get_audio(void)
|
||||
{
|
||||
return (obs != NULL) ? obs->audio.audio : NULL;
|
||||
}
|
||||
|
||||
video_t obs_video(void)
|
||||
video_t obs_get_video(void)
|
||||
{
|
||||
return (obs != NULL) ? obs->video.video : NULL;
|
||||
}
|
||||
@@ -1086,13 +1086,13 @@ effect_t obs_get_solid_effect(void)
|
||||
return obs->video.solid_effect;
|
||||
}
|
||||
|
||||
signal_handler_t obs_signalhandler(void)
|
||||
signal_handler_t obs_get_signal_handler(void)
|
||||
{
|
||||
if (!obs) return NULL;
|
||||
return obs->signals;
|
||||
}
|
||||
|
||||
proc_handler_t obs_prochandler(void)
|
||||
proc_handler_t obs_get_proc_handler(void)
|
||||
{
|
||||
if (!obs) return NULL;
|
||||
return obs->procs;
|
||||
|
Reference in New Issue
Block a user