diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2017-01-17 14:11:31 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2017-01-17 14:27:06 +0100 |
commit | a1351738ba11c8e2d38f6df5276cc59f7acb2d2f (patch) | |
tree | fdcc605e39a4ddec3d42921241f6d03ec461cf59 /ui.h | |
parent | 80e70fdcf8861ab757b6bfc8f0fbaec31cde57bf (diff) |
list: Remove cds_list_* wrappers
Use the cds_list_* types and macros directly instead of redefining them.
This makes it clear that we're not using the Linux kernel implementation
of list_head but the one from urcu.
Also make sure _LGPL_SOURCE is defined everywhere the urcu
functionality is used, such that we get the statically linkable version
with reduced overhead.
Reference: https://lwn.net/Articles/573424/#qq2answer
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'ui.h')
-rw-r--r-- | ui.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,10 +1,10 @@ #ifndef UI_H #define UI_H +#define _LGPL_SOURCE #include <stdbool.h> #include <inttypes.h> - -#include "list.h" +#include <urcu/list.h> enum ui_event_id { UI_EVT_SCROLL_LEFT, @@ -23,7 +23,7 @@ struct ui_text { }; struct ui_col { - struct list_head entry; + struct cds_list_head entry; uint32_t id; char *name; uint32_t len; @@ -36,7 +36,7 @@ struct ui_table { int y; int x; int rows_y; - struct list_head cols; + struct cds_list_head cols; struct ui_text *row; int hdr_color; int col_pad; |