Hi to everybody,

   A few days ago I posted a question in the plplot "Help" discussion 
forum about a the development of a new driver for GNUstep 
(http://sourceforge.net/forum/forum.php?thread_id=2185650&forum_id=8607). 
In the last days I investigated a bit more the problem.

I was thinking of implementing the GNUstep driver within a test 
application which links to the plain `plplot' library as it is already 
installed by my Ubuntu package manager (libplplot-dev). In this way I 
would not mess up with plplot sources while I test my code.

I have thought about two possible ways to do this, but I do not know if 
they are feasible.

The first (and best) alternative would be to have some functions which 
allow to register a new driver within the main program. Something like 
the following:

int main ()
{
   /* Initialize the hypotetical `pldriver_info' structure properly */
   pldriver_info * new_driver = create_driver ();

   /* Register the driver so that plplot knows about it */
   plregister_driver ("mydriver", new_driver_info);

   /* Set `mydriver' as the default driver for this session */
   plsdev ("mydriver");

   plinit ();

   /* start using plplot with the custom driver */
}

However, the manual does not report the existence of such functions 
(although they would be very useful, IMHO).

The second idea is less elegant but perhaps more likely to be 
applicable: using dynamic drivers. Creating a "mydriver.so" and a 
"mydriver.rc" file into the /usr/lib/plplot5.8.0/driversd/ directory 
would be enough for plplot to recognize my new driver? Do you suggest 
this approach?

Thank you very much and best regards,
   Maurizio Tomasi.

-- 
**********************************************************************
Maurizio TOMASI

Universita' degli Studi di Milano    Email 1: [EMAIL PROTECTED]
Dipartimento di fisica               Email 2: [EMAIL PROTECTED]
Via Celoria, 16                      Tel. 1: +39-02-50317275 (UniMi)
20133 Milano                         Tel. 2: +39-02-23699461 (INAF)
ITALY                                Skype: zio_tom78
**********************************************************************

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to