New upstream version 18.0.1+dfsg1
This commit is contained in:
parent
6efda2859e
commit
f2cf6cce50
1337 changed files with 41178 additions and 84670 deletions
|
|
@ -17,4 +17,13 @@ add_library(obs-frontend-api SHARED
|
|||
target_link_libraries(obs-frontend-api
|
||||
libobs)
|
||||
|
||||
if(UNIX AND NOT APPLE)
|
||||
set_target_properties(obs-frontend-api
|
||||
PROPERTIES
|
||||
OUTPUT_NAME obs-frontend-api
|
||||
VERSION 0.0
|
||||
SOVERSION 0
|
||||
)
|
||||
endif()
|
||||
|
||||
install_obs_core(obs-frontend-api)
|
||||
|
|
|
|||
|
|
@ -205,6 +205,23 @@ bool obs_frontend_recording_active(void)
|
|||
: false;
|
||||
}
|
||||
|
||||
void obs_frontend_replay_buffer_start(void)
|
||||
{
|
||||
if (callbacks_valid()) c->obs_frontend_replay_buffer_start();
|
||||
}
|
||||
|
||||
void obs_frontend_replay_buffer_stop(void)
|
||||
{
|
||||
if (callbacks_valid()) c->obs_frontend_replay_buffer_stop();
|
||||
}
|
||||
|
||||
bool obs_frontend_replay_buffer_active(void)
|
||||
{
|
||||
return !!callbacks_valid()
|
||||
? c->obs_frontend_replay_buffer_active()
|
||||
: false;
|
||||
}
|
||||
|
||||
void *obs_frontend_add_tools_menu_qaction(const char *name)
|
||||
{
|
||||
return !!callbacks_valid()
|
||||
|
|
@ -248,6 +265,13 @@ obs_output_t *obs_frontend_get_recording_output(void)
|
|||
: nullptr;
|
||||
}
|
||||
|
||||
obs_output_t *obs_frontend_get_replay_buffer_output(void)
|
||||
{
|
||||
return !!callbacks_valid()
|
||||
? c->obs_frontend_get_replay_buffer_output()
|
||||
: nullptr;
|
||||
}
|
||||
|
||||
config_t *obs_frontend_get_profile_config(void)
|
||||
{
|
||||
return !!callbacks_valid()
|
||||
|
|
|
|||
|
|
@ -70,6 +70,10 @@ EXPORT void obs_frontend_recording_start(void);
|
|||
EXPORT void obs_frontend_recording_stop(void);
|
||||
EXPORT bool obs_frontend_recording_active(void);
|
||||
|
||||
EXPORT void obs_frontend_replay_buffer_start(void);
|
||||
EXPORT void obs_frontend_replay_buffer_stop(void);
|
||||
EXPORT bool obs_frontend_replay_buffer_active(void);
|
||||
|
||||
typedef void (*obs_frontend_cb)(void *private_data);
|
||||
|
||||
EXPORT void *obs_frontend_add_tools_menu_qaction(const char *name);
|
||||
|
|
@ -94,7 +98,12 @@ enum obs_frontend_event {
|
|||
OBS_FRONTEND_EVENT_SCENE_COLLECTION_LIST_CHANGED,
|
||||
OBS_FRONTEND_EVENT_PROFILE_CHANGED,
|
||||
OBS_FRONTEND_EVENT_PROFILE_LIST_CHANGED,
|
||||
OBS_FRONTEND_EVENT_EXIT
|
||||
OBS_FRONTEND_EVENT_EXIT,
|
||||
|
||||
OBS_FRONTEND_EVENT_REPLAY_BUFFER_STARTING,
|
||||
OBS_FRONTEND_EVENT_REPLAY_BUFFER_STARTED,
|
||||
OBS_FRONTEND_EVENT_REPLAY_BUFFER_STOPPING,
|
||||
OBS_FRONTEND_EVENT_REPLAY_BUFFER_STOPPED
|
||||
};
|
||||
|
||||
typedef void (*obs_frontend_event_cb)(enum obs_frontend_event event,
|
||||
|
|
@ -116,6 +125,7 @@ EXPORT void obs_frontend_remove_save_callback(obs_frontend_save_cb callback,
|
|||
|
||||
EXPORT obs_output_t *obs_frontend_get_streaming_output(void);
|
||||
EXPORT obs_output_t *obs_frontend_get_recording_output(void);
|
||||
EXPORT obs_output_t *obs_frontend_get_replay_buffer_output(void);
|
||||
|
||||
EXPORT config_t *obs_frontend_get_profile_config(void);
|
||||
EXPORT config_t *obs_frontend_get_global_config(void);
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
#include <string>
|
||||
|
||||
struct obs_frontend_callbacks {
|
||||
virtual ~obs_frontend_callbacks() {}
|
||||
virtual void *obs_frontend_get_main_window(void)=0;
|
||||
virtual void *obs_frontend_get_main_window_handle(void)=0;
|
||||
|
||||
|
|
@ -39,6 +40,10 @@ struct obs_frontend_callbacks {
|
|||
virtual void obs_frontend_recording_stop(void)=0;
|
||||
virtual bool obs_frontend_recording_active(void)=0;
|
||||
|
||||
virtual void obs_frontend_replay_buffer_start(void)=0;
|
||||
virtual void obs_frontend_replay_buffer_stop(void)=0;
|
||||
virtual bool obs_frontend_replay_buffer_active(void)=0;
|
||||
|
||||
virtual void *obs_frontend_add_tools_menu_qaction(const char *name)=0;
|
||||
virtual void obs_frontend_add_tools_menu_item(const char *name,
|
||||
obs_frontend_cb callback, void *private_data)=0;
|
||||
|
|
@ -50,6 +55,7 @@ struct obs_frontend_callbacks {
|
|||
|
||||
virtual obs_output_t *obs_frontend_get_streaming_output(void)=0;
|
||||
virtual obs_output_t *obs_frontend_get_recording_output(void)=0;
|
||||
virtual obs_output_t *obs_frontend_get_replay_buffer_output(void)=0;
|
||||
|
||||
virtual config_t *obs_frontend_get_profile_config(void)=0;
|
||||
virtual config_t *obs_frontend_get_global_config(void)=0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue