summaryrefslogtreecommitdiff
path: root/toxav
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-07-08 08:43:42 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-07-09 21:04:50 +0000
commitabc17b0f8997ab07ae66130edd5dc8c43e72c886 (patch)
tree88056839c808a9f7f8c58f55ebe273aa7b5facdb /toxav
parent4e21c065517d6e125cb1d1b9a13e886b3046b0d8 (diff)
Factor out time keeping code into its own module: mono_time.c.
It turns out, `unix_time` is also monotonic, and is used as such, so I've renamed the new functions to `mono_time_*`. 2018-07-08: ``` 00:01 <@irungentoo> the idea used to be that the unix_time() function could go backward in time but I think I might have started using it like if it could not after I changed it so that it would never go back in time ```
Diffstat (limited to 'toxav')
-rw-r--r--toxav/audio.c1
-rw-r--r--toxav/bwcontroller.c1
-rw-r--r--toxav/groupav.c1
-rw-r--r--toxav/rtp.c1
-rw-r--r--toxav/toxav.c1
-rw-r--r--toxav/video.c1
6 files changed, 6 insertions, 0 deletions
diff --git a/toxav/audio.c b/toxav/audio.c
index 75d3d477..6889ef09 100644
--- a/toxav/audio.c
+++ b/toxav/audio.c
@@ -29,6 +29,7 @@
29#include "rtp.h" 29#include "rtp.h"
30 30
31#include "../toxcore/logger.h" 31#include "../toxcore/logger.h"
32#include "../toxcore/mono_time.h"
32 33
33static struct JitterBuffer *jbuf_new(uint32_t capacity); 34static struct JitterBuffer *jbuf_new(uint32_t capacity);
34static void jbuf_clear(struct JitterBuffer *q); 35static void jbuf_clear(struct JitterBuffer *q);
diff --git a/toxav/bwcontroller.c b/toxav/bwcontroller.c
index 2d7dd659..05fac704 100644
--- a/toxav/bwcontroller.c
+++ b/toxav/bwcontroller.c
@@ -31,6 +31,7 @@
31#include "ring_buffer.h" 31#include "ring_buffer.h"
32 32
33#include "../toxcore/logger.h" 33#include "../toxcore/logger.h"
34#include "../toxcore/mono_time.h"
34#include "../toxcore/util.h" 35#include "../toxcore/util.h"
35 36
36#define BWC_PACKET_ID 196 37#define BWC_PACKET_ID 196
diff --git a/toxav/groupav.c b/toxav/groupav.c
index 8936801a..15fdd534 100644
--- a/toxav/groupav.c
+++ b/toxav/groupav.c
@@ -27,6 +27,7 @@
27#include <string.h> 27#include <string.h>
28 28
29#include "../toxcore/logger.h" 29#include "../toxcore/logger.h"
30#include "../toxcore/mono_time.h"
30#include "../toxcore/util.h" 31#include "../toxcore/util.h"
31 32
32#define GROUP_JBUF_SIZE 6 33#define GROUP_JBUF_SIZE 6
diff --git a/toxav/rtp.c b/toxav/rtp.c
index 1e178720..3d563a1f 100644
--- a/toxav/rtp.c
+++ b/toxav/rtp.c
@@ -32,6 +32,7 @@
32 32
33#include "../toxcore/Messenger.h" 33#include "../toxcore/Messenger.h"
34#include "../toxcore/logger.h" 34#include "../toxcore/logger.h"
35#include "../toxcore/mono_time.h"
35#include "../toxcore/util.h" 36#include "../toxcore/util.h"
36 37
37enum { 38enum {
diff --git a/toxav/toxav.c b/toxav/toxav.c
index 36bf9cc2..5abe1130 100644
--- a/toxav/toxav.c
+++ b/toxav/toxav.c
@@ -28,6 +28,7 @@
28 28
29#include "../toxcore/Messenger.h" 29#include "../toxcore/Messenger.h"
30#include "../toxcore/logger.h" 30#include "../toxcore/logger.h"
31#include "../toxcore/mono_time.h"
31#include "../toxcore/util.h" 32#include "../toxcore/util.h"
32 33
33#include <assert.h> 34#include <assert.h>
diff --git a/toxav/video.c b/toxav/video.c
index 1126b8e6..5145c29c 100644
--- a/toxav/video.c
+++ b/toxav/video.c
@@ -32,6 +32,7 @@
32#include "rtp.h" 32#include "rtp.h"
33 33
34#include "../toxcore/logger.h" 34#include "../toxcore/logger.h"
35#include "../toxcore/mono_time.h"
35#include "../toxcore/network.h" 36#include "../toxcore/network.h"
36 37
37/** 38/**