summaryrefslogtreecommitdiff
path: root/src/libs/sig/sig.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-02-03 19:05:06 -0800
committerVito Caputo <vcaputo@pengaru.com>2020-02-03 19:05:06 -0800
commit0db49adcac61dbb48c0fd9261da7cce2e605f916 (patch)
tree80242a98ee87f689a460c409066c40e0097d01ab /src/libs/sig/sig.h
parent7d8a48bfa1ece4af9ad8cb22a992f5c09c08d7cb (diff)
libs/sig: add sig_ref()
Added some rudimentary refcounting so sig_t's can be readily shared by multiple sig_t's.
Diffstat (limited to 'src/libs/sig/sig.h')
-rw-r--r--src/libs/sig/sig.h1
1 files changed, 1 insertions, 0 deletions
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);
© All Rights Reserved