Re: Do Plugins work in amaya?

At the begenning Amaya loades the dynamic libraries of plug-ins
(function TtaBrowsePluginDirectory, file: pluginbrowse.c) to
be ready to execute any known plug-in.

Ap_CreatePluginInstance is called by the function Ap_DrawPicture
(file pluginhandler.c). Indeed, plug-ins are treated as image
files in Amaya (Ap_DrawPicture is called by the function DrawPicture
file picture.c). In particular, the parsing of the mime type is also
done in the file picture.c by the function Match_Format which calls
the function Ap_MatchFormat (pluginghandlers.c). The result of this
parsins allows to create an instance of the right plug-in.

Ramzi.

>
>Perhaps you can explain where and how in amaya the plugins are called.
>
>I don't see any functions or actual code which makes use of the
>table amayaFunctionsTable which is initialized in 
>pluginapi.c: Ap_InitializeAmayaTable
>
>You see I can't find any code which decides based upon the loaded
>plugin MIME types to call the appropriate plugin entry. For instance,
>I don't see any calls to Ap_CreatePluginInstance.
>
>I think that amaya is correctly loading and characterizing plugins:
>
>{hasty} amaya
>Size of NPAmayaFuncs = 72
>***** Ap_InitializePlugin *****
>Plugin type: midi
>suffixes: mid,midi
>comment: <A HREF=mailto
>Plugin type: hoff@bnl.gov>Larry Hoff's</A> MIDIX plugin version 1.00;audio/x-m
>idi
>suffixes: mid,midi
>comment: <A HREF=mailto
>Plugin name: hoff@bnl.gov>Larry Hoff's</A> MIDIX plugin version 1.00;
>Suffixes: mid,midimid,midi
>***** Ap_InitializePluginTable *****
>Size of NPPluginFuncs = 52
>

-- 
Ramzi GUETARI                           |  Tel: (33) 4 76 61 52 38
World Wide Web Consortium / INRIA       |  Fax: (33) 4 76 61 52 52
655 Avenue de l'Europe                  |  e-mail: Ramzi.Guetari@w3.org
38330 Montbonnot Saint Martin - France  |  http://www.w3.org

Received on Monday, 16 June 1997 09:58:15 UTC