Files
SubMiner/src/main/runtime/mpv-jellyfin-defaults-main-deps.ts
2026-03-01 02:36:51 -08:00

23 lines
821 B
TypeScript

import type {
createApplyJellyfinMpvDefaultsHandler,
createGetDefaultSocketPathHandler,
} from './mpv-jellyfin-defaults';
type ApplyJellyfinMpvDefaultsMainDeps = Parameters<typeof createApplyJellyfinMpvDefaultsHandler>[0];
type GetDefaultSocketPathMainDeps = Parameters<typeof createGetDefaultSocketPathHandler>[0];
export function createBuildApplyJellyfinMpvDefaultsMainDepsHandler(
deps: ApplyJellyfinMpvDefaultsMainDeps,
) {
return (): ApplyJellyfinMpvDefaultsMainDeps => ({
sendMpvCommandRuntime: (client, command) => deps.sendMpvCommandRuntime(client, command),
jellyfinLangPref: deps.jellyfinLangPref,
});
}
export function createBuildGetDefaultSocketPathMainDepsHandler(deps: GetDefaultSocketPathMainDeps) {
return (): GetDefaultSocketPathMainDeps => ({
platform: deps.platform,
});
}