mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
clean: explicitly include libwebsockets.h in internal c now we use stddint types earlier
Some toolchains don't bring it in soon enough by reference from other headers
This commit is contained in:
parent
6f2230a993
commit
72a5993deb
9 changed files with 25 additions and 15 deletions
|
@ -106,21 +106,6 @@
|
||||||
#define strerror(x) ""
|
#define strerror(x) ""
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
* Generic bidi tx credit management
|
|
||||||
*/
|
|
||||||
|
|
||||||
struct lws_tx_credit {
|
|
||||||
int32_t tx_cr; /* our credit to write peer */
|
|
||||||
int32_t peer_tx_cr_est; /* peer's credit to write us */
|
|
||||||
|
|
||||||
int32_t manual_initial_tx_credit;
|
|
||||||
|
|
||||||
uint8_t skint; /* unable to write anything */
|
|
||||||
uint8_t manual;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* ------ private platform defines ------
|
* ------ private platform defines ------
|
||||||
|
@ -149,6 +134,21 @@ struct lws_tx_credit {
|
||||||
|
|
||||||
#include "libwebsockets.h"
|
#include "libwebsockets.h"
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Generic bidi tx credit management
|
||||||
|
*/
|
||||||
|
|
||||||
|
struct lws_tx_credit {
|
||||||
|
int32_t tx_cr; /* our credit to write peer */
|
||||||
|
int32_t peer_tx_cr_est; /* peer's credit to write us */
|
||||||
|
|
||||||
|
int32_t manual_initial_tx_credit;
|
||||||
|
|
||||||
|
uint8_t skint; /* unable to write anything */
|
||||||
|
uint8_t manual;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
#include "private-lib-tls.h"
|
#include "private-lib-tls.h"
|
||||||
|
|
||||||
#if defined(WIN32) || defined(_WIN32)
|
#if defined(WIN32) || defined(_WIN32)
|
||||||
|
|
|
@ -36,6 +36,8 @@
|
||||||
* of libwebsockets
|
* of libwebsockets
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <libwebsockets.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "private-lib-core.h"
|
#include "private-lib-core.h"
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
#include <libwebsockets.h>
|
||||||
#include "private-lib-core.h"
|
#include "private-lib-core.h"
|
||||||
|
|
||||||
pid_t pid_daemon;
|
pid_t pid_daemon;
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
#endif
|
#endif
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
|
#include <libwebsockets.h>
|
||||||
#include "private-lib-core.h"
|
#include "private-lib-core.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
@ -43,6 +43,8 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#include <libwebsockets.h>
|
||||||
#include "private-lib-core.h"
|
#include "private-lib-core.h"
|
||||||
|
|
||||||
#ifdef LWS_HAVE_SYS_SOCKIO_H
|
#ifdef LWS_HAVE_SYS_SOCKIO_H
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
* IN THE SOFTWARE.
|
* IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <libwebsockets.h>
|
||||||
#include "private-lib-core.h"
|
#include "private-lib-core.h"
|
||||||
|
|
||||||
struct lws_ring *
|
struct lws_ring *
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
* IN THE SOFTWARE.
|
* IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <libwebsockets.h>
|
||||||
#include "private-lib-core.h"
|
#include "private-lib-core.h"
|
||||||
|
|
||||||
/* requires context->lock */
|
/* requires context->lock */
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <libwebsockets.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
* implemented by Jun-ichiro itojun Itoh <itojun@itojun.org>
|
* implemented by Jun-ichiro itojun Itoh <itojun@itojun.org>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <libwebsockets.h>
|
||||||
#include "private-lib-core.h"
|
#include "private-lib-core.h"
|
||||||
|
|
||||||
#ifdef LWS_HAVE_SYS_TYPES_H
|
#ifdef LWS_HAVE_SYS_TYPES_H
|
||||||
|
|
Loading…
Add table
Reference in a new issue