#include "transfer.h"
#include "sysevents.h"
#include "net.h"
-#include "tiger.h"
+#include <tiger.h>
/* Protocol states */
#define ADC_PROTOCOL 0
wchar_t **sup;
iconv_t ich;
int state;
+ struct wcspair *hubinf;
struct qcmd *queue;
};
} 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);
}
}
}
}
+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}
};
return(0);
}
-static struct fnet adcnet = {
+static struct fnet adcnet_store = {
.connect = hubconnect,
.destroy = hubdestroy,
.setnick = hubsetnick,
.name = L"adc"
};
+static struct fnet *adcnet = &adcnet_store;
+
static int run(void)
{
int ret;
ret = 0;
for(fn = fnetnodes; fn != NULL; fn = nextfn) {
nextfn = fn->next;
- if(fn->fnet != &adcnet)
+ if(fn->fnet != adcnet)
continue;
if((hub = fn->data) == NULL)
continue;
{
if(hup)
return;
- regfnet(&adcnet);
+ regfnet(adcnet);
}
static int init(int hup)