summaryrefslogtreecommitdiff
path: root/other
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-09-19 21:49:04 +0100
committeriphydf <iphydf@users.noreply.github.com>2016-09-19 21:53:40 +0100
commit51d18236c8effffb14ffe6c5e3f738c1ceb1ae25 (patch)
treee18ff983aba08aee690cc001f7cf4928a94f80d3 /other
parent67ac9138ab773728f0a8d1093aaa80d40a9f9efc (diff)
Revert "Make ToxAV stateless"
This reverts commit 21f8db12c45bd56293262cd4abfb73cd9abec821. It is currently broken. Incoming call callbacks are not invoked, and instead the client goes offline immediately.
Diffstat (limited to 'other')
-rw-r--r--other/apidsl/tox.in.h4
-rw-r--r--other/apidsl/toxav.in.h12
-rw-r--r--other/toktok-rebase48
3 files changed, 6 insertions, 58 deletions
diff --git a/other/apidsl/tox.in.h b/other/apidsl/tox.in.h
index b35dc38a..f3a06623 100644
--- a/other/apidsl/tox.in.h
+++ b/other/apidsl/tox.in.h
@@ -1089,10 +1089,6 @@ namespace friend {
1089 * function, this client will appear offline to the friend and no communication 1089 * function, this client will appear offline to the friend and no communication
1090 * can occur between the two. 1090 * can occur between the two.
1091 * 1091 *
1092 * WARNING, calling ${friend.delete} while there's an active ToxAV call will
1093 * result in undefined behavior. It's the client's responsibility to end all
1094 * ToxAV calls before deleting a friend.
1095 *
1096 * @param friend_number Friend number for the friend to be deleted. 1092 * @param friend_number Friend number for the friend to be deleted.
1097 * 1093 *
1098 * @return true on success. 1094 * @return true on success.
diff --git a/other/apidsl/toxav.in.h b/other/apidsl/toxav.in.h
index 67b670dc..8a7d5358 100644
--- a/other/apidsl/toxav.in.h
+++ b/other/apidsl/toxav.in.h
@@ -216,7 +216,7 @@ const uint32_t iteration_interval();
216 * toxav_iteration_interval() milliseconds. It is best called in the separate 216 * toxav_iteration_interval() milliseconds. It is best called in the separate
217 * thread from tox_iterate. 217 * thread from tox_iterate.
218 */ 218 */
219void iterate(any userdata); 219void iterate();
220 220
221 221
222/******************************************************************************* 222/*******************************************************************************
@@ -269,7 +269,7 @@ bool call(uint32_t friend_number, uint32_t audio_bit_rate, uint32_t video_bit_ra
269 INVALID_BIT_RATE, 269 INVALID_BIT_RATE,
270} 270}
271 271
272event call const { 272event call {
273 /** 273 /**
274 * The function type for the ${event call} callback. 274 * The function type for the ${event call} callback.
275 * 275 *
@@ -359,7 +359,7 @@ bitmask FRIEND_CALL_STATE {
359 ACCEPTING_V, 359 ACCEPTING_V,
360} 360}
361 361
362event call_state const { 362event call_state {
363 /** 363 /**
364 * The function type for the ${event call_state} callback. 364 * The function type for the ${event call_state} callback.
365 * 365 *
@@ -490,7 +490,7 @@ namespace bit_rate {
490 FRIEND_NOT_IN_CALL, 490 FRIEND_NOT_IN_CALL,
491 } 491 }
492 492
493 event status const { 493 event status {
494 /** 494 /**
495 * The function type for the ${event status} callback. The event is triggered 495 * The function type for the ${event status} callback. The event is triggered
496 * when the network becomes too saturated for current bit rates at which 496 * when the network becomes too saturated for current bit rates at which
@@ -601,7 +601,7 @@ namespace video {
601 601
602 602
603namespace audio { 603namespace audio {
604 event receive_frame const { 604 event receive_frame {
605 /** 605 /**
606 * The function type for the ${event receive_frame} callback. The callback can be 606 * The function type for the ${event receive_frame} callback. The callback can be
607 * called multiple times per single iteration depending on the amount of queued 607 * called multiple times per single iteration depending on the amount of queued
@@ -620,7 +620,7 @@ namespace audio {
620} 620}
621 621
622namespace video { 622namespace video {
623 event receive_frame const { 623 event receive_frame {
624 /** 624 /**
625 * The function type for the ${event receive_frame} callback. 625 * The function type for the ${event receive_frame} callback.
626 * 626 *
diff --git a/other/toktok-rebase b/other/toktok-rebase
deleted file mode 100644
index c6f9f38a..00000000
--- a/other/toktok-rebase
+++ /dev/null
@@ -1,48 +0,0 @@
1#!/usr/bin/zsh
2
3if [[ $1 == '-v' ]]; then
4 set -u -x
5fi
6
7PREHEAD=`git rev-parse --abbrev-ref HEAD`
8TRGT=`git show-ref toktok/master --hash`
9EXCLD=`git branch --contains $TRGT`
10
11FAILED=()
12SUCCESS=()
13EXCLUDED=()
14
15echo "Auto Rebaseing!"
16git fetch --all > /dev/null 2>&1
17
18if [[ $1 == '-v' ]]; then
19 git branch --no-merged=toktok/master
20fi
21
22for i in `git branch --no-merged=toktok/master`; do
23 each=`echo $i | sed 's/*//'`
24
25 # quick exclude
26 if [[ ${EXCLD[(i)${each}]} -le ${#EXCLD} ]]; then
27 EXCLUDED+=$each
28 continue
29 fi
30
31 git checkout $each > /dev/null 2>&1
32 git rebase toktok/master > /dev/null 2>&1
33 if [[ $? != 0 ]]; then
34 git rebase --abort > /dev/null 2>&1
35 FAILED+=($each)
36 else
37 SUCCESS+=($each)
38 fi
39done
40
41echo "Was able to rebase (Don't forget to git push --force)"
42echo "\t $SUCCESS"
43echo "These branches failed"
44echo "\t $FAILED"
45echo "These branches were skipped without changes"
46echo "\t $EXCLUDED"
47
48git checkout $PREHEAD > /dev/null 2>&1