Enhancement: Improve error handling in stellar's packet API by checking return values of metadata functions and adding descriptive error logging

This commit is contained in:
luwenpeng
2024-04-22 14:23:45 +08:00
parent bb7d7410c9
commit dd32f0f231
3 changed files with 61 additions and 14 deletions

View File

@@ -26,6 +26,11 @@
#ifndef TIMEOUT_H
#define TIMEOUT_H
#ifdef __cplusplus
extern "C"
{
#endif
#include <stdbool.h> /* bool */
#include <stdio.h> /* FILE */
@@ -259,4 +264,8 @@ TIMEOUT_PUBLIC struct timeout *timeouts_next(struct timeouts *, struct timeouts_
#define timeouts_addf(T, to, timeout) \
timeouts_add((T), (to), timeouts_f2i((T), (timeout)))
#ifdef __cplusplus
}
#endif
#endif /* TIMEOUT_H */