LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-04-2006, 01:59 AM   #1
yogeshm02
Member
 
Registered: Jul 2004
Location: Chandigarh, India
Distribution: SuSe 10.1
Posts: 75

Rep: Reputation: 15
plugin system and testing


Hi

I'm developing a LARGE application which uses plugins for its work. I've following doubts:
How to scan for available plugins while testing? Should I use separate code for scaning plugin while testing (using preprocessor directives) or some other method? Please specify.

I'm currently using just plain libs for testing.

Thanks
 
Old 03-04-2006, 11:22 AM   #2
aluser
Member
 
Registered: Mar 2004
Location: Massachusetts
Distribution: Debian
Posts: 557

Rep: Reputation: 43
I think libtool's libltdl has some facilities for searching for plugins.

You haven't given a lot of information about what a plugin *means* for your app. A typical way to do it is have all the apps plugins reside in some directory; you could change this directory to something in your home directory for debugging, or read it out of an environment variable or config file. e.g. have the app look in /usr/lib/myapp/plugins by default, but use the value of $MYAPP_PLUGIN_PATH if it's set. You could even have that be a colon-separated list of directories.

I even sort of remember libltdl supporting a list of directories to seach.
 
Old 03-05-2006, 01:12 AM   #3
yogeshm02
Member
 
Registered: Jul 2004
Location: Chandigarh, India
Distribution: SuSe 10.1
Posts: 75

Original Poster
Rep: Reputation: 15
Thanks, it did not came to my mind.

I used the term 'plugin' incorrectly. Actually my app is growing day-by-day(expectedly) and I had separated it (from the earlier stages) in small modules (currently statically linked) based on usage, so that those may only be loaded if there is need. Also, user has the option to disable a certain module (hence the requirement of scanning for available modules).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
1 of the 2 slackware on system is for testing...kernel compilation/permission issues b0nd Linux - Newbie 1 01-21-2006 01:20 PM
Setup as getting debian testing files from ftp - will it stay with testing BrianHenderson Debian 2 09-02-2004 06:06 PM
Testing sound card locks up system dasoberdick Linux - Newbie 0 08-07-2004 12:18 AM
System hangs when testing sound. sudipnandy2008 Linux - Hardware 1 05-09-2004 03:31 AM
System lock-ups after installing flash plugin JaseP Linux - Software 1 03-15-2003 02:37 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration