diff options
author | Andy Green <andy.green@linaro.org> | 2013-02-12 16:09:02 +0800 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2013-02-12 16:09:02 +0800 |
commit | 3946c14ab24eeddaf4b4000d4be1d4922153364d (patch) | |
tree | 336d1b9618747524f7064c397ea5e01ea840caec | |
parent | 06fc218030ad259cb8076f1e4a2e1eea5f1722f5 (diff) |
update for libwebsocket 1.2 api changes
Signed-off-by: Andy Green <andy.green@linaro.org>
-rw-r--r-- | aepd/main.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/aepd/main.c b/aepd/main.c index 8b45419..2cbad35 100644 --- a/aepd/main.c +++ b/aepd/main.c @@ -103,6 +103,8 @@ void sighandler(int sig) loop = 0; } +static struct lws_context_creation_info info; + int main(int argc, char *argv[]) { int n = 0, m; @@ -212,10 +214,16 @@ int main(int argc, char *argv[]) if (!use_ssl) cert_path = key_path = NULL; - context = libwebsocket_create_context(port, interface_ptr, protocols, - NULL, - cert_path, key_path, NULL, - -1, -1, opts, NULL); + info.port = port; + info.iface = interface_ptr; + info.protocols = protocols; + info.ssl_cert_filepath = cert_path; + info.ssl_private_key_filepath = key_path; + info.uid = -1; + info.gid = -1; + info.options = opts; + + context = libwebsocket_create_context(&info); if (context == NULL) { fprintf(stderr, "libwebsocket init failed\n"); return -1; |