C API

struct bsdconv_instance * bsdconv_create(const char *conversion)

Create converter instance with given conversion

int bsdconv_get_phase_index(struct bsdconv_instance *converter, int phase)
int bsdconv_get_codec_index(struct bsdconv_instance *converter, int phase, int codec)
char * bsdconv_insert_phase(const char *conversion, const char *conversion_phase, int phase_type, int phase)

Insert conversion phase into bsdconv conversion string

char * bsdconv_insert_codec(const char *conversion, const char *conversion_codec, int phase, int codec)

Insert conversion codec into bsdconv conversion string

char * bsdconv_replace_phase(const char *conversion, const char *conversion_phase, int phase_type, int phase)

Replace conversion phase in the bsdconv conversion string

char * bsdconv_replace_codec(const char *conversion, const char *conversion_codec, int phase, int codec)

Replace conversion codec in the bsdconv conversion string

void bsdconv_init(struct bsdconv_instance *converter)

Initialize/Reset bsdconv converter

void bsdconv_ctl(struct bsdconv_instance *converter, int ctl, void *pointer, int value)

Manipulate the underlying codec parameters

void bsdconv_destroy(struct bsdconv_instance *converter)

Destroy converter instance

void bsdconv(struct bsdconv_instance *converter)

Perform conversion

char * bsdconv_error(void)

Get error message

bsdconv_counter_t * bsdconv_counter(struct bsdconv_instance *converter, const char *name)

Get pointer to counter

void bsdconv_counter_reset(struct bsdconv_instance *converter, const char *name)

Reset counter, if name is NULL, all counters will be reset

void bsdconv_hash_set(struct bsdconv_instance *converter, const char *key, void *pointer)
void * bsdconv_hash_get(struct bsdconv_instance *converter, const char *key)
int bsdconv_hash_has(struct bsdconv_instance *converter, const char *key)
void bsdconv_hash_del(struct bsdconv_instance *converter, const char *key)
char * bsdconv_solve_alias(int phase_type, char *name)
int bsdconv_codec_check(int phase_type, const char *codec)
char ** bsdconv_codecs_list(int phase_type)
char *bsdconv_pack(struct bsdconv_instance *converter)
void *bsdconv_malloc(size_t size)
void bsdconv_free(void *ptr)
int bsdconv_mkstemp(char *template)
int str2datum(const char *string, struct data_rt *)
struct data_rt * str2data(const char *string, int *, struct bsdconv_instance *converter)
char * getCodecDir()

Get codec search path

Previous topic

Welcome to bsdconv’s documentation!

Next topic

Go binding API

This Page