Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
FrogTheFrog committed Jul 26, 2024
1 parent eea095b commit 2d9423b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
4 changes: 2 additions & 2 deletions cmake/compile_definitions/common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ list(APPEND SUNSHINE_EXTERNAL_LIBRARIES
${MINIUPNP_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
enet
libdisplaydevice::display_device
opus
${FFMPEG_LIBRARIES}
${Boost_LIBRARIES}
${OPENSSL_LIBRARIES}
${PLATFORM_LIBRARIES}
libdisplaydevice::display_device)
${PLATFORM_LIBRARIES})
15 changes: 6 additions & 9 deletions src/display_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ namespace display_device {
* @brief Get the singleton instance.
* @returns Singleton instance for the class.
*
* EXAMPLES:
* ```cpp
* @examples
* session_t& session { session_t::get() };
* ```
* @end_examples
*/
[[nodiscard]] static session_t &
get();
Expand All @@ -39,10 +38,9 @@ namespace display_device {
* @brief Initialize the singleton and perform the initial state recovery (if needed).
* @returns A deinit_t instance that performs cleanup when destroyed.
*
* EXAMPLES:
* ```cpp
* @examples
* const auto session_guard { session_t::init() };
* ```
* @end_examples
*/
[[nodiscard]] static std::unique_ptr<platf::deinit_t>
init();
Expand All @@ -52,12 +50,11 @@ namespace display_device {
* @param output_name The user-configurable output name.
* @returns Mapped display name or empty string if the output name could not be mapped.
*
* EXAMPLES:
* ```cpp
* @examples
* session_t& session { session_t::get() };
* const auto mapped_name_config { session.get_display_name(config::video.output_name) };
* const auto mapped_name_custom { session.get_display_name("{some-device-id}") };
* ```
* @end_examples
*/
[[nodiscard]] std::string
map_output_name(const std::string &output_name) const;
Expand Down
2 changes: 1 addition & 1 deletion src_assets/common/assets/web/public/assets/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
"origin_web_ui_allowed_pc": "Only localhost may access Web UI",
"origin_web_ui_allowed_wan": "Anyone may access Web UI",
"output_name_desc_unix": "During Sunshine startup, you should see the list of detected displays. Note: You need to use the id value inside the parenthesis.",
"output_name_desc_windows": "Manually specify a display device id to use for capture. If unset, the primary display is captured. Note: If you specified a GPU above, this display must be connected to that GPU. During Sunshine startup, you should see a list of available display devices and their ids in the log output, e.g.:",
"output_name_desc_windows": "Manually specify a display device id to use for capture. If unset, the primary display is captured. Note: If you specified a GPU above, this display must be connected to that GPU. During Sunshine startup, you should see the list of detected displays. Below is an example; the actual output can be found in the Troubleshooting tab.",
"output_name_unix": "Display number",
"output_name_windows": "Display Device Id",
"ping_timeout": "Ping Timeout",
Expand Down

0 comments on commit 2d9423b

Please sign in to comment.