successfully downloading xml file from subsonic server

This commit is contained in:
Fufu Fang 2019-10-22 01:53:28 +01:00
parent ed8452a4a3
commit cde4a13005
No known key found for this signature in database
GPG Key ID: 0F6BB5EF6F8BB729
2 changed files with 14 additions and 14 deletions

View File

@ -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

View File

@ -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);
}