24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
26 * POSSIBILITY OF SUCH DAMAGE. |
26 * POSSIBILITY OF SUCH DAMAGE. |
27 */ |
27 */ |
28 |
28 |
29 #ifdef XP_UNIX |
|
30 #include <dlfcn.h> |
29 #include <dlfcn.h> |
31 #endif |
|
32 #ifdef XP_WIN32 |
|
33 |
|
34 #endif |
|
35 |
|
36 #include <ucx/string.h> |
30 #include <ucx/string.h> |
37 |
31 |
38 #include "../daemon/func.h" |
32 #include "../daemon/func.h" |
39 #include "../daemon/log.h" |
33 #include "../daemon/log.h" |
40 |
34 |
42 |
36 |
43 int init_test(pblock *pb, Session *sn, Request *rq) { |
37 int init_test(pblock *pb, Session *sn, Request *rq) { |
44 printf("init-test\n"); |
38 printf("init-test\n"); |
45 return REQ_PROCEED; |
39 return REQ_PROCEED; |
46 } |
40 } |
47 |
|
48 #ifdef XP_UNIX |
|
49 |
41 |
50 int load_modules(pblock *pb, Session *sn, Request *rq) { |
42 int load_modules(pblock *pb, Session *sn, Request *rq) { |
51 char *shlib = pblock_findval("shlib", pb); |
43 char *shlib = pblock_findval("shlib", pb); |
52 char *funcs = pblock_findval("funcs", pb); |
44 char *funcs = pblock_findval("funcs", pb); |
53 |
45 |