mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2026-03-11 19:48:36 +01:00
implement backupSession with libmicroxml instead of libexpat
This commit is contained in:
parent
6d4bd4656c
commit
6b5ba14285
4 changed files with 833 additions and 1308 deletions
|
|
@ -431,7 +431,10 @@ int cwmp_launch_download(struct cwmp *cwmp, struct session *session, struct down
|
|||
res = curl_easy_perform(curl);
|
||||
curl_easy_cleanup(curl);
|
||||
}
|
||||
fclose(fp);
|
||||
if(fp != NULL)
|
||||
{
|
||||
fclose(fp);
|
||||
}
|
||||
}
|
||||
|
||||
if(res != CURLE_OK)
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ LIBS=-lc
|
|||
|
||||
SHLIB_FILE=libcwmp.$(SHLIB_EXT).$(CWMP_VERSION)
|
||||
PCFLAGS+=-Iinc -DCWMP_VERSION=\"$(CWMP_VERSION)\" -DWITH_COOKIES -DWITH_CWMP_DEBUG -DWITH_DEV_DEBUG -DACS_MULTI=1
|
||||
PLDFLAGS+=-DCWMP_VERSION=\"$(CWMP_VERSION)\" -DWITH_COOKIES -DWITH_CWMP_DEBUG -DWITH_DEV_DEBUG -luci -lexpat -lpthread -lssl -lcurl -lubox -lubus
|
||||
PLDFLAGS+=-DCWMP_VERSION=\"$(CWMP_VERSION)\" -DWITH_COOKIES -DWITH_CWMP_DEBUG -DWITH_DEV_DEBUG -luci -lmicroxml -lpthread -lssl -lcurl -lubox -lubus
|
||||
|
||||
ifneq ($(CWMP_REVISION)_,_)
|
||||
ifneq ($(CWMP_REVISION),exported)
|
||||
|
|
|
|||
2131
src/backupSession.c
2131
src/backupSession.c
File diff suppressed because it is too large
Load diff
|
|
@ -27,6 +27,7 @@ struct cwmp cwmp_main;
|
|||
static pthread_mutex_t thread_sync_mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
static pthread_cond_t thread_sync_cond = PTHREAD_COND_INITIALIZER;
|
||||
static bool thread_sync_wait = TRUE;
|
||||
extern pthread_mutex_t mutex_backup_session;
|
||||
|
||||
struct rpc_acs *cwmp_add_session_rpc_acs_inform (struct session *session);
|
||||
struct rpc_cpe *cwmp_soap_receive_rpc_cpe (struct cwmp *cwmp,struct session *session);
|
||||
|
|
@ -611,6 +612,8 @@ int main(int argc, char **argv)
|
|||
pthread_t download_thread;
|
||||
pthread_t ubus_thread;
|
||||
|
||||
pthread_mutex_init(&mutex_backup_session, NULL);
|
||||
|
||||
if (error = cwmp_init(argc, argv, cwmp))
|
||||
{
|
||||
return error;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue