Re: DSO question

2010-03-09 Thread Joe Lewis
On Tue, March 9, 2010 6:43 am, Graf, László wrote: I have a shared library containing a function to calculate a multiple of 10. The header file (apr_dso_f.h): int f10(int p1); I use this library with an APR console application and it woks fine. OK. My module loads also this SO library

Re: DSO question

2010-03-09 Thread Graf László
Hi Joe, You are so kind. Thank you for your reply. I think that I wasn't clear enough. I know how to parse the HTTP request to access the arguments, I know how to use the atoi function but now it is not the case. In that moment when I have the name of the function, ex. f10, I have this

Re: DSO question

2010-03-09 Thread Ben Noordhuis
What I need is to tell to APR, hey APR please find the function f10 in all loaded libraries, then execute the function and give me back the result. That is not how it works in C. Function names only exist in source code, at run-time it is nothing but an address in memory. Google 'function

RE: DSO question

2010-03-09 Thread Thomas, Peter
-Original Message- From: Ben Noordhuis [mailto:i...@bnoordhuis.nl] Sent: Tuesday, March 09, 2010 1:34 PM To: modules-...@httpd.apache.org Subject: Re: DSO question What I need is to tell to APR, hey APR please find the function f10 in all loaded libraries, then execute