Skip to content

Commit 10f731d

Browse files
author
minggo
committed
add lost header files
1 parent 3f80021 commit 10f731d

File tree

2 files changed

+107
-0
lines changed

2 files changed

+107
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
/* lws_config.h Generated from lws_config.h.in */
2+
3+
#ifndef NDEBUG
4+
#ifndef _DEBUG
5+
#define _DEBUG
6+
#endif
7+
#endif
8+
9+
/* Define to 1 to use wolfSSL/CyaSSL as a replacement for OpenSSL.
10+
* LWS_OPENSSL_SUPPORT needs to be set also for this to work. */
11+
/* #undef USE_WOLFSSL */
12+
13+
/* Also define to 1 (in addition to USE_WOLFSSL) when using the
14+
(older) CyaSSL library */
15+
/* #undef USE_OLD_CYASSL */
16+
17+
/* The Libwebsocket version */
18+
#define LWS_LIBRARY_VERSION "1.6.0"
19+
20+
#define LWS_LIBRARY_VERSION_MAJOR 1
21+
#define LWS_LIBRARY_VERSION_MINOR 6
22+
#define LWS_LIBRARY_VERSION_PATCH 0
23+
/* LWS_LIBRARY_VERSION_NUMBER looks like 1005001 for e.g. version 1.5.1 */
24+
#define LWS_LIBRARY_VERSION_NUMBER (LWS_LIBRARY_VERSION_MAJOR*1000000)+(LWS_LIBRARY_VERSION_MINOR*1000)+LWS_LIBRARY_VERSION_PATCH
25+
26+
/* The current git commit hash that we're building from */
27+
/* #undef LWS_BUILD_HASH */
28+
29+
/* Build with OpenSSL support */
30+
/* #undef LWS_OPENSSL_SUPPORT */
31+
32+
/* The client should load and trust CA root certs it finds in the OS */
33+
#define LWS_SSL_CLIENT_USE_OS_CA_CERTS
34+
35+
/* Sets the path where the client certs should be installed. */
36+
#define LWS_OPENSSL_CLIENT_CERTS "../share"
37+
38+
/* Turn off websocket extensions */
39+
/* #undef LWS_NO_EXTENSIONS */
40+
41+
/* Enable libev io loop */
42+
/* #undef LWS_USE_LIBEV */
43+
44+
/* Build with support for ipv6 */
45+
/* #undef LWS_USE_IPV6 */
46+
47+
/* Build with support for HTTP2 */
48+
/* #undef LWS_USE_HTTP2 */
49+
50+
/* Turn on latency measuring code */
51+
/* #undef LWS_LATENCY */
52+
53+
/* Don't build the daemonizeation api */
54+
#define LWS_NO_DAEMONIZE
55+
56+
/* Build without server support */
57+
#define LWS_NO_SERVER
58+
59+
/* Build without client support */
60+
/* #undef LWS_NO_CLIENT */
61+
62+
/* If we should compile with MinGW support */
63+
/* #undef LWS_MINGW_SUPPORT */
64+
65+
/* Use the BSD getifaddrs that comes with libwebsocket, for uclibc support */
66+
#define LWS_BUILTIN_GETIFADDRS
67+
68+
/* use SHA1() not internal libwebsockets_SHA1 */
69+
/* #undef LWS_SHA1_USE_OPENSSL_NAME */
70+
71+
/* SSL server using ECDH certificate */
72+
/* #undef LWS_SSL_SERVER_WITH_ECDH_CERT */
73+
74+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#ifndef __GETOPT_H__
2+
#define __GETOPT_H__
3+
4+
#ifdef __cplusplus
5+
extern "C" {
6+
#endif
7+
8+
extern int opterr; /* if error message should be printed */
9+
extern int optind; /* index into parent argv vector */
10+
extern int optopt; /* character checked for validity */
11+
extern int optreset; /* reset getopt */
12+
extern char *optarg; /* argument associated with option */
13+
14+
struct option
15+
{
16+
const char *name;
17+
int has_arg;
18+
int *flag;
19+
int val;
20+
};
21+
22+
#define no_argument 0
23+
#define required_argument 1
24+
#define optional_argument 2
25+
26+
int getopt(int, char**, char*);
27+
int getopt_long(int, char**, char*, struct option*, int*);
28+
29+
#ifdef __cplusplus
30+
}
31+
#endif
32+
33+
#endif /* __GETOPT_H__ */

0 commit comments

Comments
 (0)