-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathhelpers.h
More file actions
27 lines (20 loc) · 747 Bytes
/
helpers.h
File metadata and controls
27 lines (20 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* Copyright (c) 2016-2018 Tudor Ioan Roman. All rights reserved. */
/* Licensed under the ISC License. See the LICENSE file in the project root for full license information. */
#ifndef WCHF_HELPERS_H
#define WCHF_HELPERS_H
#include <stdbool.h>
#include <stdarg.h>
#include <stdint.h>
int asprintf(char **, const char *, ...);
int vasprintf(char **, const char *, va_list);
struct list_item {
void *data;
struct list_item *prev;
struct list_item *next;
};
void list_move_to_head(struct list_item **, struct list_item *);
struct list_item* list_add_item(struct list_item **);
void list_delete_item(struct list_item **, struct list_item *);
void list_delete_all_items(struct list_item **, bool);
uint32_t get_color_pixel(uint32_t);
#endif