Incremental checkin.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Tue, 9 Jan 2007 03:41:31 +0000 (03:41 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Tue, 9 Jan 2007 03:41:31 +0000 (03:41 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@821 959494ce-11ee-0310-bf91-de5d638817bd

daemon/fnet-adc.c

index 2fb9de8..ecbffe3 100644 (file)
@@ -38,7 +38,7 @@
 #include "transfer.h"
 #include "sysevents.h"
 #include "net.h"
-#include "tiger.h"
+#include <tiger.h>
 
 /* Protocol states */
 #define ADC_PROTOCOL 0
@@ -67,6 +67,7 @@ struct adchub {
     wchar_t **sup;
     iconv_t ich;
     int state;
+    struct wcspair *hubinf;
     struct qcmd *queue;
 };
 
@@ -215,6 +216,7 @@ ADC_CMDFN(cmd_sup)
        } else if(!wcsncmp(argv[i], L"RM", 2)) {
            if(!f)
                continue;
+           free(hub->sup[o]);
            memmove(hub->sup[o], hub->sup[o + 1], parrlen(hub->sup) - o);
        }
     }
@@ -232,9 +234,19 @@ ADC_CMDFN(cmd_sid)
     }
 }
 
+ADC_CMDFN(cmd_inf)
+{
+    ADC_CMDCOM;
+    
+    if(sender == NULL) {
+       
+    }
+}
+
 static struct command hubcmds[] = {
     {L"SUP", 1, 0, cmd_sup},
     {L"SID", 2, 0, cmd_sid},
+    {L"INF", 0, 0, cmd_inf},
     {NULL, 0, 0, NULL}
 };