|
|
@ -11,19 +11,18 @@ |
|
|
|
|
|
|
|
#include "sl/strategies.h" |
|
|
|
|
|
|
|
#ifdef __cplusplus |
|
|
|
struct sl_buffer_strategy; |
|
|
|
struct sl_sink_strategy; |
|
|
|
struct sl_overflow_strategy; |
|
|
|
struct sl_output_strategy; |
|
|
|
|
|
|
|
#ifdef __cplusplus |
|
|
|
namespace sl { |
|
|
|
using buffer_strategy = sl_buffer_strategy; |
|
|
|
using sink_strategy = sl_sink_strategy; |
|
|
|
using overflow_strategy = sl_overflow_strategy; |
|
|
|
using output_strategy = sl_output_strategy; |
|
|
|
} |
|
|
|
|
|
|
|
#else |
|
|
|
typedef struct sl_buffer_strategy buffer_strategy; |
|
|
|
typedef struct sl_sink_strategy sink_strategy; |
|
|
|