X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_extensions.h;h=1b3b90a8b30afe0d11fb3b2c5e27f97619b13e81;hb=91ef1479706057ee3db0eb71a348c2dcc041f351;hp=e20108352434257289b60c152c6686b16e077324;hpb=6f258887aa634d8cceaf9797779521dfd8340be2;p=vlc diff --git a/include/vlc_extensions.h b/include/vlc_extensions.h index e201083524..1b3b90a8b3 100644 --- a/include/vlc_extensions.h +++ b/include/vlc_extensions.h @@ -1,24 +1,24 @@ /***************************************************************************** - * vlc_extension.h: Extensions (meta data, web information, ...) + * vlc_extensions.h: Extensions (meta data, web information, ...) ***************************************************************************** * Copyright (C) 2009-2010 VideoLAN and authors * $Id$ * * Authors: Jean-Philippe André < jpeg # videolan.org > * - * 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 + * This program 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, * 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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ #ifndef VLC_EXTENSIONS_H @@ -76,8 +76,9 @@ enum EXTENSION_TRIGGER_ONLY, /**< arg1: extension_t*, arg2: bool* */ EXTENSION_TRIGGER, /**< arg1: extension_t* */ EXTENSION_TRIGGER_MENU, /**< arg1: extension_t*, int (uint16_t) */ - EXTENSION_SET_INPUT, /**< arg1: extension_t*, arg2 (input_thread_t) */ + EXTENSION_SET_INPUT, /**< arg1: extension_t*, arg2 (input_thread_t*) */ EXTENSION_PLAYING_CHANGED, /**< arg1: extension_t*, arg2 int( playing status ) */ + EXTENSION_META_CHANGED, /**< arg1: extension_t*, arg2 (input_item_t*) */ }; /** @@ -163,6 +164,12 @@ static inline int extension_PlayingChanged( extensions_manager_t *p_mgr, return extension_Control( p_mgr, EXTENSION_PLAYING_CHANGED, p_ext, state ); } +static inline int extension_MetaChanged( extensions_manager_t *p_mgr, + extension_t *p_ext ) +{ + return extension_Control( p_mgr, EXTENSION_META_CHANGED, p_ext ); +} + /** Can this extension only be triggered but not activated? Not compatible with HasMenu */ #define extension_TriggerOnly( mgr, ext ) \ @@ -248,7 +255,7 @@ static inline int extension_DialogCommand( extension_dialog_t* p_dialog, /// Widget types typedef enum { - EXTENSION_WIDGET_LABEL, ///< Non editable text label + EXTENSION_WIDGET_LABEL, ///< Text label EXTENSION_WIDGET_BUTTON, ///< Clickable button EXTENSION_WIDGET_IMAGE, ///< Image label (psz_text is local URI) EXTENSION_WIDGET_HTML, ///< HTML or rich text area (non editable)