return TCResult from tc_uuid_from_str

This commit is contained in:
Dustin J. Mitchell 2022-02-09 23:43:23 +00:00
parent 28a4599a6a
commit c9c72b4fd3
4 changed files with 15 additions and 14 deletions

View file

@ -456,9 +456,10 @@ void tc_uuid_to_buf(struct TCUuid tcuuid, char *buf);
struct TCString *tc_uuid_to_str(struct TCUuid tcuuid);
/**
* Parse the given string as a UUID. Returns false on failure.
* Parse the given string as a UUID. Returns TC_RESULT_ERROR on parse failure or if the given
* string is not valid.
*/
bool tc_uuid_from_str(struct TCString *s, struct TCUuid *uuid_out);
TCResult tc_uuid_from_str(struct TCString *s, struct TCUuid *uuid_out);
#ifdef __cplusplus
} // extern "C"