mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
Base: Add OBSPropertiesAutoDestroy
This commit is contained in:
parent
6035f258d2
commit
b86107a699
@ -29,6 +29,7 @@ void ___data_array_dummy_addref(obs_data_array_t*) {};
|
||||
void ___output_dummy_addref(obs_output_t*) {};
|
||||
void ___data_item_dummy_addref(obs_data_item_t*) {};
|
||||
void ___data_item_release(obs_data_item_t* dataItem){ obs_data_item_release(&dataItem); };
|
||||
void ___properties_dummy_addref(obs_properties_t*) {};
|
||||
|
||||
bool obs_module_load(void)
|
||||
{
|
||||
|
@ -18,6 +18,7 @@ void ___data_array_dummy_addref(obs_data_array_t*);
|
||||
void ___output_dummy_addref(obs_output_t*);
|
||||
void ___data_item_dummy_addref(obs_data_item_t*);
|
||||
void ___data_item_release(obs_data_item_t*);
|
||||
void ___properties_dummy_addref(obs_properties_t*);
|
||||
|
||||
using OBSSourceAutoRelease =
|
||||
OBSRef<obs_source_t*, ___source_dummy_addref, obs_source_release>;
|
||||
@ -31,6 +32,8 @@ using OBSOutputAutoRelease =
|
||||
OBSRef<obs_output_t*, ___output_dummy_addref, obs_output_release>;
|
||||
using OBSDataItemAutoRelease =
|
||||
OBSRef<obs_data_item_t*, ___data_item_dummy_addref, ___data_item_release>;
|
||||
using OBSPropertiesAutoDestroy =
|
||||
OBSRef<obs_properties_t*, ___properties_dummy_addref, obs_properties_destroy>;
|
||||
|
||||
class Config;
|
||||
typedef std::shared_ptr<Config> ConfigPtr;
|
||||
|
Loading…
Reference in New Issue
Block a user