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 |
29 #include <dlfcn.h> |
30 #include <dlfcn.h> |
|
31 #endif |
|
32 #ifdef XP_WIN32 |
|
33 |
|
34 #endif |
|
35 |
30 #include <ucx/string.h> |
36 #include <ucx/string.h> |
31 |
37 |
32 #include "../daemon/func.h" |
38 #include "../daemon/func.h" |
33 #include "../daemon/log.h" |
39 #include "../daemon/log.h" |
34 |
40 |
36 |
42 |
37 int init_test(pblock *pb, Session *sn, Request *rq) { |
43 int init_test(pblock *pb, Session *sn, Request *rq) { |
38 printf("init-test\n"); |
44 printf("init-test\n"); |
39 return REQ_PROCEED; |
45 return REQ_PROCEED; |
40 } |
46 } |
|
47 |
|
48 #ifdef XP_UNIX |
41 |
49 |
42 int load_modules(pblock *pb, Session *sn, Request *rq) { |
50 int load_modules(pblock *pb, Session *sn, Request *rq) { |
43 char *shlib = pblock_findval("shlib", pb); |
51 char *shlib = pblock_findval("shlib", pb); |
44 char *funcs = pblock_findval("funcs", pb); |
52 char *funcs = pblock_findval("funcs", pb); |
45 |
53 |