mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Moved event to toxav
This commit is contained in:
parent
b47ae4f595
commit
272ed7e6db
16
configure.ac
16
configure.ac
@ -349,12 +349,16 @@ AC_C_BIGENDIAN
|
|||||||
AC_FUNC_FORK
|
AC_FUNC_FORK
|
||||||
AC_CHECK_FUNCS([gettimeofday memset socket strchr malloc])
|
AC_CHECK_FUNCS([gettimeofday memset socket strchr malloc])
|
||||||
|
|
||||||
AX_PTHREAD(
|
if test "x$BUILD_AV" = "xyes"; then
|
||||||
[],
|
AX_PTHREAD(
|
||||||
[
|
[],
|
||||||
AC_MSG_ERROR([Error: required pthread library not found])
|
[
|
||||||
]
|
AC_MSG_WARN([disabling AV support: required pthread library not found])
|
||||||
)
|
BUILD_AV="no"
|
||||||
|
BUILD_PHONE="no"
|
||||||
|
]
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
if test "x$BUILD_PHONE" = "xyes"; then
|
if test "x$BUILD_PHONE" = "xyes"; then
|
||||||
PKG_CHECK_MODULES([AVFORMAT], [libavformat],
|
PKG_CHECK_MODULES([AVFORMAT], [libavformat],
|
||||||
|
@ -4,7 +4,9 @@ lib_LTLIBRARIES += libtoxav.la
|
|||||||
libtoxav_la_include_HEADERS = ../toxav/toxav.h
|
libtoxav_la_include_HEADERS = ../toxav/toxav.h
|
||||||
libtoxav_la_includedir = $(includedir)/tox
|
libtoxav_la_includedir = $(includedir)/tox
|
||||||
|
|
||||||
libtoxav_la_SOURCES = ../toxav/rtp.h \
|
libtoxav_la_SOURCES = ../toxav/event.h \
|
||||||
|
../toxav/event.c \
|
||||||
|
../toxav/rtp.h \
|
||||||
../toxav/rtp.c \
|
../toxav/rtp.c \
|
||||||
../toxav/msi.h \
|
../toxav/msi.h \
|
||||||
../toxav/msi.c \
|
../toxav/msi.c \
|
||||||
@ -18,7 +20,8 @@ libtoxav_la_CFLAGS = -I../toxcore \
|
|||||||
-I../toxav \
|
-I../toxav \
|
||||||
$(NACL_CFLAGS) \
|
$(NACL_CFLAGS) \
|
||||||
$(OPUS_CFLAGS) \
|
$(OPUS_CFLAGS) \
|
||||||
$(VPX_CFLAGS)
|
$(VPX_CFLAGS) \
|
||||||
|
$(PTHREAD_CFLAGS)
|
||||||
|
|
||||||
libtoxav_la_LDFLAGS = $(TOXAV_LT_LDFLAGS) \
|
libtoxav_la_LDFLAGS = $(TOXAV_LT_LDFLAGS) \
|
||||||
$(NACL_LDFLAGS) \
|
$(NACL_LDFLAGS) \
|
||||||
@ -26,7 +29,8 @@ libtoxav_la_LDFLAGS = $(TOXAV_LT_LDFLAGS) \
|
|||||||
|
|
||||||
libtoxav_la_LIBS = $(NACL_LIBS) \
|
libtoxav_la_LIBS = $(NACL_LIBS) \
|
||||||
$(OPUS_LIBS) \
|
$(OPUS_LIBS) \
|
||||||
$(VPX_LIBS)
|
$(VPX_LIBS) \
|
||||||
|
$(PTHREAD_LIBS)
|
||||||
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
@ -63,7 +67,8 @@ phone_LDADD = libtoxav.la \
|
|||||||
$(SDL_LIBS) \
|
$(SDL_LIBS) \
|
||||||
$(OPENAL_LIBS) \
|
$(OPENAL_LIBS) \
|
||||||
$(OPUS_LIBS) \
|
$(OPUS_LIBS) \
|
||||||
$(VPX_LIBS)
|
$(VPX_LIBS)\
|
||||||
|
$(PTHREAD_LIBS)
|
||||||
|
|
||||||
|
|
||||||
endif
|
endif
|
@ -18,8 +18,7 @@
|
|||||||
* along with Tox. If not, see <http://www.gnu.org/licenses/>.
|
* along with Tox. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* Report bugs/suggestions to me ( mannol ) at either #tox-dev @ freenode.net:6667 or
|
* Report bugs/suggestions at #tox-dev @ freenode.net:6667
|
||||||
* my email: eniz_vukovic@hotmail.com
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@ -30,8 +29,8 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "event.h"
|
#include "event.h"
|
||||||
|
|
||||||
#include "util.h"
|
#include "../toxcore/util.h"
|
||||||
#include "network.h"
|
#include "../toxcore/network.h"
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
|
|
@ -18,8 +18,7 @@
|
|||||||
* along with Tox. If not, see <http://www.gnu.org/licenses/>.
|
* along with Tox. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* Report bugs/suggestions to me ( mannol ) at either #tox-dev @ freenode.net:6667 or
|
* Report bugs/suggestions at #tox-dev @ freenode.net:6667
|
||||||
* my email: eniz_vukovic@hotmail.com
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
@ -1,27 +1,26 @@
|
|||||||
/* AV_codec.c
|
/** media.c
|
||||||
// *
|
*
|
||||||
* Audio and video codec intitialisation, encoding/decoding and playback
|
* Audio and video codec intitialization, encoding/decoding and playback
|
||||||
*
|
*
|
||||||
* Copyright (C) 2013 Tox project All Rights Reserved.
|
* Copyright (C) 2013 Tox project All Rights Reserved.
|
||||||
*
|
*
|
||||||
* This file is part of Tox.
|
* This file is part of Tox.
|
||||||
*
|
*
|
||||||
* Tox is free software: you can redistribute it and/or modify
|
* Tox is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
* (at your option) any later version.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* Tox is distributed in the hope that it will be useful,
|
* Tox is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with Tox. If not, see <http://www.gnu.org/licenses/>.
|
* along with Tox. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
@ -1,27 +1,26 @@
|
|||||||
/* AV_codec.h
|
/** media.h
|
||||||
|
*
|
||||||
|
* Audio and video codec intitialization, encoding/decoding and playback
|
||||||
*
|
*
|
||||||
* Audio and video codec intitialisation, encoding/decoding and playback
|
* Copyright (C) 2013 Tox project All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2013 Tox project All Rights Reserved.
|
* This file is part of Tox.
|
||||||
*
|
*
|
||||||
* This file is part of Tox.
|
* Tox is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* Tox is free software: you can redistribute it and/or modify
|
* Tox is distributed in the hope that it will be useful,
|
||||||
* it under the terms of the GNU General Public License as published by
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
* (at your option) any later version.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* Tox is distributed in the hope that it will be useful,
|
* You should have received a copy of the GNU General Public License
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* along with Tox. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with Tox. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------------*/
|
|
||||||
#ifndef _AVCODEC_H_
|
#ifndef _AVCODEC_H_
|
||||||
#define _AVCODEC_H_
|
#define _AVCODEC_H_
|
||||||
|
|
||||||
|
@ -18,8 +18,7 @@
|
|||||||
* along with Tox. If not, see <http://www.gnu.org/licenses/>.
|
* along with Tox. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* Report bugs/suggestions to me ( mannol ) at either #tox-dev @ freenode.net:6667 or
|
* Report bugs/suggestions at #tox-dev @ freenode.net:6667
|
||||||
* my email: eniz_vukovic@hotmail.com
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@ -30,9 +29,9 @@
|
|||||||
#define _BSD_SOURCE
|
#define _BSD_SOURCE
|
||||||
|
|
||||||
#include "msi.h"
|
#include "msi.h"
|
||||||
|
#include "event.h"
|
||||||
#include "../toxcore/util.h"
|
#include "../toxcore/util.h"
|
||||||
#include "../toxcore/network.h"
|
#include "../toxcore/network.h"
|
||||||
#include "../toxcore/event.h"
|
|
||||||
#include "../toxcore/Messenger.h"
|
#include "../toxcore/Messenger.h"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
@ -18,8 +18,7 @@
|
|||||||
* along with Tox. If not, see <http://www.gnu.org/licenses/>.
|
* along with Tox. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* Report bugs/suggestions to me ( mannol ) at either #tox-dev @ freenode.net:6667 or
|
* Report bugs/suggestions at #tox-dev @ freenode.net:6667
|
||||||
* my email: eniz_vukovic@hotmail.com
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __TOXMSI
|
#ifndef __TOXMSI
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
|
|
||||||
//#include "media.h"
|
//#include "media.h"
|
||||||
#include "toxav.h"
|
#include "toxav.h"
|
||||||
#include "../toxcore/event.h"
|
#include "event.h"
|
||||||
#include "../toxcore/tox.h"
|
#include "../toxcore/tox.h"
|
||||||
|
|
||||||
#ifdef TOX_FFMPEG
|
#ifdef TOX_FFMPEG
|
||||||
@ -904,6 +904,7 @@ av_session_t* av_init_session()
|
|||||||
|
|
||||||
char dev[2]; char* left;
|
char dev[2]; char* left;
|
||||||
char* warned_ = fgets(dev, 2, stdin);
|
char* warned_ = fgets(dev, 2, stdin);
|
||||||
|
(void)warned_;
|
||||||
long selection = strtol(dev, &left, 10);
|
long selection = strtol(dev, &left, 10);
|
||||||
|
|
||||||
if ( *left ) {
|
if ( *left ) {
|
||||||
|
@ -18,8 +18,7 @@
|
|||||||
* along with Tox. If not, see <http://www.gnu.org/licenses/>.
|
* along with Tox. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* Report bugs/suggestions to me ( mannol ) at either #tox-dev @ freenode.net:6667 or
|
* Report bugs/suggestions at #tox-dev @ freenode.net:6667
|
||||||
* my email: eniz_vukovic@hotmail.com
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
|
@ -18,8 +18,7 @@
|
|||||||
* along with Tox. If not, see <http://www.gnu.org/licenses/>.
|
* along with Tox. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* Report bugs/suggestions to me ( mannol ) at either #tox-dev @ freenode.net:6667 or
|
* Report bugs/suggestions at #tox-dev @ freenode.net:6667
|
||||||
* my email: eniz_vukovic@hotmail.com
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __TOXRTP
|
#ifndef __TOXRTP
|
||||||
|
@ -18,8 +18,7 @@
|
|||||||
* along with Tox. If not, see <http://www.gnu.org/licenses/>.
|
* along with Tox. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* Report bugs/suggestions at either #tox-dev @ freenode.net:6667 or
|
* Report bugs/suggestions at #tox-dev @ freenode.net:6667
|
||||||
* my email: eniz_vukovic@hotmail.com
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
|
@ -18,8 +18,7 @@
|
|||||||
* along with Tox. If not, see <http://www.gnu.org/licenses/>.
|
* along with Tox. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* Report bugs/suggestions to me ( mannol ) at either #tox-dev @ freenode.net:6667 or
|
* Report bugs/suggestions at #tox-dev @ freenode.net:6667
|
||||||
* my email: eniz_vukovic@hotmail.com
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -29,8 +29,6 @@ libtoxcore_la_SOURCES = ../toxcore/DHT.h \
|
|||||||
../toxcore/group_chats.c \
|
../toxcore/group_chats.c \
|
||||||
../toxcore/assoc.h \
|
../toxcore/assoc.h \
|
||||||
../toxcore/assoc.c \
|
../toxcore/assoc.c \
|
||||||
../toxcore/event.h \
|
|
||||||
../toxcore/event.c \
|
|
||||||
../toxcore/onion.h \
|
../toxcore/onion.h \
|
||||||
../toxcore/onion.c \
|
../toxcore/onion.c \
|
||||||
../toxcore/onion_announce.h \
|
../toxcore/onion_announce.h \
|
||||||
@ -42,8 +40,7 @@ libtoxcore_la_SOURCES = ../toxcore/DHT.h \
|
|||||||
libtoxcore_la_CFLAGS = -I$(top_srcdir) \
|
libtoxcore_la_CFLAGS = -I$(top_srcdir) \
|
||||||
-I$(top_srcdir)/toxcore \
|
-I$(top_srcdir)/toxcore \
|
||||||
$(LIBSODIUM_CFLAGS) \
|
$(LIBSODIUM_CFLAGS) \
|
||||||
$(NACL_CFLAGS) \
|
$(NACL_CFLAGS)
|
||||||
$(PTHREAD_CFLAGS)
|
|
||||||
|
|
||||||
libtoxcore_la_LDFLAGS = $(TOXCORE_LT_LDFLAGS) \
|
libtoxcore_la_LDFLAGS = $(TOXCORE_LT_LDFLAGS) \
|
||||||
$(EXTRA_LT_LDFLAGS) \
|
$(EXTRA_LT_LDFLAGS) \
|
||||||
@ -52,5 +49,4 @@ libtoxcore_la_LDFLAGS = $(TOXCORE_LT_LDFLAGS) \
|
|||||||
$(WINSOCK2_LIBS)
|
$(WINSOCK2_LIBS)
|
||||||
|
|
||||||
libtoxcore_la_LIBS = $(LIBSODIUM_LIBS) \
|
libtoxcore_la_LIBS = $(LIBSODIUM_LIBS) \
|
||||||
$(NAC_LIBS) \
|
$(NAC_LIBS)
|
||||||
$(PTHREAD_LIBS)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user