telegram/TMessagesProj/jni/voip/webrtc/api
2025-11-22 14:04:28 +01:00
..
adaptation Repo created 2025-11-22 14:04:28 +01:00
audio Repo created 2025-11-22 14:04:28 +01:00
audio_codecs Repo created 2025-11-22 14:04:28 +01:00
call Repo created 2025-11-22 14:04:28 +01:00
crypto Repo created 2025-11-22 14:04:28 +01:00
environment Repo created 2025-11-22 14:04:28 +01:00
g3doc Repo created 2025-11-22 14:04:28 +01:00
metronome Repo created 2025-11-22 14:04:28 +01:00
neteq Repo created 2025-11-22 14:04:28 +01:00
numerics Repo created 2025-11-22 14:04:28 +01:00
rtc_event_log Repo created 2025-11-22 14:04:28 +01:00
stats Repo created 2025-11-22 14:04:28 +01:00
task_queue Repo created 2025-11-22 14:04:28 +01:00
test Repo created 2025-11-22 14:04:28 +01:00
transport Repo created 2025-11-22 14:04:28 +01:00
units Repo created 2025-11-22 14:04:28 +01:00
video Repo created 2025-11-22 14:04:28 +01:00
video_codecs Repo created 2025-11-22 14:04:28 +01:00
voip Repo created 2025-11-22 14:04:28 +01:00
array_view.h Repo created 2025-11-22 14:04:28 +01:00
array_view_unittest.cc Repo created 2025-11-22 14:04:28 +01:00
async_dns_resolver.h Repo created 2025-11-22 14:04:28 +01:00
audio_options.cc Repo created 2025-11-22 14:04:28 +01:00
audio_options.h Repo created 2025-11-22 14:04:28 +01:00
candidate.cc Repo created 2025-11-22 14:04:28 +01:00
candidate.h Repo created 2025-11-22 14:04:28 +01:00
candidate_unittest.cc Repo created 2025-11-22 14:04:28 +01:00
create_peerconnection_factory.cc Repo created 2025-11-22 14:04:28 +01:00
create_peerconnection_factory.h Repo created 2025-11-22 14:04:28 +01:00
data_channel_interface.cc Repo created 2025-11-22 14:04:28 +01:00
data_channel_interface.h Repo created 2025-11-22 14:04:28 +01:00
dtls_transport_interface.cc Repo created 2025-11-22 14:04:28 +01:00
dtls_transport_interface.h Repo created 2025-11-22 14:04:28 +01:00
dtmf_sender_interface.h Repo created 2025-11-22 14:04:28 +01:00
enable_media.cc Repo created 2025-11-22 14:04:28 +01:00
enable_media.h Repo created 2025-11-22 14:04:28 +01:00
enable_media_with_defaults.cc Repo created 2025-11-22 14:04:28 +01:00
enable_media_with_defaults.h Repo created 2025-11-22 14:04:28 +01:00
fec_controller.h Repo created 2025-11-22 14:04:28 +01:00
fec_controller_override.h Repo created 2025-11-22 14:04:28 +01:00
field_trials.cc Repo created 2025-11-22 14:04:28 +01:00
field_trials.h Repo created 2025-11-22 14:04:28 +01:00
field_trials_registry.cc Repo created 2025-11-22 14:04:28 +01:00
field_trials_registry.h Repo created 2025-11-22 14:04:28 +01:00
field_trials_unittest.cc Repo created 2025-11-22 14:04:28 +01:00
field_trials_view.h Repo created 2025-11-22 14:04:28 +01:00
frame_transformer_factory.cc Repo created 2025-11-22 14:04:28 +01:00
frame_transformer_factory.h Repo created 2025-11-22 14:04:28 +01:00
frame_transformer_interface.h Repo created 2025-11-22 14:04:28 +01:00
function_view.h Repo created 2025-11-22 14:04:28 +01:00
function_view_unittest.cc Repo created 2025-11-22 14:04:28 +01:00
ice_transport_factory.cc Repo created 2025-11-22 14:04:28 +01:00
ice_transport_factory.h Repo created 2025-11-22 14:04:28 +01:00
ice_transport_interface.h Repo created 2025-11-22 14:04:28 +01:00
jsep.cc Repo created 2025-11-22 14:04:28 +01:00
jsep.h Repo created 2025-11-22 14:04:28 +01:00
jsep_ice_candidate.cc Repo created 2025-11-22 14:04:28 +01:00
jsep_ice_candidate.h Repo created 2025-11-22 14:04:28 +01:00
jsep_session_description.h Repo created 2025-11-22 14:04:28 +01:00
legacy_stats_types.cc Repo created 2025-11-22 14:04:28 +01:00
legacy_stats_types.h Repo created 2025-11-22 14:04:28 +01:00
location.h Repo created 2025-11-22 14:04:28 +01:00
make_ref_counted.h Repo created 2025-11-22 14:04:28 +01:00
media_stream_interface.cc Repo created 2025-11-22 14:04:28 +01:00
media_stream_interface.h Repo created 2025-11-22 14:04:28 +01:00
media_stream_track.h Repo created 2025-11-22 14:04:28 +01:00
media_types.cc Repo created 2025-11-22 14:04:28 +01:00
media_types.h Repo created 2025-11-22 14:04:28 +01:00
network_state_predictor.h Repo created 2025-11-22 14:04:28 +01:00
notifier.h Repo created 2025-11-22 14:04:28 +01:00
OWNERS Repo created 2025-11-22 14:04:28 +01:00
packet_socket_factory.h Repo created 2025-11-22 14:04:28 +01:00
peer_connection_interface.cc Repo created 2025-11-22 14:04:28 +01:00
peer_connection_interface.h Repo created 2025-11-22 14:04:28 +01:00
priority.h Repo created 2025-11-22 14:04:28 +01:00
README.md Repo created 2025-11-22 14:04:28 +01:00
ref_count.h Repo created 2025-11-22 14:04:28 +01:00
ref_counted_base.h Repo created 2025-11-22 14:04:28 +01:00
rtc_error.cc Repo created 2025-11-22 14:04:28 +01:00
rtc_error.h Repo created 2025-11-22 14:04:28 +01:00
rtc_error_unittest.cc Repo created 2025-11-22 14:04:28 +01:00
rtc_event_log_output.h Repo created 2025-11-22 14:04:28 +01:00
rtc_event_log_output_file.cc Repo created 2025-11-22 14:04:28 +01:00
rtc_event_log_output_file.h Repo created 2025-11-22 14:04:28 +01:00
rtc_event_log_output_file_unittest.cc Repo created 2025-11-22 14:04:28 +01:00
rtp_headers.cc Repo created 2025-11-22 14:04:28 +01:00
rtp_headers.h Repo created 2025-11-22 14:04:28 +01:00
rtp_packet_info.cc Repo created 2025-11-22 14:04:28 +01:00
rtp_packet_info.h Repo created 2025-11-22 14:04:28 +01:00
rtp_packet_info_unittest.cc Repo created 2025-11-22 14:04:28 +01:00
rtp_packet_infos.h Repo created 2025-11-22 14:04:28 +01:00
rtp_packet_infos_unittest.cc Repo created 2025-11-22 14:04:28 +01:00
rtp_parameters.cc Repo created 2025-11-22 14:04:28 +01:00
rtp_parameters.h Repo created 2025-11-22 14:04:28 +01:00
rtp_parameters_unittest.cc Repo created 2025-11-22 14:04:28 +01:00
rtp_receiver_interface.cc Repo created 2025-11-22 14:04:28 +01:00
rtp_receiver_interface.h Repo created 2025-11-22 14:04:28 +01:00
rtp_sender_interface.cc Repo created 2025-11-22 14:04:28 +01:00
rtp_sender_interface.h Repo created 2025-11-22 14:04:28 +01:00
rtp_transceiver_direction.h Repo created 2025-11-22 14:04:28 +01:00
rtp_transceiver_interface.cc Repo created 2025-11-22 14:04:28 +01:00
rtp_transceiver_interface.h Repo created 2025-11-22 14:04:28 +01:00
scoped_refptr.h Repo created 2025-11-22 14:04:28 +01:00
scoped_refptr_unittest.cc Repo created 2025-11-22 14:04:28 +01:00
sctp_transport_interface.cc Repo created 2025-11-22 14:04:28 +01:00
sctp_transport_interface.h Repo created 2025-11-22 14:04:28 +01:00
sequence_checker.h Repo created 2025-11-22 14:04:28 +01:00
sequence_checker_unittest.cc Repo created 2025-11-22 14:04:28 +01:00
set_local_description_observer_interface.h Repo created 2025-11-22 14:04:28 +01:00
set_remote_description_observer_interface.h Repo created 2025-11-22 14:04:28 +01:00
turn_customizer.h Repo created 2025-11-22 14:04:28 +01:00
uma_metrics.h Repo created 2025-11-22 14:04:28 +01:00
video_track_source_constraints.h Repo created 2025-11-22 14:04:28 +01:00
video_track_source_proxy_factory.h Repo created 2025-11-22 14:04:28 +01:00
webrtc_key_value_config.h Repo created 2025-11-22 14:04:28 +01:00
wrapping_async_dns_resolver.cc Repo created 2025-11-22 14:04:28 +01:00

How to write code in the api/ directory

Mostly, just follow the regular style guide, but:

  • Note that api/ code is not exempt from the “.h and .cc files come in pairs” rule, so if you declare something in api/path/to/foo.h, it should be defined in api/path/to/foo.cc.
  • Headers in api/ should, if possible, not #include headers outside api/. Its not always possible to avoid this, but be aware that it adds to a small mountain of technical debt that were trying to shrink.
  • .cc files in api/, on the other hand, are free to #include headers outside api/.
  • Avoid structs in api, prefer classes.

The preferred way for api/ code to access non-api/ code is to call it from a .cc file, so that users of our API headers wont transitively #include non-public headers.

For headers in api/ that need to refer to non-public types, forward declarations are often a lesser evil than including non-public header files. The usual rules still apply, though.

.cc files in api/ should preferably be kept reasonably small. If a substantial implementation is needed, consider putting it with our non-public code, and just call it from the api/ .cc file.

Avoid defining api with structs as it makes harder for the api to evolve. Your struct may gain invariant, or change how it represents data. Evolving struct from the api is particular challenging as it is designed to be used in other code bases and thus needs to be updated independetly from its usage. Class with accessors and setters makes such migration safer. See Google C++ style guide for more.

If you need to evolve existent struct in api, prefer first to convert it into a class.