mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-29 15:43:56 +00:00
Add alloca_poll_events() macro
This commit is contained in:
parent
fa21bec880
commit
e82d22d765
@ -67,6 +67,7 @@ strbuf strbuf_path_join(strbuf sb, ...);
|
||||
* @author Andrew Bettison <andrew@servalproject.com>
|
||||
*/
|
||||
strbuf strbuf_append_poll_events(strbuf sb, short events);
|
||||
#define alloca_poll_events(ev) strbuf_str(strbuf_append_poll_events(strbuf_alloca(200), (ev)))
|
||||
|
||||
/* Append a nul-terminated string as a single-quoted shell word which, if
|
||||
* expanded in a shell command line, would evaluate to the original string.
|
||||
|
Loading…
x
Reference in New Issue
Block a user