Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mhoyer-streamlabs committed Mar 5, 2025
1 parent cb61754 commit 0d419d0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions obs-studio-client/source/service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ Napi::FunctionReference osn::Service::constructor;
Napi::Object osn::Service::Init(Napi::Env env, Napi::Object exports)
{
Napi::HandleScope scope(env);
Napi::Function func = DefineClass(
env, "Service",
{StaticMethod("types", &osn::Service::Types), StaticMethod("destroy", &osn::Service::Destroy), StaticMethod("create", &osn::Service::Create),
InstanceMethod("update", &osn::Service::Update),
Napi::Function func =
DefineClass(env, "Service",
{StaticMethod("types", &osn::Service::Types), StaticMethod("destroy", &osn::Service::Destroy),
StaticMethod("create", &osn::Service::Create), InstanceMethod("update", &osn::Service::Update),

InstanceAccessor("name", &osn::Service::GetName, nullptr), InstanceAccessor("properties", &osn::Service::GetProperties, nullptr),
InstanceAccessor("settings", &osn::Service::GetSettings, nullptr),
InstanceAccessor("name", &osn::Service::GetName, nullptr), InstanceAccessor("properties", &osn::Service::GetProperties, nullptr),
InstanceAccessor("settings", &osn::Service::GetSettings, nullptr),

StaticAccessor("legacySettings", &osn::Service::GetLegacySettings, &osn::Service::SetLegacySettings)});
StaticAccessor("legacySettings", &osn::Service::GetLegacySettings, &osn::Service::SetLegacySettings)});
exports.Set("Service", func);
osn::Service::constructor = Napi::Persistent(func);
osn::Service::constructor.SuppressDestruct();
Expand Down

0 comments on commit 0d419d0

Please sign in to comment.