mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
common: Add znew/znew_n() macros
This commit is contained in:
parent
da57483961
commit
a54d378e6c
26 changed files with 47 additions and 47 deletions
|
|
@ -26,8 +26,7 @@ void
|
|||
node_descriptor_create(struct wlr_scene_node *scene_node,
|
||||
enum node_descriptor_type type, void *data)
|
||||
{
|
||||
struct node_descriptor *node_descriptor =
|
||||
xzalloc(sizeof(struct node_descriptor));
|
||||
struct node_descriptor *node_descriptor = znew(*node_descriptor);
|
||||
node_descriptor->type = type;
|
||||
node_descriptor->data = data;
|
||||
node_descriptor->destroy.notify = destroy_notify;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue