libmp3splt
src/options.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 Munteanu Alexandru - 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_OPTIONS_H
00034 
00035 void splt_o_set_options_default_values(splt_state *state);
00036 
00037 void splt_o_set_option(splt_state *state, int option_name, const void *data);
00038 void splt_o_set_int_option(splt_state *state, int option_name, int value);
00039 void splt_o_set_long_option(splt_state *state, int option_name, long value);
00040 void splt_o_set_float_option(splt_state *state, int option_name, float value);
00041 
00042 int splt_o_get_int_option(splt_state *state, int option_name);
00043 long splt_o_get_long_option(splt_state *state, int option_name);
00044 float splt_o_get_float_option(splt_state *state, int option_name);
00045 
00046 void splt_o_set_ioptions_default_values(splt_state *state);
00047 void splt_o_set_default_iopts(splt_state *state);
00048 void splt_o_set_iopt(splt_state *state, int type, int value);
00049 int splt_o_get_iopt(splt_state *state, int type);
00050 void splt_o_iopts_free(splt_state *state);
00051 
00052 int splt_o_library_locked(splt_state *state);
00053 void splt_o_lock_library(splt_state *state);
00054 void splt_o_unlock_library(splt_state *state);
00055 
00056 int splt_o_messages_locked(splt_state *state);
00057 void splt_o_lock_messages(splt_state *state);
00058 void splt_o_unlock_messages(splt_state *state);
00059 
00060 #define SPLT_OPTIONS_H
00061 
00062 #endif
00063