docs: update file level doxygen blocks (#1258)

This commit is contained in:
ReenigneArcher
2023-05-07 18:12:39 -04:00
committed by GitHub
parent 07808de447
commit 4ca6dc6c8e
89 changed files with 415 additions and 102 deletions

View File

@@ -1,3 +1,7 @@
/**
* @file src/platform/linux/audio.cpp
* @brief todo
*/
#include <bitset>
#include <sstream>

View File

@@ -1,3 +1,7 @@
/**
* @file src/platform/linux/cuda.cpp
* @brief todo
*/
#include <bitset>
#include <NvFBC.h>

View File

@@ -1,3 +1,7 @@
/**
* @file src/platform/linux/cuda.cu
* @brief todo
*/
// #include <algorithm>
#include <helper_math.h>
#include <chrono>

View File

@@ -1,3 +1,7 @@
/**
* @file src/platform/linux/cuda.h
* @brief todo
*/
#pragma once
#if defined(SUNSHINE_BUILD_CUDA)

View File

@@ -1,3 +1,7 @@
/**
* @file src/platform/linux/graphics.cpp
* @brief todo
*/
#include "graphics.h"
#include "src/video.h"

View File

@@ -1,3 +1,7 @@
/**
* @file src/platform/linux/graphics.h
* @brief todo
*/
#pragma once
#include <optional>

View File

@@ -1,3 +1,7 @@
/**
* @file src/platform/linux/input.cpp
* @brief todo
*/
#include <fcntl.h>
#include <linux/uinput.h>
#include <poll.h>
@@ -1108,7 +1112,7 @@ namespace platf {
*
* EXAMPLES:
* ```cpp
* x_move_mouse(input, 10, 10); // Move mouse 10 pixels down and right
* x_move_mouse(input, 10, 10); // Move mouse 10 pixels down and right
* ```
*/
static void
@@ -1204,7 +1208,7 @@ namespace platf {
*
* EXAMPLES:
* ```cpp
* button_mouse(input, 1, false); // Press left mouse button
* button_mouse(input, 1, false); // Press left mouse button
* ```
*/
void
@@ -1336,12 +1340,12 @@ namespace platf {
* @brief XTest keyboard emulation.
* @param input The input_t instance to use.
* @param modcode The moonlight key code.
* @param release Whether the event was a press (false) or a release (true)
* @param flags SS_KBE_FLAG_* values
* @param release Whether the event was a press (false) or a release (true).
* @param flags SS_KBE_FLAG_* values.
*
* EXAMPLES:
* ```cpp
* x_keyboard(input, 0x5A, false, 0); // Press Z
* x_keyboard(input, 0x5A, false, 0); // Press Z
* ```
*/
static void
@@ -1371,12 +1375,12 @@ namespace platf {
* @brief Keyboard emulation.
* @param input The input_t instance to use.
* @param modcode The moonlight key code.
* @param release Whether the event was a press (false) or a release (true)
* @param flags SS_KBE_FLAG_* values
* @param release Whether the event was a press (false) or a release (true).
* @param flags SS_KBE_FLAG_* values.
*
* EXAMPLES:
* ```cpp
* keyboard(input, 0x5A, false, 0); // Press Z
* keyboard(input, 0x5A, false, 0); // Press Z
* ```
*/
void

View File

@@ -1,3 +1,7 @@
/**
* @file src/platform/linux/kmsgrab.cpp
* @brief todo
*/
#include <drm_fourcc.h>
#include <errno.h>
#include <fcntl.h>

View File

@@ -1,7 +1,7 @@
/**
* @file misc.cpp
* @file src/misc.cpp
* @brief todo
*/
// standard includes
#include <fstream>

View File

@@ -1,3 +1,7 @@
/**
* @file src/platform/linux/misc.h
* @brief todo
*/
#pragma once
#include <unistd.h>

View File

@@ -1,5 +1,9 @@
// adapted from https://www.avahi.org/doxygen/html/client-publish-service_8c-example.html
/**
* @file src/platform/linux/publish.cpp
* @brief todo
* @note Adapted from https://www.avahi.org/doxygen/html/client-publish-service_8c-example.html
* @todo Use a common file for this and src/platform/macos/publish.cpp
*/
#include <thread>
#include "misc.h"
@@ -13,7 +17,7 @@ using namespace std::literals;
namespace avahi {
/**
* @brief Error codes used by avahi
* @brief Error codes used by avahi.
*/
enum err_e {
OK = 0, /**< OK */
@@ -116,7 +120,7 @@ namespace avahi {
};
/**
* @brief Some flags for publishing functions
* @brief Flags for publishing functions.
*/
enum PublishFlags {
PUBLISH_UNIQUE = 1, /**< For raw records: The RRset is intended to be unique */

View File

@@ -1,3 +1,7 @@
/**
* @file src/platform/linux/vaapi.cpp
* @brief todo
*/
#include <sstream>
#include <string>
@@ -82,7 +86,7 @@ namespace va {
};
/**
* @brief Currently defined profiles
* @brief Defined profiles
*/
enum class profile_e {
// Profile ID used for video processing.

View File

@@ -1,3 +1,7 @@
/**
* @file src/platform/linux/vaapi.h
* @brief todo
*/
#pragma once
#include "misc.h"

View File

@@ -1,3 +1,7 @@
/**
* @file src/platform/linux/wayland.cpp
* @brief todo
*/
#include <wayland-client.h>
#include <wayland-util.h>

View File

@@ -1,3 +1,7 @@
/**
* @file src/platform/linux/wayland.h
* @brief todo
*/
#pragma once
#include <bitset>

View File

@@ -1,3 +1,7 @@
/**
* @file src/platform/linux/wlgrab.cpp
* @brief todo
*/
#include "src/platform/common.h"
#include "src/main.h"

View File

@@ -1,3 +1,7 @@
/**
* @file src/platform/linux/x11grab.cpp
* @brief todo
*/
#include "src/platform/common.h"
#include <fstream>

View File

@@ -1,3 +1,7 @@
/**
* @file src/platform/linux/x11grab.h
* @brief todo
*/
#pragma once
#include <optional>