Debian Codegraph @

crt/aws-c-io/tests/future_test.h

raw symbols SCIP
1
2 #ifndef AWS_FUTURE_TEST_H
3 #define AWS_FUTURE_TEST_H
4 /**
5 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
6 * SPDX-License-Identifier: Apache-2.0.
7 */
8
9 #include <aws/io/future.h>
10
11 struct aws_destroyme *aws_destroyme_new(struct aws_allocator *alloc, bool *set_true_on_death);
12 void aws_destroyme_destroy(struct aws_destroyme *destroyme);
13
14 /* We get unused-function warnings if this macro is used in a .c file, so put it in a header */
15 AWS_FUTURE_T_POINTER_WITH_DESTROY_DECLARATION(aws_future_destroyme, struct aws_destroyme, /*private API*/);
16
17 struct aws_refcountme *aws_refcountme_new(struct aws_allocator *alloc, bool *set_true_on_death);
18 struct aws_refcountme *aws_refcountme_acquire(struct aws_refcountme *refcountme);
19 struct aws_refcountme *aws_refcountme_release(struct aws_refcountme *refcountme);
20 AWS_FUTURE_T_POINTER_WITH_RELEASE_DECLARATION(aws_future_refcountme, struct aws_refcountme, /*private API*/);
21
22 #endif /* AWS_FUTURE_TEST_H */