mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-18 07:00:06 -05:00
make static inline -> SPA_API_IMPL
So that we can export the symbols as well.
This commit is contained in:
parent
84bd4b7ea9
commit
90b0e45037
91 changed files with 563 additions and 552 deletions
|
|
@ -12,6 +12,8 @@ extern "C" {
|
|||
#include <inttypes.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#include <spa/utils/defs.h>
|
||||
|
||||
struct spa_ratelimit {
|
||||
uint64_t interval;
|
||||
uint64_t begin;
|
||||
|
|
@ -20,7 +22,7 @@ struct spa_ratelimit {
|
|||
unsigned n_suppressed;
|
||||
};
|
||||
|
||||
static inline int spa_ratelimit_test(struct spa_ratelimit *r, uint64_t now)
|
||||
SPA_API_IMPL int spa_ratelimit_test(struct spa_ratelimit *r, uint64_t now)
|
||||
{
|
||||
unsigned suppressed = 0;
|
||||
if (r->begin + r->interval < now) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue