RE: loadable modules ?

"Oded Arbel" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
I think that would be very nice feature, and I see several things I can
do with it.
another revolutionary idea - wouldn't it be nice to load the smsc
modules as dynamic libraries ? that way we don't need to build smsc
modules that we're not going to use...

Oded Arbel
m-Wise Inc.
[email protected]

--
If they wrote error messages in Haiku ?
  Yesterday it worked
  Today it is not working
  Windows is like that


> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> Sent: Thursday, February 21, 2002 3:07 PM
> To: [email protected]
> Subject: loadable modules ?
> 
> 
> Hi
> 
> I've implemented a sms service type that loads and calls a library
> dynamically (using dlopen).
> 
> The configuration would look something like:
> 
> group = sms-service
> keyword = default
> name =
> "mod"
> # name of function called, append ".so" to get filename    
> (Is it ok to
> use the name property this way? What is the intended purpose of name?)
> load = "this string is passed to the library function %p %P %a"
> # passed to function "mod"
> omit-empty = 1
> 
> The library call protocol is:
> 
> Octstr* func( Msg* msg, Octstr* pattern );          /* return reply
> text, msg == NULL -> library is about to be unloaded. */
> where func is the name specified in the sms-service group.
> 
> 
> The purpose is to offer a way of extending kannel 
> functionallity without
> changing kannel source code.
> It can be considered a plugin architecture for sms service types.
> It is usefull for sms service types that benefit from reusing 
> resources
> having the same lifetime as the process that use it (in my example, a
> mySQL connection).
> 
> Currently the implementation is a bit "hacky" and needs cleaning and
> "packaging" before I can submit it.
> 
> My question is: should I bother? Is there a need/want for this kind of
> thing?
> 
> 
> 
>          /Dennis
> 
>   Dennis Malmström
>   Erda Technology AB
>   S:t Larsgatan 12, 582 24 Linköping, Sweden
>   http://www.erda.se
>   mail: [email protected]
>   phone: +46 (0)13 377218
>   gsm: +46 (0)706483090
> 
> 
> 
> 
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.