diff options
-rw-r--r-- | include/xine.h.tmpl.in | 14 | ||||
-rw-r--r-- | src/xine-engine/load_plugins.c | 23 |
2 files changed, 34 insertions, 3 deletions
diff --git a/include/xine.h.tmpl.in b/include/xine.h.tmpl.in index aa3701fbc..488e4e1e8 100644 --- a/include/xine.h.tmpl.in +++ b/include/xine.h.tmpl.in @@ -28,7 +28,7 @@ \endverbatim */ /* - * $Id: xine.h.tmpl.in,v 1.68 2001/12/14 16:50:57 f1rmb Exp $ + * $Id: xine.h.tmpl.in,v 1.69 2001/12/19 22:49:45 f1rmb Exp $ * */ @@ -1373,7 +1373,17 @@ mrl_t **xine_get_browse_mrls (xine_t *self, char *plugin_id, char *start_mrl, in * Some input plugins can generate autoplay lists * returns a list of ids of these plugins. */ -char **xine_get_autoplay_input_plugin_ids (xine_t *self) ; +char **xine_get_autoplay_input_plugin_ids (xine_t *self); + +/** + * \fn char *xine_get_input_plugin_description(xine_t *self, char *plugin_id) + * \brief Request input plugin description + * \param self Current xine engine configuration ( #see xine_init() ) + * \param plugin_id Plugin identifier. + * \return Description string. + * + */ +char *xine_get_input_plugin_description(xine_t *self, char *plugin_id); /** * \fn char **xine_get_autoplay_mrls (xine_t *self, char *plugin_id, int *num_mrls) diff --git a/src/xine-engine/load_plugins.c b/src/xine-engine/load_plugins.c index b7b76e6ab..834337e03 100644 --- a/src/xine-engine/load_plugins.c +++ b/src/xine-engine/load_plugins.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: load_plugins.c,v 1.60 2001/12/16 19:05:44 hrm Exp $ + * $Id: load_plugins.c,v 1.61 2001/12/19 22:49:45 f1rmb Exp $ * * * Load input/demux/audio_out/video_out/codec plugins @@ -370,6 +370,27 @@ char **xine_get_browsable_input_plugin_ids(xine_t *this) { return (_xine_get_featured_input_plugin_ids(this, INPUT_CAP_GET_DIR)); } +char *xine_get_input_plugin_description(xine_t *this, char *plugin_id) { + char *str; + input_plugin_t *ip; + int i; + + if((this == NULL) || (this->num_input_plugins < 1) || (plugin_id == NULL)) + return NULL; + + for(i = 0; i < this->num_input_plugins; i++) { + + ip = this->input_plugins[i]; + + if(!strcasecmp((ip->get_identifier(ip)), plugin_id)) { + str = strdup(ip->get_description(ip)); + return str; + } + } + + return NULL; +} + /** *************************************************************** * Decoder plugins section */ |