From 0db49adcac61dbb48c0fd9261da7cce2e605f916 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Mon, 3 Feb 2020 19:05:06 -0800 Subject: libs/sig: add sig_ref() Added some rudimentary refcounting so sig_t's can be readily shared by multiple sig_t's. --- src/libs/sig/sig.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libs/sig/sig.h') diff --git a/src/libs/sig/sig.h b/src/libs/sig/sig.h index 635bfcc..3d61cfc 100644 --- a/src/libs/sig/sig.h +++ b/src/libs/sig/sig.h @@ -14,6 +14,7 @@ typedef struct sig_ops_t { } sig_ops_t; sig_t * sig_new(const sig_ops_t *ops, ...); +sig_t * sig_ref(sig_t *sig); sig_t * sig_free(sig_t *sig); float sig_output(sig_t *sig, unsigned ticks_ms); -- cgit v1.2.3