24#ifndef __M_IO_BWSHAPING_H__
25#define __M_IO_BWSHAPING_H__
27#include <mstdlib/base/m_defs.h>
28#include <mstdlib/base/m_types.h>
29#include <mstdlib/io/m_io.h>
30#include <mstdlib/io/m_event.h>
M_bool M_io_bwshaping_set_throttle_mode(M_io_t *io, size_t layer_id, M_io_bwshaping_direction_t direction, M_io_bwshaping_mode_t mode)
enum M_io_bwshaping_direction M_io_bwshaping_direction_t
Definition: m_io_bwshaping.h:64
M_io_error_t M_io_add_bwshaping(M_io_t *io, size_t *layer_id)
M_bool M_io_bwshaping_set_throttle(M_io_t *io, size_t layer_id, M_io_bwshaping_direction_t direction, M_uint64 Bps)
M_uint64 M_io_bwshaping_get_totalms(M_io_t *io, size_t layer_id)
M_io_bwshaping_direction
Definition: m_io_bwshaping.h:60
M_bool M_io_bwshaping_set_latency(M_io_t *io, size_t layer_id, M_io_bwshaping_direction_t direction, M_uint64 latency_ms)
M_bool M_io_bwshaping_set_throttle_period(M_io_t *io, size_t layer_id, M_io_bwshaping_direction_t direction, M_uint64 period_s, M_uint64 sample_frequency_ms)
enum M_io_bwshaping_mode M_io_bwshaping_mode_t
Definition: m_io_bwshaping.h:56
M_uint64 M_io_bwshaping_get_Bps(M_io_t *io, size_t layer_id, M_io_bwshaping_direction_t direction)
M_io_bwshaping_mode
Definition: m_io_bwshaping.h:52
M_uint64 M_io_bwshaping_get_totalbytes(M_io_t *io, size_t layer_id, M_io_bwshaping_direction_t direction)
@ M_IO_BWSHAPING_DIRECTION_OUT
Definition: m_io_bwshaping.h:62
@ M_IO_BWSHAPING_DIRECTION_IN
Definition: m_io_bwshaping.h:61
@ M_IO_BWSHAPING_MODE_TRICKLE
Definition: m_io_bwshaping.h:54
@ M_IO_BWSHAPING_MODE_BURST
Definition: m_io_bwshaping.h:53
enum M_io_error M_io_error_t
Definition: m_io.h:93
struct M_io M_io_t
Definition: m_io.h:59