freewtp/src/common/capwap_rwlock.h
vemax78 8937ded1d3 Improved the management of soap request/response.
The director has the opportunity to change the configuration of AC in join
connection. The virtual interfaces which encapsulate the wifi stations is
managed dynamically by the Director.
The AC must request authorization from Director for associate a station.
2014-10-19 21:37:22 +02:00

21 lines
519 B
C

#ifndef __CAPWAP_RWLOCK_HEADER__
#define __CAPWAP_RWLOCK_HEADER__
#ifdef CAPWAP_MULTITHREADING_ENABLE
#include <pthread.h>
typedef struct {
pthread_rwlock_t rwlock;
} capwap_rwlock_t;
int capwap_rwlock_init(capwap_rwlock_t* lock);
void capwap_rwlock_destroy(capwap_rwlock_t* lock);
void capwap_rwlock_rdlock(capwap_rwlock_t* lock);
void capwap_rwlock_wrlock(capwap_rwlock_t* lock);
void capwap_rwlock_unlock(capwap_rwlock_t* lock);
#endif /* CAPWAP_MULTITHREADING_ENABLE */
#endif /* __CAPWAP_RWLOCK_HEADER__ */