fx: re-arrange type system to allow for reflection
This commit is contained in:
@@ -38,7 +38,7 @@ typedef struct fx_compressor_data {
|
||||
fx_ringbuffer *c_in, *c_out;
|
||||
} fx_compressor_data;
|
||||
|
||||
FX_API fx_type fx_compressor_get_type(void);
|
||||
FX_API fx_type_id fx_compressor_get_type(void);
|
||||
|
||||
#if 0
|
||||
FX_API fx_status fx_compressor_create(
|
||||
@@ -48,7 +48,7 @@ FX_API fx_status fx_compressor_create(
|
||||
#endif
|
||||
|
||||
FX_API fx_status fx_compressor_get_buffer_size(
|
||||
fx_type type,
|
||||
fx_type_id type,
|
||||
fx_compressor_mode mode,
|
||||
size_t *inbuf_size,
|
||||
size_t *outbuf_size);
|
||||
|
||||
@@ -16,11 +16,11 @@ FX_DECLARE_TYPE(fx_cstream);
|
||||
FX_TYPE_CLASS_DECLARATION_BEGIN(fx_cstream)
|
||||
FX_TYPE_CLASS_DECLARATION_END(fx_cstream)
|
||||
|
||||
FX_API fx_type fx_cstream_get_type(void);
|
||||
FX_API fx_type_id fx_cstream_get_type(void);
|
||||
|
||||
FX_API fx_status fx_cstream_open(
|
||||
fx_stream *endpoint,
|
||||
fx_type compressor_type,
|
||||
fx_type_id compressor_type,
|
||||
enum fx_compressor_mode mode,
|
||||
fx_cstream **out);
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ FX_DECLARE_TYPE(fx_zstd_compressor);
|
||||
FX_TYPE_CLASS_DECLARATION_BEGIN(fx_zstd_compressor)
|
||||
FX_TYPE_CLASS_DECLARATION_END(fx_compressor)
|
||||
|
||||
FX_API fx_type fx_zstd_compressor_get_type(void);
|
||||
FX_API fx_type_id fx_zstd_compressor_get_type(void);
|
||||
|
||||
FX_API fx_status fx_zstd_compressor_get_buffer_size(
|
||||
fx_compressor_mode mode,
|
||||
|
||||
Reference in New Issue
Block a user