tree-wide: Introduce DECLARE_TRIVIAL_REF_UNREF_FUNC() and friends
This commit is contained in:
committed by
Yu Watanabe
parent
11adc8bad5
commit
daff8ea8bb
@@ -83,8 +83,7 @@ typedef struct Request {
|
||||
bool waiting_reply;
|
||||
} Request;
|
||||
|
||||
Request *request_ref(Request *req);
|
||||
Request *request_unref(Request *req);
|
||||
DECLARE_TRIVIAL_REF_UNREF_FUNC(Request, request);
|
||||
DEFINE_TRIVIAL_CLEANUP_FUNC(Request*, request_unref);
|
||||
|
||||
void request_detach(Request *req);
|
||||
|
||||
Reference in New Issue
Block a user