shared: extract hash table implementation from xwayland

The hash table implementation is useful for other modules as well. Move it from
xwayland to the shared code.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
This commit is contained in:
Michael Tretter 2022-04-13 17:27:55 +02:00 committed by Daniel Stone
parent f05029127c
commit 48b39d31ef
6 changed files with 3 additions and 3 deletions

View File

@ -5,6 +5,7 @@ srcs_libshared = [
'file-util.c',
'os-compatibility.c',
'process-util.c',
'hash.c',
]
deps_libshared = [dep_wayland_client, dep_wayland_server, dep_pixman]

View File

@ -40,7 +40,7 @@
#include <libweston/libweston.h>
#include "xwayland.h"
#include "hash.h"
#include "shared/hash.h"
struct dnd_data_source {
struct weston_data_source base;

View File

@ -14,7 +14,6 @@ srcs_xwayland = [
'window-manager.c',
'selection.c',
'dnd.c',
'hash.c',
]
dep_names_xwayland = [

View File

@ -46,7 +46,7 @@
#include "xwayland-internal-interface.h"
#include "shared/cairo-util.h"
#include "hash.h"
#include "shared/hash.h"
#include "shared/helpers.h"
#include "shared/xcb-xwayland.h"