Debian Codegraph @

src/rist_ref.h

raw symbols SCIP
1 /* librist. Copyright © 2020 SipRadius LLC. All right reserved.
2 * Author: Gijs Peskens <[email protected]>
3 * Author: Sergio Ammirata, Ph.D. <[email protected]>
4 *
5 * SPDX-License-Identifier: BSD-2-Clause
6 */
7
8 #include "common/attributes.h"
9 #include <stdint.h>
10 #include <stdatomic.h>
11 #include <stdbool.h>
12
13 struct rist_ref {
14 atomic_int refcnt;
15 const void *ptr;
16 };
17
18 RIST_PRIV bool rist_ref_iswritable(struct rist_ref *ref);
19 RIST_PRIV struct rist_ref *rist_ref_create(void *data);
20 RIST_PRIV void rist_ref_inc(struct rist_ref *ref);