libmp3splt
src/plugins.h
00001 /**********************************************************
00002  *
00003  * libmp3splt -- library based on mp3splt,
00004  *               for mp3/ogg splitting without decoding
00005  *
00006  * Copyright (c) 2002-2005 M. Trotta - <mtrotta@users.sourceforge.net>
00007  * Copyright (c) 2005-2011 Alexandru Munteanu - io_fx@yahoo.fr
00008  *
00009  * http://mp3splt.sourceforge.net
00010  *
00011  *********************************************************/
00012 
00013 /**********************************************************
00014  *
00015  * This program is free software; you can redistribute it and/or
00016  * modify it under the terms of the GNU General Public License
00017  * as published by the Free Software Foundation; either version 2
00018  * of the License, or (at your option) any later version.
00019  *
00020  * This program is distributed in the hope that it will be useful,
00021  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00022  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00023  * GNU General Public License for more details.
00024  *
00025  * You should have received a copy of the GNU General Public License
00026  * along with this program; if not, write to the Free Software
00027  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00028  * 02111-1307,
00029  * USA.
00030  *
00031  *********************************************************/
00032 
00033 #ifndef SPLT_PLUGINS_H
00034 
00035 float splt_p_get_version(splt_state *state, int *error);
00036 const char *splt_p_get_name(splt_state *state, int *error);
00037 const char *splt_p_get_extension(splt_state *state, int *error);
00038 const char *splt_p_get_upper_extension(splt_state *state, int *error);
00039 int splt_p_check_plugin_is_for_file(splt_state *state, int *error);
00040 void splt_p_search_syncerrors(splt_state *state, int *error);
00041 void splt_p_dewrap(splt_state *state, int listonly, const char *dir, int *error);
00042 void splt_p_set_total_time(splt_state *state, int *error);
00043 double splt_p_split(splt_state *state, const char *final_fname, double begin_point,
00044     double end_point, int *error, int save_end_point);
00045 int splt_p_simple_split(splt_state *state, const char *output_fname, off_t begin,
00046     off_t end);
00047 int splt_p_scan_silence(splt_state *state, int *error);
00048 void splt_p_set_original_tags(splt_state *state, int *error);
00049 
00050 int splt_p_find_get_plugins_data(splt_state *state);
00051 int splt_p_append_plugin_scan_dir(splt_state *state, const char *dir);
00052 
00053 void splt_p_init(splt_state *state, int *error);
00054 void splt_p_end(splt_state *state, int *error);
00055 
00056 int splt_p_set_default_values(splt_state *state);
00057 void splt_p_free_plugins(splt_state *state);
00058 
00059 void splt_p_set_current_plugin(splt_state *state, int current_plugin);
00060 int splt_p_get_current_plugin(splt_state *state);
00061 
00062 int splt_p_file_is_supported_by_plugins(splt_state *state, const char *fname);
00063 
00064 #define SPLT_PLUGINS_H
00065 
00066 #endif
00067