pidref: split out pidref_copy() from pidref_dup()

This commit is contained in:
Yu Watanabe
2024-01-23 22:21:44 +09:00
parent d203659a13
commit 232e66217d
3 changed files with 42 additions and 7 deletions
+1
View File
@@ -49,6 +49,7 @@ void pidref_done(PidRef *pidref);
PidRef *pidref_free(PidRef *pidref);
DEFINE_TRIVIAL_CLEANUP_FUNC(PidRef*, pidref_free);
int pidref_copy(const PidRef *pidref, PidRef *dest);
int pidref_dup(const PidRef *pidref, PidRef **ret);
int pidref_new_from_pid(pid_t pid, PidRef **ret);