Skip to content

Commit b6f819c

Browse files
committed
Doc-comments fix
1 parent abe80f9 commit b6f819c

File tree

2 files changed

+48
-48
lines changed

2 files changed

+48
-48
lines changed

include/i3ipc++/ipc-util.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ namespace i3ipc {
2323
*/
2424
struct header_t {
2525
/* 6 = strlen(I3_IPC_MAGIC) */
26-
char magic[6]; /**< Magic string @see I3_IPC_MAGIC */
27-
uint32_t size; /**< Size of payload */
28-
uint32_t type; /**< Message type */
26+
char magic[6]; ///< Magic string @see I3_IPC_MAGIC
27+
uint32_t size; ///< Size of payload
28+
uint32_t type; ///< Message type
2929
} __attribute__ ((packed));
3030

3131

@@ -84,8 +84,8 @@ enum class ReplyType : uint32_t {
8484
* @brief i3 IPC message buffer
8585
*/
8686
struct buf_t {
87-
uint32_t size; /**< @brief Size of whole buffer */
88-
uint8_t* data; /**< @brief Pointer to the message */
87+
uint32_t size; ///< @brief Size of whole buffer
88+
uint8_t* data; ///< @brief Pointer to the message
8989

9090
/**
9191
* @brief i3 IPC message header

include/i3ipc++/ipc.hpp

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -27,80 +27,80 @@ std::string get_socketpath();
2727
* Primitive of rectangle
2828
*/
2929
struct rect_t {
30-
int x; /**< Position on X axis */
31-
int y; /**< Position on Y axis */
32-
int width; /**< Width of rectangle */
33-
int height; /**< Height of rectangle */
30+
int x; ///< Position on X axis
31+
int y; ///< Position on Y axis
32+
int width; ///< Width of rectangle
33+
int height; ///< Height of rectangle
3434
};
3535

3636
/**
3737
* i3's workspace
3838
*/
3939
struct workspace_t {
40-
int num; /**< Index of the worksapce */
41-
std::string name; /**< Name of the workspace */
42-
bool visible; /**< Is the workspace visible */
43-
bool focused; /**< Is the workspace is currently focused */
44-
bool urgent; /**< Is the workspace is urgent */
45-
rect_t rect; /**< A size of the workspace */
46-
std::string output; /**< An output of the workspace */
40+
int num; ///< Index of the worksapce
41+
std::string name; ///< Name of the workspace
42+
bool visible; ///< Is the workspace visible
43+
bool focused; ///< Is the workspace is currently focused
44+
bool urgent; ///< Is the workspace is urgent
45+
rect_t rect; ///< A size of the workspace
46+
std::string output; ///< An output of the workspace
4747
};
4848

4949
/**
5050
* i3's output
5151
*/
5252
struct output_t {
53-
std::string name; /**< Name of the output */
54-
bool active; /**< Is the output currently active */
55-
std::string current_workspace; /**< Name of current workspace */
56-
rect_t rect; /**< Size of the output */
53+
std::string name; ///< Name of the output
54+
bool active; ///< Is the output currently active
55+
std::string current_workspace; ///< Name of current workspace
56+
rect_t rect; ///< Size of the output
5757
};
5858

5959
/**
6060
* Version of i3
6161
*/
6262
struct version_t {
63-
std::string human_readable; /**< Human redable version string */
64-
std::string loaded_config_file_name; /**< Path to current config of i3 */
65-
uint32_t major; /**< Major version of i3 */
66-
uint32_t minor; /**< Minor version of i3 */
67-
uint32_t patch; /**< Patch number of i3 */
63+
std::string human_readable; ///< Human redable version string
64+
std::string loaded_config_file_name; ///< Path to current config of i3
65+
uint32_t major; ///< Major version of i3
66+
uint32_t minor; ///< Minor version of i3
67+
uint32_t patch; ///< Patch number of i3
6868
};
6969

7070

7171
/**
7272
* Types of the events of i3
7373
*/
7474
enum EventType {
75-
ET_WORKSPACE = (1 << 0), /**< Workspace event */
76-
ET_OUTPUT = (1 << 1), /**< Output event */
77-
ET_MODE = (1 << 2), /**< Output mode event */
78-
ET_WINDOW = (1 << 3), /**< Window event */
79-
ET_BARCONFIG_UPDATE = (1 << 4), /**< Bar config update event @attention Yet is not implemented as signal in I3Connection */
75+
ET_WORKSPACE = (1 << 0), ///< Workspace event
76+
ET_OUTPUT = (1 << 1), ///< Output event
77+
ET_MODE = (1 << 2), ///< Output mode event
78+
ET_WINDOW = (1 << 3), ///< Window event
79+
ET_BARCONFIG_UPDATE = (1 << 4), ///< Bar config update event @attention Yet is not implemented as signal in I3Connection
8080
};
8181

8282
/**
8383
* Types of workspace events
8484
*/
8585
enum class WorkspaceEventType : char {
86-
FOCUS = 'f', /**< Focused */
87-
INIT = 'i', /**< Initialized */
88-
EMPTY = 'e', /**< Became empty */
89-
URGENT = 'u', /**< Became urgent */
86+
FOCUS = 'f', ///< Focused
87+
INIT = 'i', ///< Initialized
88+
EMPTY = 'e', ///< Became empty
89+
URGENT = 'u', ///< Became urgent
9090
};
9191

9292
/**
9393
* Types of window events
9494
*/
9595
enum class WindowEventType : char {
96-
NEW = 'n', /**< Window created */
97-
CLOSE = 'c', /**< Window closed */
98-
FOCUS = 'f', /**< Window got focus */
99-
TITLE = 't', /**< Title of window has been changed */
100-
FULLSCREEN_MODE = 'F', /**< Window toggled to fullscreen mode */
101-
MOVE = 'M', /**< Window moved */
102-
FLOATING = '_', /**< Window toggled floating mode */
103-
URGENT = 'u', /**< Window became urgent */
96+
NEW = 'n', ///< Window created
97+
CLOSE = 'c', ///< Window closed
98+
FOCUS = 'f', ///< Window got focus
99+
TITLE = 't', ///< Title of window has been changed
100+
FULLSCREEN_MODE = 'F', ///< Window toggled to fullscreen mode
101+
MOVE = 'M', ///< Window moved
102+
FLOATING = '_', ///< Window toggled floating mode
103+
URGENT = 'u', ///< Window became urgent
104104
};
105105

106106

@@ -226,12 +226,12 @@ class I3Connection {
226226
*/
227227
void handle_event();
228228

229-
sigc::signal<void, WorkspaceEventType> signal_workspace_event; /**< Workspace event signal */
230-
sigc::signal<void> signal_output_event; /**< Output event signal */
231-
sigc::signal<void> signal_mode_event; /**< Output mode event signal */
232-
sigc::signal<void, WindowEventType> signal_window_event; /**< Window event signal */
233-
sigc::signal<void> signal_barconfig_update_event; /**< Barconfig update event signal */
234-
sigc::signal<void, EventType, const std::shared_ptr<const buf_t>&> signal_event; /**< i3 event signal @note Default handler routes event to signal according to type */
229+
sigc::signal<void, WorkspaceEventType> signal_workspace_event; ///< Workspace event signal
230+
sigc::signal<void> signal_output_event; ///< Output event signal
231+
sigc::signal<void> signal_mode_event; ///< Output mode event signal
232+
sigc::signal<void, WindowEventType> signal_window_event; ///< Window event signal
233+
sigc::signal<void> signal_barconfig_update_event; ///< Barconfig update event signal
234+
sigc::signal<void, EventType, const std::shared_ptr<const buf_t>&> signal_event; ///< i3 event signal @note Default handler routes event to signal according to type
235235
private:
236236
const int32_t m_main_socket;
237237
int32_t m_event_socket;

0 commit comments

Comments
 (0)