successfully downloading xml file from subsonic server
This commit is contained in:
parent
ed8452a4a3
commit
cde4a13005
2
Makefile
2
Makefile
|
@ -4,7 +4,7 @@ CFLAGS+= -O2 -Wall -Wextra -Wshadow -rdynamic\
|
|||
-D_FILE_OFFSET_BITS=64 -DVERSION=\"$(VERSION)\" \
|
||||
`pkg-config --cflags-only-I gumbo libcurl fuse uuid`
|
||||
LIBS = -pthread -lgumbo -lcurl -lfuse -lcrypto -luuid
|
||||
COBJS = network.o fuse_local.o link.o cache.o util.o main.o
|
||||
COBJS = network.o fuse_local.o link.o cache.o util.o sonic.o
|
||||
|
||||
prefix ?= /usr/local
|
||||
|
||||
|
|
26
src/sonic.c
26
src/sonic.c
|
@ -106,16 +106,16 @@ LinkTable *sonic_LinkTable_new(const int id)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
// int main(int argc, char **argv)
|
||||
// {
|
||||
// (void) argc;
|
||||
// (void) argv;
|
||||
//
|
||||
// sonic_config_init(argv[1], argv[2], argv[3]);
|
||||
//
|
||||
// link_system_init();
|
||||
// network_config_init();
|
||||
//
|
||||
// sonic_LinkTable_new(0);
|
||||
// sonic_LinkTable_new(3);
|
||||
// }
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
(void) argc;
|
||||
(void) argv;
|
||||
|
||||
sonic_config_init(argv[1], argv[2], argv[3]);
|
||||
|
||||
NetworkConfig_init();
|
||||
NetworkSystem_init();
|
||||
|
||||
sonic_LinkTable_new(0);
|
||||
sonic_LinkTable_new(3);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue