MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / saveHttpServers

Function saveHttpServers

plugins/http/http-server.cpp:82–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82static void saveHttpServers(obs_data_t *obj)
83{
84 auto array = obs_data_array_create();
85 for (const auto &s : httpServers) {
86 auto item = obs_data_create();
87 s->Save(item);
88 obs_data_array_push_back(array, item);
89 obs_data_release(item);
90 }
91 obs_data_set_array(obj, "httpServers", array);
92 obs_data_array_release(array);
93}
94
95static void loadHttpServers(obs_data_t *obj)
96{

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.45

Tested by

no test coverage detected