libmp3splt
src/mp3splt.c File Reference
#include <sys/stat.h>
#include <string.h>
#include <ltdl.h>
#include "splt.h"
Include dependency graph for mp3splt.c:

Go to the source code of this file.

Functions

int mp3splt_append_plugins_scan_dir (splt_state *state, char *dir)
int mp3splt_append_splitpoint (splt_state *state, long split_value, const char *name, int type)
int mp3splt_append_tags (splt_state *state, const char *title, const char *artist, const char *album, const char *performer, const char *year, const char *comment, int track, const char *genre)
int mp3splt_count_silence_points (splt_state *state, int *error)
void mp3splt_erase_all_splitpoints (splt_state *state, int *error)
void mp3splt_erase_all_tags (splt_state *state, int *error)
void mp3splt_export_to_cue (splt_state *state, const char *out_file, short stop_at_total_time, int *error)
char ** mp3splt_find_filenames (splt_state *state, const char *filename, int *num_of_files_found, int *error)
int mp3splt_find_plugins (splt_state *state)
void mp3splt_free_one_tag (splt_tags *tags)
void mp3splt_free_state (splt_state *state, int *error)
char * mp3splt_get_filename_to_split (splt_state *state)
float mp3splt_get_float_option (splt_state *state, int option_name, int *error)
const splt_freedb_resultsmp3splt_get_freedb_search (splt_state *state, const char *search_string, int *error, int search_type, const char search_server[256], int port)
int mp3splt_get_int_option (splt_state *state, int option_name, int *error)
long mp3splt_get_long_option (splt_state *state, int option_name, int *error)
const splt_pointmp3splt_get_splitpoints (splt_state *state, int *splitpoints_number, int *error)
char * mp3splt_get_strerror (splt_state *state, int error_code)
const splt_syncerrorsmp3splt_get_syncerrors (splt_state *state, int *error)
const splt_tagsmp3splt_get_tags (splt_state *state, int *tags_number, int *error)
void mp3splt_get_version (char *version)
const splt_wrapmp3splt_get_wrap_files (splt_state *state, int *error)
splt_statemp3splt_new_state (int *error)
splt_tagsmp3splt_parse_filename_regex (splt_state *state, int *error)
void mp3splt_put_audacity_labels_splitpoints_from_file (splt_state *state, const char *file, int *error)
void mp3splt_put_cddb_splitpoints_from_file (splt_state *state, const char *file, int *error)
void mp3splt_put_cue_splitpoints_from_file (splt_state *state, const char *file, int *error)
int mp3splt_put_tags_from_string (splt_state *state, const char *tags, int *error)
int mp3splt_set_default_comment_tag (splt_state *state, const char *default_comment)
int mp3splt_set_default_genre_tag (splt_state *state, const char *default_genre_tag)
int mp3splt_set_filename_to_split (splt_state *state, const char *filename)
int mp3splt_set_float_option (splt_state *state, int option_name, float value)
int mp3splt_set_input_filename_regex (splt_state *state, const char *regex)
int mp3splt_set_int_option (splt_state *state, int option_name, int value)
int mp3splt_set_long_option (splt_state *state, int option_name, long value)
int mp3splt_set_m3u_filename (splt_state *state, const char *filename)
int mp3splt_set_message_function (splt_state *state, void(*message_cb)(const char *, splt_message_type))
void mp3splt_set_oformat (splt_state *state, const char *format_string, int *error)
int mp3splt_set_path_of_split (splt_state *state, const char *path)
int mp3splt_set_progress_function (splt_state *state, void(*progress_cb)(splt_progress *p_bar))
int mp3splt_set_silence_level_function (splt_state *state, void(*get_silence_cb)(long time, float level, void *user_data), void *data)
int mp3splt_set_silence_log_filename (splt_state *state, const char *filename)
int mp3splt_set_silence_points (splt_state *state, int *error)
int mp3splt_set_split_filename_function (splt_state *state, void(*file_cb)(const char *, int b))
int mp3splt_split (splt_state *state)
void mp3splt_stop_split (splt_state *state, int *error)
int mp3splt_u_check_if_directory (const char *fname)
void mp3splt_write_freedb_file_result (splt_state *state, int disc_id, const char *cddb_file, int *error, int cddb_get_type, const char cddb_get_server[256], int port)

Variables

int global_debug = SPLT_FALSE

Detailed Description

All user-accessible functions.

The functions that are actually meant to be called by the user. If this was C++ it would be the "public" section of our object.

Actually this whole library seems to be written with object orientied programming in mind: All functions expect the address of the object as the first parameter etc. Actually changing the library to be c++ should therefore not be too hard a task...

Definition in file mp3splt.c.


Function Documentation

int mp3splt_u_check_if_directory ( const char *  fname)

Checks if a name points to a directory.

Definition at line 1665 of file mp3splt.c.