summaryrefslogtreecommitdiffstats
path: root/sesman/libscp/libscp_init.c
diff options
context:
space:
mode:
authorilsimo <ilsimo>2008-02-21 15:50:31 +0000
committerilsimo <ilsimo>2008-02-21 15:50:31 +0000
commit57484bd7016c6e56854dc4c34ac0dc8077a07014 (patch)
treedc081809815ab499c9b8827fc92e7c2b7b03df09 /sesman/libscp/libscp_init.c
parent4c9d3862e55ab5d6fa734549478bb0a00be9f7ed (diff)
downloadxrdp-proprietary-57484bd7016c6e56854dc4c34ac0dc8077a07014.tar.gz
xrdp-proprietary-57484bd7016c6e56854dc4c34ac0dc8077a07014.zip
more work on logging
Diffstat (limited to 'sesman/libscp/libscp_init.c')
-rw-r--r--sesman/libscp/libscp_init.c31
1 files changed, 10 insertions, 21 deletions
diff --git a/sesman/libscp/libscp_init.c b/sesman/libscp/libscp_init.c
index d35fb8d1..4f54f6cc 100644
--- a/sesman/libscp/libscp_init.c
+++ b/sesman/libscp/libscp_init.c
@@ -27,32 +27,21 @@
#include "libscp_init.h"
+static struct log_config* s_log;
+
/* server API */
int DEFAULT_CC
-scp_init(void)
-{
- scp_lock_init();
-
- return 0;
-}
-
-struct SCP_CONNECTION*
-scp_make_connection(int sck)
+scp_init(struct log_config* log)
{
- struct SCP_CONNECTION* conn;
-
- conn = g_malloc(sizeof(struct SCP_CONNECTION), 0);
-
- if (0 == conn)
+ if (0 == log)
{
- return 0;
+ return 1;
}
- conn->in_sck = sck;
- make_stream(conn->in_s);
- init_stream(conn->in_s, 8196);
- make_stream(conn->out_s);
- init_stream(conn->out_s, 8196);
+ s_log = log;
+
+ scp_lock_init();
- return conn;
+ return 0;
}
+