mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-27 12:56:15 +00:00
FS-10167: Getting last commit to build and run under linux
This commit is contained in:
parent
e9d1ea645f
commit
3341413254
@ -13,6 +13,7 @@ libunqlite_la_LIBADD = -lpthread
|
|||||||
lib_LTLIBRARIES = libblade.la
|
lib_LTLIBRARIES = libblade.la
|
||||||
libblade_la_SOURCES = src/blade.c src/blade_stack.c
|
libblade_la_SOURCES = src/blade.c src/blade_stack.c
|
||||||
libblade_la_SOURCES += src/blade_identity.c src/blade_jsonrpc.c src/blade_connection.c src/blade_session.c
|
libblade_la_SOURCES += src/blade_identity.c src/blade_jsonrpc.c src/blade_connection.c src/blade_session.c
|
||||||
|
libblade_la_SOURCES += src/blade_protocol.c
|
||||||
libblade_la_SOURCES += src/blade_transport.c src/blade_transport_wss.c
|
libblade_la_SOURCES += src/blade_transport.c src/blade_transport_wss.c
|
||||||
|
|
||||||
libblade_la_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
|
libblade_la_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
|
||||||
@ -22,6 +23,7 @@ libblade_la_LIBADD = libunqlite.la
|
|||||||
library_includedir = $(prefix)/include
|
library_includedir = $(prefix)/include
|
||||||
library_include_HEADERS = src/include/blade.h src/include/blade_types.h src/include/blade_stack.h
|
library_include_HEADERS = src/include/blade.h src/include/blade_types.h src/include/blade_stack.h
|
||||||
library_include_HEADERS += src/include/blade_identity.h src/include/blade_jsonrpc.h src/include/blade_connection.h src/include/blade_session.h
|
library_include_HEADERS += src/include/blade_identity.h src/include/blade_jsonrpc.h src/include/blade_connection.h src/include/blade_session.h
|
||||||
|
library_include_HEADERS += src/include/blade_protocol.h
|
||||||
library_include_HEADERS += src/include/blade_transport.h src/include/blade_transport_wss.h
|
library_include_HEADERS += src/include/blade_transport.h src/include/blade_transport_wss.h
|
||||||
library_include_HEADERS += src/include/unqlite.h test/tap.h
|
library_include_HEADERS += src/include/unqlite.h test/tap.h
|
||||||
|
|
||||||
|
@ -1198,7 +1198,7 @@ ks_bool_t blade_protocol_publish_request_handler(blade_jsonrpc_request_t *breq,
|
|||||||
|
|
||||||
ks_hash_write_lock(bh->protocols);
|
ks_hash_write_lock(bh->protocols);
|
||||||
|
|
||||||
bp = (blade_protocol_t *)ks_hash_search(bh->protocols, bp_key, KS_UNLOCKED);
|
bp = (blade_protocol_t *)ks_hash_search(bh->protocols, (void *)bp_key, KS_UNLOCKED);
|
||||||
if (bp) {
|
if (bp) {
|
||||||
// @todo deal with exclusive stuff when the protocol is already registered
|
// @todo deal with exclusive stuff when the protocol is already registered
|
||||||
}
|
}
|
||||||
@ -1211,7 +1211,7 @@ ks_bool_t blade_protocol_publish_request_handler(blade_jsonrpc_request_t *breq,
|
|||||||
ks_hash_insert(bh->protocols, (void *)ks_pstrdup(bh->pool, bp_key), bp);
|
ks_hash_insert(bh->protocols, (void *)ks_pstrdup(bh->pool, bp_key), bp);
|
||||||
}
|
}
|
||||||
|
|
||||||
bp_cleanup = (ks_hash_t *)ks_hash_search(bh->protocols_cleanup, req_params_requester_nodeid, KS_UNLOCKED);
|
bp_cleanup = (ks_hash_t *)ks_hash_search(bh->protocols_cleanup, (void *)req_params_requester_nodeid, KS_UNLOCKED);
|
||||||
if (!bp_cleanup) {
|
if (!bp_cleanup) {
|
||||||
ks_hash_create(&bp_cleanup, KS_HASH_MODE_CASE_INSENSITIVE, KS_HASH_FLAG_RWLOCK | KS_HASH_FLAG_DUP_CHECK | KS_HASH_FLAG_FREE_KEY, bh->pool);
|
ks_hash_create(&bp_cleanup, KS_HASH_MODE_CASE_INSENSITIVE, KS_HASH_FLAG_RWLOCK | KS_HASH_FLAG_DUP_CHECK | KS_HASH_FLAG_FREE_KEY, bh->pool);
|
||||||
ks_assert(bp_cleanup);
|
ks_assert(bp_cleanup);
|
||||||
|
@ -6,18 +6,21 @@ blade:
|
|||||||
nodeid = "00000000-0000-0000-0000-000000000000";
|
nodeid = "00000000-0000-0000-0000-000000000000";
|
||||||
realms = ( "mydomain.com" );
|
realms = ( "mydomain.com" );
|
||||||
};
|
};
|
||||||
wss:
|
transport:
|
||||||
{
|
{
|
||||||
endpoints:
|
wss:
|
||||||
{
|
{
|
||||||
ipv4 = ( { address = "0.0.0.0", port = 2100 } );
|
endpoints:
|
||||||
ipv6 = ( { address = "::", port = 2100 } );
|
{
|
||||||
backlog = 128;
|
ipv4 = ( { address = "0.0.0.0", port = 2100 } );
|
||||||
};
|
ipv6 = ( { address = "::", port = 2100 } );
|
||||||
# SSL group is optional, disabled when absent
|
backlog = 128;
|
||||||
ssl:
|
};
|
||||||
{
|
# SSL group is optional, disabled when absent
|
||||||
# todo: server SSL stuffs here
|
ssl:
|
||||||
};
|
{
|
||||||
};
|
# todo: server SSL stuffs here
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
@ -6,8 +6,8 @@ blade:
|
|||||||
{
|
{
|
||||||
endpoints:
|
endpoints:
|
||||||
{
|
{
|
||||||
ipv4 = ( { address = "0.0.0.0", port = 2100 } );
|
ipv4 = ( { address = "0.0.0.0", port = 2101 } );
|
||||||
ipv6 = ( { address = "::", port = 2100 } );
|
ipv6 = ( { address = "::", port = 2101 } );
|
||||||
backlog = 128;
|
backlog = 128;
|
||||||
};
|
};
|
||||||
# SSL group is optional, disabled when absent
|
# SSL group is optional, disabled when absent
|
||||||
|
Loading…
x
Reference in New Issue
Block a user