Skip to content

Commit

Permalink
v4p: dma support
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevaev committed Mar 9, 2024
1 parent e1ef861 commit 897ad49
Show file tree
Hide file tree
Showing 5 changed files with 338 additions and 295 deletions.
8 changes: 0 additions & 8 deletions janus/src/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,3 @@
JANUS_LOG(LOG_ERR, "[%s/%-9s] " x_msg ": %s\n", US_PLUGIN_NAME, x_prefix, ##__VA_ARGS__, m_perror_str); \
free(m_perror_str); \
}

#define US_ONCE(...) { \
const int m_reported = __LINE__; \
if (m_reported != once) { \
__VA_ARGS__; \
once = m_reported; \
} \
}
8 changes: 8 additions & 0 deletions src/libs/tools.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@
(m_a > m_b ? m_a : m_b); \
})

#define US_ONCE(...) { \
const int m_reported = __LINE__; \
if (m_reported != once) { \
__VA_ARGS__; \
once = m_reported; \
} \
}


INLINE char *us_strdup(const char *str) {
char *const new = strdup(str);
Expand Down
Loading

0 comments on commit 897ad49

Please sign in to comment.