Please consider using libphosh
phog have quite some overlap code wise. I'd see the following advantages when using these parts from phosh directly (e.g. by linking against libphosh which phosh already builds (or a subset)):
1 UI would stay in sync style wise
- notch support would work the same way once landed on the phosh side
- phosh and phoc share a private Wayland interface, when that changes phog can break.
- Things like emergency-calls would have a better chance of working (there's still additional work todo but at least the bits would stay in sync)
- new indicators could work out of the box
- Hopefully less maintenance work on the phog side
Possible downsides:
- security: you don't know what you get exactly when pulling in phosh parts
- maybe fighting an unstable API
I think a good start (in case somebody wants to poke at it) would be to look at adding tests/test-lockscreen.c and tests/lockscreen-manager.c to phosh which would force us keep the interfaces clear. This would also mitigate the 2. downside as we'd basically notice when we change the "interface" to phog.
I only had a quick look so might be missing something but it looks to me as if we could Derive PhogGreetd from PhoshLockscreen (which basically can be made a derivable type with a one line change).