docs: replace the less commonly used "::" with "."

This commit is contained in:
Kirill Primak 2023-10-02 22:06:44 +03:00
parent 0fdbdc36c0
commit a09d649439
19 changed files with 42 additions and 42 deletions

View File

@ -10,7 +10,7 @@
struct tablet_tool {
struct wlr_tablet_tool wlr_tool;
struct libinput_tablet_tool *handle;
struct wl_list link; // wlr_libinput_input_device::tablet_tools
struct wl_list link; // wlr_libinput_input_device.tablet_tools
};
const struct wlr_tablet_impl libinput_tablet_impl = {

View File

@ -39,7 +39,7 @@ struct tablet_tool {
};
struct tablet_pad_ring {
struct wl_list link; // tablet_pad_group::rings
struct wl_list link; // tablet_pad_group.rings
/* static */
struct zwp_tablet_pad_ring_v2 *ring;
struct tablet_pad_group *group;
@ -52,7 +52,7 @@ struct tablet_pad_ring {
};
struct tablet_pad_strip {
struct wl_list link; // tablet_pad_group::strips
struct wl_list link; // tablet_pad_group.strips
struct zwp_tablet_pad_strip_v2 *strip;
struct tablet_pad_group *group;
size_t index;
@ -69,8 +69,8 @@ struct tablet_pad_group {
struct wlr_tablet_pad_group group;
struct wl_list rings; // tablet_pad_ring::link
struct wl_list strips; // tablet_pad_strips::link
struct wl_list rings; // tablet_pad_ring.link
struct wl_list strips; // tablet_pad_strips.link
};
static void handle_tablet_pad_ring_source(void *data,
@ -257,7 +257,7 @@ static void handle_tablet_pad_group_mode_switch(void *data,
}
static void destroy_tablet_pad_group(struct tablet_pad_group *group) {
/* No need to remove the ::link on strips rings as long as we do *not*
/* No need to remove the link on strips rings as long as we do *not*
* wl_list_remove on the wl_groups ring/strip attributes here */
struct tablet_pad_ring *ring, *tmp_ring;
wl_list_for_each_safe(ring, tmp_ring, &group->rings, link) {

View File

@ -27,7 +27,7 @@ struct wlr_libinput_backend {
struct wl_listener session_destroy;
struct wl_listener session_signal;
struct wl_list devices; // wlr_libinput_device::link
struct wl_list devices; // wlr_libinput_device.link
};
struct wlr_libinput_input_device {

View File

@ -133,7 +133,7 @@ struct wlr_wl_seat {
struct wl_pointer *wl_pointer;
struct wlr_wl_pointer *active_pointer;
struct wl_list pointers; // wlr_wl_pointer::link
struct wl_list pointers; // wlr_wl_pointer.link
struct zwp_pointer_gesture_swipe_v1 *gesture_swipe;
struct zwp_pointer_gesture_pinch_v1 *gesture_pinch;

View File

@ -30,7 +30,7 @@ struct wlr_x11_backend;
struct wlr_x11_output {
struct wlr_output wlr_output;
struct wlr_x11_backend *x11;
struct wl_list link; // wlr_x11_backend::outputs
struct wl_list link; // wlr_x11_backend.outputs
xcb_window_t win;
xcb_present_event_t present_event_id;
@ -38,9 +38,9 @@ struct wlr_x11_output {
struct wlr_pointer pointer;
struct wlr_touch touch;
struct wl_list touchpoints; // wlr_x11_touchpoint::link
struct wl_list touchpoints; // wlr_x11_touchpoint.link
struct wl_list buffers; // wlr_x11_buffer::link
struct wl_list buffers; // wlr_x11_buffer.link
pixman_region32_t exposed;
@ -55,7 +55,7 @@ struct wlr_x11_output {
struct wlr_x11_touchpoint {
uint32_t x11_id;
int wayland_id;
struct wl_list link; // wlr_x11_output::touch_points
struct wl_list link; // wlr_x11_output.touch_points
};
struct wlr_x11_backend {
@ -76,7 +76,7 @@ struct wlr_x11_backend {
uint32_t dri3_major_version, dri3_minor_version;
size_t requested_outputs;
struct wl_list outputs; // wlr_x11_output::link
struct wl_list outputs; // wlr_x11_output.link
struct wlr_keyboard keyboard;
@ -113,7 +113,7 @@ struct wlr_x11_buffer {
struct wlr_x11_backend *x11;
struct wlr_buffer *buffer;
xcb_pixmap_t pixmap;
struct wl_list link; // wlr_x11_output::buffers
struct wl_list link; // wlr_x11_output.buffers
struct wl_listener buffer_destroy;
size_t n_busy;
};

View File

@ -7,7 +7,7 @@
struct wlr_drm_dumb_buffer {
struct wlr_buffer base;
struct wl_list link; // wlr_drm_dumb_allocator::buffers
struct wl_list link; // wlr_drm_dumb_allocator.buffers
int drm_fd; // -1 if the allocator has been destroyed
struct wlr_dmabuf_attributes dmabuf;
@ -23,7 +23,7 @@ struct wlr_drm_dumb_buffer {
struct wlr_drm_dumb_allocator {
struct wlr_allocator base;
struct wl_list buffers; // wlr_drm_dumb_buffer::link
struct wl_list buffers; // wlr_drm_dumb_buffer.link
int drm_fd;
};

View File

@ -6,15 +6,15 @@
#include <wlr/types/wlr_tablet_v2.h>
struct wlr_tablet_seat_v2 {
struct wl_list link; // wlr_tablet_manager_v2::seats
struct wl_list link; // wlr_tablet_manager_v2.seats
struct wlr_seat *wlr_seat;
struct wlr_tablet_manager_v2 *manager;
struct wl_list tablets; // wlr_tablet_v2_tablet::link
struct wl_list tablets; // wlr_tablet_v2_tablet.link
struct wl_list tools;
struct wl_list pads;
struct wl_list clients; // wlr_tablet_seat_v2_client::link
struct wl_list clients; // wlr_tablet_seat_v2_client.link
struct wl_listener seat_destroy;
};
@ -30,14 +30,14 @@ struct wlr_tablet_seat_client_v2 {
struct wl_listener seat_client_destroy;
struct wl_list tools; //wlr_tablet_tool_client_v2::link
struct wl_list tablets; //wlr_tablet_client_v2::link
struct wl_list pads; //wlr_tablet_pad_client_v2::link
struct wl_list tools; // wlr_tablet_tool_client_v2.link
struct wl_list tablets; // wlr_tablet_client_v2.link
struct wl_list pads; // wlr_tablet_pad_client_v2.link
};
struct wlr_tablet_client_v2 {
struct wl_list seat_link; // wlr_tablet_seat_client_v2::tablet
struct wl_list tablet_link; // wlr_tablet_v2_tablet::clients
struct wl_list seat_link; // wlr_tablet_seat_client_v2.tablet
struct wl_list tablet_link; // wlr_tablet_v2_tablet.clients
struct wl_client *client;
struct wl_resource *resource;
};

View File

@ -102,7 +102,7 @@ struct wlr_surface_output {
struct wlr_surface *surface;
struct wlr_output *output;
struct wl_list link; // wlr_surface::current_outputs
struct wl_list link; // wlr_surface.current_outputs
struct wl_listener bind;
struct wl_listener destroy;
};

View File

@ -87,7 +87,7 @@ struct wlr_drm_lease_v1 {
struct wlr_drm_lease_connector_v1 **connectors;
size_t n_connectors;
struct wl_list link; // wlr_drm_lease_device_v1::leases
struct wl_list link; // wlr_drm_lease_device_v1.leases
struct wl_listener destroy;

View File

@ -138,7 +138,7 @@ struct wlr_output {
int32_t phys_width, phys_height; // mm
// Note: some backends may have zero modes
struct wl_list modes; // wlr_output_mode::link
struct wl_list modes; // wlr_output_mode.link
struct wlr_output_mode *current_mode;
int32_t width, height;
int32_t refresh; // mHz, may be zero
@ -191,7 +191,7 @@ struct wlr_output {
int attach_render_locks; // number of locks forcing rendering
struct wl_list cursors; // wlr_output_cursor::link
struct wl_list cursors; // wlr_output_cursor.link
struct wlr_output_cursor *hardware_cursor;
struct wlr_swapchain *cursor_swapchain;
struct wlr_buffer *cursor_front_buffer;

View File

@ -134,7 +134,7 @@ struct wlr_touch_grab_interface {
void (*frame)(struct wlr_seat_touch_grab *grab);
// Cancel grab
void (*cancel)(struct wlr_seat_touch_grab *grab);
// Send wl_touch::cancel
// Send wl_touch.cancel
void (*wl_cancel)(struct wlr_seat_touch_grab *grab,
struct wlr_surface *surface);
};

View File

@ -30,7 +30,7 @@ struct wlr_xcursor_manager_theme {
struct wlr_xcursor_manager {
char *name;
uint32_t size;
struct wl_list scaled_themes; // wlr_xcursor_manager_theme::link
struct wl_list scaled_themes; // wlr_xcursor_manager_theme.link
};
/**

View File

@ -108,9 +108,9 @@ struct wlr_xwayland_surface {
pid_t pid;
bool has_utf8_title;
struct wl_list children; // wlr_xwayland_surface::parent_link
struct wl_list children; // wlr_xwayland_surface.parent_link
struct wlr_xwayland_surface *parent;
struct wl_list parent_link; // wlr_xwayland_surface::children
struct wl_list parent_link; // wlr_xwayland_surface.children
xcb_atom_t *window_type;
size_t window_type_len;

View File

@ -113,10 +113,10 @@ struct wlr_xwm {
struct wlr_xwayland_surface *focus_surface;
// Surfaces in creation order
struct wl_list surfaces; // wlr_xwayland_surface::link
struct wl_list surfaces; // wlr_xwayland_surface.link
// Surfaces in bottom-to-top stacking order, for _NET_CLIENT_LIST_STACKING
struct wl_list surfaces_in_stack_order; // wlr_xwayland_surface::stack_link
struct wl_list unpaired_surfaces; // wlr_xwayland_surface::unpaired_link
struct wl_list surfaces_in_stack_order; // wlr_xwayland_surface.stack_link
struct wl_list unpaired_surfaces; // wlr_xwayland_surface.unpaired_link
struct wl_list pending_startup_ids; // pending_startup_id
struct wlr_drag *drag;

View File

@ -22,7 +22,7 @@ struct wlr_tablet_manager_client_v2 {
struct wl_resource *resource;
struct wlr_tablet_manager_v2 *manager;
struct wl_list tablet_seats; // wlr_tablet_seat_client_v2::link
struct wl_list tablet_seats; // wlr_tablet_seat_client_v2.link
};
static void tablet_seat_destroy(struct wlr_tablet_seat_v2 *seat) {

View File

@ -73,8 +73,8 @@ struct wlr_cursor_output_cursor {
struct wlr_cursor_state {
struct wlr_cursor cursor;
struct wl_list devices; // wlr_cursor_device::link
struct wl_list output_cursors; // wlr_cursor_output_cursor::link
struct wl_list devices; // wlr_cursor_device.link
struct wl_list output_cursors; // wlr_cursor_output_cursor.link
struct wlr_output_layout *layout;
struct wlr_output *mapped_output;
struct wlr_box mapped_box; // empty if unset

View File

@ -19,13 +19,13 @@ struct keyboard_group_device {
struct wl_listener keymap;
struct wl_listener repeat_info;
struct wl_listener destroy;
struct wl_list link; // wlr_keyboard_group::devices
struct wl_list link; // wlr_keyboard_group.devices
};
struct keyboard_group_key {
uint32_t keycode;
size_t count;
struct wl_list link; // wlr_keyboard_group::keys
struct wl_list link; // wlr_keyboard_group.keys
};
static void keyboard_set_leds(struct wlr_keyboard *kb, uint32_t leds) {

View File

@ -17,7 +17,7 @@ struct wlr_presentation_surface_state {
struct wlr_presentation_surface {
struct wlr_presentation_surface_state current, pending;
struct wlr_addon addon; // wlr_surface::addons
struct wlr_addon addon; // wlr_surface.addons
struct wl_listener surface_commit;
};

View File

@ -68,7 +68,7 @@ static void wlr_text_input_destroy(struct wlr_text_input_v3 *text_input) {
wl_signal_emit_mutable(&text_input->events.destroy, text_input);
text_input_clear_focused_surface(text_input);
wl_list_remove(&text_input->seat_destroy.link);
// remove from manager::text_inputs
// remove from manager.text_inputs
wl_list_remove(&text_input->link);
free(text_input->current.surrounding.text);
free(text_input->pending.surrounding.text);