scrcpy/app/src/util
Romain Vimont c070723bc8 Add sc_vector
Adapt vlc_vector [1], that I initially wrote while implementing the VLC
playlist [2].

Change the implementation to use "statement expressions" [3], which are
forbidden in VLC because "non-standard", but:
 - they are supported by gcc and clang;
 - they are already used in the scrcpy codebase;
 - they avoid implementation hacks (VLC_VECTOR_FAILFLAG_);
 - they allow a better API (sc_vector_index_of() may return the result
   without an output parameter).

PR #3035 <https://github.com/Genymobile/scrcpy/pull/3035>

[1]: 0857947aba/include/vlc_vector.h
[2]: https://blog.rom1v.com/2019/05/a-new-core-playlist-for-vlc-4
[3]: https://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html
2022-02-20 23:59:35 +01:00
..
acksync.c Add acksync helper to wait for acks 2021-11-23 21:15:05 +01:00
acksync.h Wait SET_CLIPBOARD ack before Ctrl+v via HID 2021-11-24 09:41:21 +01:00
buffer_util.h Rename buffer util functions with sc_ prefix 2022-02-12 09:12:46 +01:00
cbuf.h Define feature test macros in common.h 2021-01-17 14:08:48 +01:00
file.c Add OutOfMemory log helper 2021-11-24 22:06:49 +01:00
file.h Improve file API 2021-11-12 22:44:37 +01:00
intmap.c Use static maps to convert input events 2021-11-29 21:15:07 +01:00
intmap.h Use static maps to convert input events 2021-11-29 21:15:07 +01:00
intr.c Add OutOfMemory log helper 2021-11-24 22:06:49 +01:00
intr.h Rename SC_INVALID_SOCKET to SC_SOCKET_NONE 2021-11-14 01:22:22 +01:00
log.c Add generic LOG() macro with level parameter 2022-02-09 09:53:11 +01:00
log.h Add generic LOG() macro with level parameter 2022-02-09 09:53:11 +01:00
net.c Remove LOGC() 2022-02-09 09:52:15 +01:00
net.h Add function to parse IPv4 addresses 2021-11-21 22:37:37 +01:00
net_intr.c Rename SC_INVALID_SOCKET to SC_SOCKET_NONE 2021-11-14 01:22:22 +01:00
net_intr.h Add interruptor utilities 2021-11-13 22:54:18 +01:00
process.c Rename scrcpy threads 2021-12-09 21:32:11 +01:00
process.h Move SC_PRIsizet to compat.h 2022-02-09 09:53:19 +01:00
process_intr.c Make intr optional for adb commands 2022-02-20 17:39:36 +01:00
process_intr.h Check process success locally for adb commands 2021-11-25 22:22:34 +01:00
queue.h Rename queue to sc_queue 2021-07-14 00:35:10 +02:00
str.c Remove confusing sc_str_truncate() 2022-02-06 14:39:51 +01:00
str.h Remove confusing sc_str_truncate() 2022-02-06 14:39:51 +01:00
strbuf.c Add OutOfMemory log helper 2021-11-24 22:06:49 +01:00
strbuf.h Add string buffer util 2021-11-11 14:55:52 +01:00
term.c Add util function to get terminal size 2021-11-11 15:22:39 +01:00
term.h Add util function to get terminal size 2021-11-11 15:22:39 +01:00
thread.c Enforce deadline reached on timeout 2022-02-16 18:29:30 +01:00
thread.h Replace delay by deadline in timedwait() 2021-07-14 14:22:32 +02:00
tick.c Use timers with microsecond precision 2021-12-08 23:45:45 +01:00
tick.h Use timers with microsecond precision 2021-12-08 23:45:45 +01:00
vector.h Add sc_vector 2022-02-20 23:59:35 +01:00