X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fvalerie%2Fvalerie.h;h=c43e74015ad7b219873f53466d88f60042d7f2dd;hb=2dc70e900cade445fe5d8fdd3e9fe483f1257489;hp=2ff0020b9ab3bf98927748b66f341be445fea164;hpb=5c299d1ae6f3535df35b3f30bae0476a1ca50aa6;p=mlt diff --git a/src/valerie/valerie.h b/src/valerie/valerie.h index 2ff0020b..c43e7401 100644 --- a/src/valerie/valerie.h +++ b/src/valerie/valerie.h @@ -3,19 +3,19 @@ * Copyright (C) 2002-2003 Ushodaya Enterprises Limited * Author: Charles Yates * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. * - * This program is distributed in the hope that it will be useful, + * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef _VALERIE_H_ @@ -24,6 +24,9 @@ /* System header files */ #include +/* MLT Header files. */ +#include + /* Application header files */ #include "valerie_parser.h" #include "valerie_status.h" @@ -94,7 +97,11 @@ extern valerie_error_code valerie_unit_load_clipped( valerie, int, char *, int32 extern valerie_error_code valerie_unit_load_back( valerie, int, char * ); extern valerie_error_code valerie_unit_load_back_clipped( valerie, int, char *, int32_t, int32_t ); extern valerie_error_code valerie_unit_append( valerie, int, char *, int32_t, int32_t ); +extern valerie_error_code valerie_unit_receive( valerie, int, char *, char * ); +extern valerie_error_code valerie_unit_push( valerie, int, char *, mlt_service ); extern valerie_error_code valerie_unit_clean( valerie, int ); +extern valerie_error_code valerie_unit_wipe( valerie, int ); +extern valerie_error_code valerie_unit_clear( valerie, int ); extern valerie_error_code valerie_unit_clip_move( valerie, int, valerie_clip_offset, int, valerie_clip_offset, int ); extern valerie_error_code valerie_unit_clip_remove( valerie, int, valerie_clip_offset, int ); extern valerie_error_code valerie_unit_remove_current_clip( valerie, int ); @@ -115,7 +122,7 @@ extern valerie_error_code valerie_unit_set_out( valerie, int, int32_t ); extern valerie_error_code valerie_unit_clear_in( valerie, int ); extern valerie_error_code valerie_unit_clear_out( valerie, int ); extern valerie_error_code valerie_unit_clear_in_out( valerie, int ); -extern valerie_error_code valerie_unit_set( valerie, int, char *, char * ); +extern valerie_error_code valerie_unit_set( valerie, int, const char *, const char * ); extern valerie_error_code valerie_unit_get( valerie, int, char * ); extern valerie_error_code valerie_unit_status( valerie, int, valerie_status ); extern valerie_error_code valerie_unit_transfer( valerie, int, int ); @@ -146,7 +153,7 @@ typedef struct *valerie_dir_entry, valerie_dir_entry_t; /* Directory reading. */ -extern valerie_dir valerie_dir_init( valerie, char * ); +extern valerie_dir valerie_dir_init( valerie, const char * ); extern valerie_error_code valerie_dir_get_error_code( valerie_dir ); extern valerie_error_code valerie_dir_get( valerie_dir, int, valerie_dir_entry ); extern int valerie_dir_count( valerie_dir ); @@ -241,10 +248,11 @@ extern void valerie_units_close( valerie_units ); /* Miscellaenous functions */ extern valerie_response valerie_get_last_response( valerie ); -extern char *valerie_error_description( valerie_error_code ); +extern const char *valerie_error_description( valerie_error_code ); /* Courtesy functions. */ -extern valerie_error_code valerie_execute( valerie, size_t, char *, ... ); +extern valerie_error_code valerie_execute( valerie, size_t, const char *, ... ); +extern valerie_error_code valerie_push( valerie, mlt_service, size_t, char *, ... ); /* Close function. */ extern void valerie_close( valerie );