Moved event to toxav

This commit is contained in:
mannol 2014-02-15 22:36:15 +01:00
parent b47ae4f595
commit 272ed7e6db
14 changed files with 64 additions and 68 deletions

View File

@ -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])
if test "x$BUILD_AV" = "xyes"; then
AX_PTHREAD( 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],

View File

@ -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

View File

@ -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

View File

@ -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
*/ */

View File

@ -1,6 +1,6 @@
/* 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.
* *
@ -21,7 +21,6 @@
* *
*/ */
/*----------------------------------------------------------------------------------*/
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"

View File

@ -1,6 +1,6 @@
/* AV_codec.h /** media.h
* *
* 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.
* *
@ -21,7 +21,6 @@
* *
*/ */
/*----------------------------------------------------------------------------------*/
#ifndef _AVCODEC_H_ #ifndef _AVCODEC_H_
#define _AVCODEC_H_ #define _AVCODEC_H_

View File

@ -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>

View File

@ -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

View File

@ -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 ) {

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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
*/ */

View File

@ -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)