wayclip

Wayland clipboard utility
git clone git://git.nihaljere.xyz/wayclip
Log | Files | Refs | README | LICENSE

commit 63d79321004180d0cd9eaaf62de0c306f7754bb1
parent b53f9880c83449f796de566b8036dc82f707a3f8
Author: Nihal Jere <nihal@nihaljere.xyz>
Date:   Tue,  9 Aug 2022 13:29:16 -0500

common: expose only what is necessary

Diffstat:
Mcommon.c | 4++--
Mcommon.h | 2--
2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/common.c b/common.c @@ -10,7 +10,7 @@ #include "common.h" const char *argv0; -bool seat_found = false; +static bool seat_found = false; struct wl_seat *seat; struct zwlr_data_control_manager_v1 *data_control_manager; @@ -33,7 +33,7 @@ seat_name(void *data, struct wl_seat *_seat, const char *name) } else wl_seat_destroy(_seat); } -const struct wl_seat_listener seat_listener = { +static const struct wl_seat_listener seat_listener = { .capabilities = seat_capabilities, .name = seat_name, }; diff --git a/common.h b/common.h @@ -1,7 +1,5 @@ -extern bool seat_found; extern struct wl_seat *seat; extern struct zwlr_data_control_manager_v1 *data_control_manager; -extern const struct wl_seat_listener seat_listener; extern const struct wl_registry_listener registry_listener; extern const char *argv0;