aosp12/external/webrtc/api
hcl 7be3fd486c init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
..
adaptation init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
audio init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
audio_codecs init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
call init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
crypto init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
neteq init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
rtc_event_log init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
stats init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
task_queue init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
test init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
transport init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
units init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
video init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
video_codecs init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
voip init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
BUILD.gn init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
DEPS init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
DESIGN.md init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
OWNERS.webrtc init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
README.md init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
array_view.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
array_view_unittest.cc init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
async_resolver_factory.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
audio_options.cc init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
audio_options.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
candidate.cc init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
candidate.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
create_peerconnection_factory.cc init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
create_peerconnection_factory.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
crypto_params.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
data_channel_interface.cc init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
data_channel_interface.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
dtls_transport_interface.cc init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
dtls_transport_interface.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
dtmf_sender_interface.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
fec_controller.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
fec_controller_override.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
frame_transformer_interface.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
function_view.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
function_view_unittest.cc init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
ice_transport_factory.cc init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
ice_transport_factory.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
ice_transport_interface.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
jsep.cc init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
jsep.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
jsep_ice_candidate.cc init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
jsep_ice_candidate.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
jsep_session_description.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
media_stream_interface.cc init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
media_stream_interface.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
media_stream_proxy.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
media_stream_track_proxy.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
media_types.cc init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
media_types.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
network_state_predictor.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
notifier.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
packet_socket_factory.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
peer_connection_factory_proxy.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
peer_connection_interface.cc init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
peer_connection_interface.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
peer_connection_proxy.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
priority.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
proxy.cc init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
proxy.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
ref_counted_base.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
rtc_error.cc init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
rtc_error.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
rtc_error_unittest.cc init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
rtc_event_log_output.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
rtc_event_log_output_file.cc init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
rtc_event_log_output_file.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
rtc_event_log_output_file_unittest.cc init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
rtp_headers.cc init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
rtp_headers.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
rtp_packet_info.cc init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
rtp_packet_info.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
rtp_packet_info_unittest.cc init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
rtp_packet_infos.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
rtp_packet_infos_unittest.cc init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
rtp_parameters.cc init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
rtp_parameters.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
rtp_parameters_unittest.cc init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
rtp_receiver_interface.cc init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
rtp_receiver_interface.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
rtp_sender_interface.cc init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
rtp_sender_interface.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
rtp_transceiver_direction.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
rtp_transceiver_interface.cc init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
rtp_transceiver_interface.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
scoped_refptr.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
scoped_refptr_unittest.cc init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
sctp_transport_interface.cc init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
sctp_transport_interface.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
set_remote_description_observer_interface.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
stats_types.cc init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
stats_types.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
turn_customizer.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
uma_metrics.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
video_track_source_proxy.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00

README.md

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/.

That is, 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.