Skip to content

Commit

Permalink
don't inline dakara_check_free function
Browse files Browse the repository at this point in the history
more troublesome to use in karaberus than necessary
  • Loading branch information
odrling committed Apr 1, 2024
1 parent f0cd295 commit 0c51364
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 1 addition & 5 deletions dakara_check.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@ struct dakara_check_results {

struct dakara_check_results *dakara_check_results_new(void);

static inline void dakara_check_results_free(struct dakara_check_results *res) {
if (res->streams != NULL)
free(res->streams);
free(res);
}
void dakara_check_results_free(struct dakara_check_results *res);

const char *dakara_check_version(void);

Expand Down
6 changes: 6 additions & 0 deletions libdakara_check.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,3 +210,9 @@ static struct dakara_check_report dakara_results_error_reports[] = {
struct dakara_check_report dakara_check_get_report(enum dakara_stream_result res) {
return dakara_results_error_reports[res];
}

void dakara_check_results_free(struct dakara_check_results *res) {
if (res->streams != NULL)
free(res->streams);
free(res);
}

0 comments on commit 0c51364

Please sign in to comment.