Base: Add OBSPropertiesAutoDestroy

This commit is contained in:
tt2468 2021-08-30 13:55:05 -07:00
parent 6035f258d2
commit b86107a699
2 changed files with 4 additions and 0 deletions

View File

@ -29,6 +29,7 @@ void ___data_array_dummy_addref(obs_data_array_t*) {};
void ___output_dummy_addref(obs_output_t*) {}; void ___output_dummy_addref(obs_output_t*) {};
void ___data_item_dummy_addref(obs_data_item_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 ___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) bool obs_module_load(void)
{ {

View File

@ -18,6 +18,7 @@ void ___data_array_dummy_addref(obs_data_array_t*);
void ___output_dummy_addref(obs_output_t*); void ___output_dummy_addref(obs_output_t*);
void ___data_item_dummy_addref(obs_data_item_t*); void ___data_item_dummy_addref(obs_data_item_t*);
void ___data_item_release(obs_data_item_t*); void ___data_item_release(obs_data_item_t*);
void ___properties_dummy_addref(obs_properties_t*);
using OBSSourceAutoRelease = using OBSSourceAutoRelease =
OBSRef<obs_source_t*, ___source_dummy_addref, obs_source_release>; 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>; OBSRef<obs_output_t*, ___output_dummy_addref, obs_output_release>;
using OBSDataItemAutoRelease = using OBSDataItemAutoRelease =
OBSRef<obs_data_item_t*, ___data_item_dummy_addref, ___data_item_release>; 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; class Config;
typedef std::shared_ptr<Config> ConfigPtr; typedef std::shared_ptr<Config> ConfigPtr;