mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-02 21:37:32 +09:00
Merge remote-tracking branch 'origin/tracking' into custom
This commit is contained in:
commit
7a3845abaf
6 changed files with 16 additions and 49 deletions
|
|
@ -314,7 +314,6 @@ inline bool IsXMMReversedOperands(TwoByteOpcodeID opcode)
|
||||||
case OP2_MOVSD_WsdVsd: // also OP2_MOVPS_WpsVps
|
case OP2_MOVSD_WsdVsd: // also OP2_MOVPS_WpsVps
|
||||||
case OP2_MOVAPS_WsdVsd:
|
case OP2_MOVAPS_WsdVsd:
|
||||||
case OP2_MOVDQ_WdqVdq:
|
case OP2_MOVDQ_WdqVdq:
|
||||||
case OP3_PEXTRD_EdVdqIb:
|
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -1557,6 +1557,10 @@ void vp8_change_config(VP8_COMP *cpi, VP8_CONFIG *oxcf)
|
||||||
last_h = cpi->oxcf.Height;
|
last_h = cpi->oxcf.Height;
|
||||||
prev_number_of_layers = cpi->oxcf.number_of_layers;
|
prev_number_of_layers = cpi->oxcf.number_of_layers;
|
||||||
|
|
||||||
|
if (cpi->initial_width) {
|
||||||
|
oxcf->multi_threaded = cpi->oxcf.multi_threaded;
|
||||||
|
}
|
||||||
|
|
||||||
cpi->oxcf = *oxcf;
|
cpi->oxcf = *oxcf;
|
||||||
|
|
||||||
switch (cpi->oxcf.Mode)
|
switch (cpi->oxcf.Mode)
|
||||||
|
|
|
||||||
|
|
@ -97,7 +97,7 @@ class TransportTestPeer : public sigslot::has_slots<> {
|
||||||
|
|
||||||
memset(&local_addr_, 0, sizeof(local_addr_));
|
memset(&local_addr_, 0, sizeof(local_addr_));
|
||||||
local_addr_.sconn_family = AF_CONN;
|
local_addr_.sconn_family = AF_CONN;
|
||||||
#if !defined(__Userspace_os_Linux) && !defined(__Userspace_os_Windows) && !defined(__Userspace_os_Android)
|
#if !defined(__linux__) && !defined(_WIN32) && !defined(__ANDROID__)
|
||||||
local_addr_.sconn_len = sizeof(struct sockaddr_conn);
|
local_addr_.sconn_len = sizeof(struct sockaddr_conn);
|
||||||
#endif
|
#endif
|
||||||
local_addr_.sconn_port = htons(local_port);
|
local_addr_.sconn_port = htons(local_port);
|
||||||
|
|
@ -106,7 +106,7 @@ class TransportTestPeer : public sigslot::has_slots<> {
|
||||||
|
|
||||||
memset(&remote_addr_, 0, sizeof(remote_addr_));
|
memset(&remote_addr_, 0, sizeof(remote_addr_));
|
||||||
remote_addr_.sconn_family = AF_CONN;
|
remote_addr_.sconn_family = AF_CONN;
|
||||||
#if !defined(__Userspace_os_Linux) && !defined(__Userspace_os_Windows) && !defined(__Userspace_os_Android)
|
#if !defined(__linux__) && !defined(_WIN32) && !defined(__ANDROID__)
|
||||||
remote_addr_.sconn_len = sizeof(struct sockaddr_conn);
|
remote_addr_.sconn_len = sizeof(struct sockaddr_conn);
|
||||||
#endif
|
#endif
|
||||||
remote_addr_.sconn_port = htons(remote_port);
|
remote_addr_.sconn_port = htons(remote_port);
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if !defined(__Userspace_os_Windows)
|
#if !defined(_WIN32)
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#endif
|
#endif
|
||||||
// usrsctp.h expects to have errno definitions prior to its inclusion.
|
// usrsctp.h expects to have errno definitions prior to its inclusion.
|
||||||
|
|
@ -547,7 +547,7 @@ DataChannelConnection::CompleteConnect(TransportFlow *flow, TransportLayer::Stat
|
||||||
struct sockaddr_conn addr;
|
struct sockaddr_conn addr;
|
||||||
memset(&addr, 0, sizeof(addr));
|
memset(&addr, 0, sizeof(addr));
|
||||||
addr.sconn_family = AF_CONN;
|
addr.sconn_family = AF_CONN;
|
||||||
#if defined(__Userspace_os_Darwin)
|
#if defined(__APPLE__)
|
||||||
addr.sconn_len = sizeof(addr);
|
addr.sconn_len = sizeof(addr);
|
||||||
#endif
|
#endif
|
||||||
addr.sconn_port = htons(mLocalPort);
|
addr.sconn_port = htons(mLocalPort);
|
||||||
|
|
@ -801,7 +801,7 @@ DataChannelConnection::Connect(const char *addr, unsigned short port)
|
||||||
addr6.sin6_port = htons(port);
|
addr6.sin6_port = htons(port);
|
||||||
mState = CONNECTING;
|
mState = CONNECTING;
|
||||||
|
|
||||||
#if !defined(__Userspace_os_Windows)
|
#if !defined(_WIN32)
|
||||||
if (inet_pton(AF_INET6, addr, &addr6.sin6_addr) == 1) {
|
if (inet_pton(AF_INET6, addr, &addr6.sin6_addr) == 1) {
|
||||||
if (usrsctp_connect(mMasterSocket, reinterpret_cast<struct sockaddr *>(&addr6), sizeof(struct sockaddr_in6)) < 0) {
|
if (usrsctp_connect(mMasterSocket, reinterpret_cast<struct sockaddr *>(&addr6), sizeof(struct sockaddr_in6)) < 0) {
|
||||||
LOG(("*** Failed userspace_connect"));
|
LOG(("*** Failed userspace_connect"));
|
||||||
|
|
@ -1555,7 +1555,7 @@ void
|
||||||
DataChannelConnection::HandlePeerAddressChangeEvent(const struct sctp_paddr_change *spc)
|
DataChannelConnection::HandlePeerAddressChangeEvent(const struct sctp_paddr_change *spc)
|
||||||
{
|
{
|
||||||
const char *addr = "";
|
const char *addr = "";
|
||||||
#if !defined(__Userspace_os_Windows)
|
#if !defined(_WIN32)
|
||||||
char addr_buf[INET6_ADDRSTRLEN];
|
char addr_buf[INET6_ADDRSTRLEN];
|
||||||
struct sockaddr_in *sin;
|
struct sockaddr_in *sin;
|
||||||
struct sockaddr_in6 *sin6;
|
struct sockaddr_in6 *sin6;
|
||||||
|
|
@ -1563,13 +1563,13 @@ DataChannelConnection::HandlePeerAddressChangeEvent(const struct sctp_paddr_chan
|
||||||
|
|
||||||
switch (spc->spc_aaddr.ss_family) {
|
switch (spc->spc_aaddr.ss_family) {
|
||||||
case AF_INET:
|
case AF_INET:
|
||||||
#if !defined(__Userspace_os_Windows)
|
#if !defined(_WIN32)
|
||||||
sin = (struct sockaddr_in *)&spc->spc_aaddr;
|
sin = (struct sockaddr_in *)&spc->spc_aaddr;
|
||||||
addr = inet_ntop(AF_INET, &sin->sin_addr, addr_buf, INET6_ADDRSTRLEN);
|
addr = inet_ntop(AF_INET, &sin->sin_addr, addr_buf, INET6_ADDRSTRLEN);
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case AF_INET6:
|
case AF_INET6:
|
||||||
#if !defined(__Userspace_os_Windows)
|
#if !defined(_WIN32)
|
||||||
sin6 = (struct sockaddr_in6 *)&spc->spc_aaddr;
|
sin6 = (struct sockaddr_in6 *)&spc->spc_aaddr;
|
||||||
addr = inet_ntop(AF_INET6, &sin6->sin6_addr, addr_buf, INET6_ADDRSTRLEN);
|
addr = inet_ntop(AF_INET6, &sin6->sin6_addr, addr_buf, INET6_ADDRSTRLEN);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,9 @@
|
||||||
This code is imported from the usrsctp library via netwerk/sctp/update_sctp.sh.
|
This code is imported from the usrsctp library. The current code is version
|
||||||
|
8e12cd9e01fc94d2e84ea1afa351c845966e116e from git.
|
||||||
|
|
||||||
The project is accessed via:
|
The project is accessed on GitHub at the following location:
|
||||||
|
|
||||||
svn co --username your.username https://sctp-refimpl.googlecode.com/svn/trunk sctpSVN
|
https://github.com/sctplab/usrsctp
|
||||||
|
|
||||||
If you just want a read-only copy use
|
|
||||||
|
|
||||||
svn co http://sctp-refimpl.googlecode.com/svn/trunk sctpSVN
|
|
||||||
|
|
||||||
The usrsctp library is based on the FreeBSD kernel implementation, and the
|
The usrsctp library is based on the FreeBSD kernel implementation, and the
|
||||||
userspace implementation was largely done my Michael Tuexen and Irene
|
userspace implementation was largely done my Michael Tuexen and Irene
|
||||||
|
|
|
||||||
|
|
@ -1,33 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
#
|
|
||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
||||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
||||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
||||||
|
|
||||||
# assume $1 is the directory with a SVN checkout of the libsctp source
|
|
||||||
#
|
|
||||||
# sctp usrlib source is available (via svn) at:
|
|
||||||
# svn co https://sctp-refimpl.googlecode.com/svn/trunk sctpSVN
|
|
||||||
#
|
|
||||||
# also assumes we've made *NO* changes to the SCTP sources! If we do, we have to merge by
|
|
||||||
# hand after this process, or use a more complex one.
|
|
||||||
#
|
|
||||||
# For example, one could update an sctp library import head, and merge back to default. Or keep a
|
|
||||||
# separate repo with this in it, and pull from there to m-c and merge.
|
|
||||||
if [ "$1" ] ; then
|
|
||||||
export date=`date`
|
|
||||||
export revision=`(cd $1; svnversion -n)`
|
|
||||||
|
|
||||||
cp $1/KERN/usrsctp/usrsctplib/*.c $1/KERN/usrsctp/usrsctplib/*.h netwerk/sctp/src
|
|
||||||
cp $1/KERN/usrsctp/usrsctplib/netinet/*.c $1/KERN/usrsctp/usrsctplib/netinet/*.h netwerk/sctp/src/netinet
|
|
||||||
cp $1/KERN/usrsctp/usrsctplib/netinet6/*.c $1/KERN/usrsctp/usrsctplib/netinet6/*.h netwerk/sctp/src/netinet6
|
|
||||||
|
|
||||||
hg addremove netwerk/sctp/src --include "**.c" --include "**.h" --similarity 90
|
|
||||||
|
|
||||||
echo "sctp updated to version $revision from SVN on $date" >> netwerk/sctp/sctp_update.log
|
|
||||||
echo "sctp updated to version $revision from SVN on $date"
|
|
||||||
echo "WARNING: reapply any local patches!"
|
|
||||||
else
|
|
||||||
echo "usage: $0 path_to_sctpSVN_directory"
|
|
||||||
echo "run from the root of your m-c clone"
|
|
||||||
fi
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue