FreeSWITCH API Documentation
1.7.0
|
Platform Specific Header. More...
#include <stdio.h>
#include <inttypes.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
Go to the source code of this file.
Macros | |
#define | SWITCH_USE_CLOCK_FUNCS |
#define | SWITCH_VA_NONE "%s", "" |
#define | __SWITCH_FUNC__ (const char *)__func__ |
#define | PACKED __attribute__ ((__packed__)) |
#define | __LITTLE_ENDIAN 1234 |
#define | __BIG_ENDIAN 4321 |
#define | __BYTE_ORDER __LITTLE_ENDIAN |
#define | O_BINARY 0 |
#define | SWITCH_DECLARE(type) type |
#define | SWITCH_DECLARE_NONSTD(type) type |
#define | SWITCH_DECLARE_DATA |
#define | SWITCH_MOD_DECLARE(type) type |
#define | SWITCH_MOD_DECLARE_NONSTD(type) type |
#define | SWITCH_MOD_DECLARE_DATA |
#define | SWITCH_DECLARE_CLASS |
#define | SWITCH_THREAD_FUNC |
#define | SWITCH_DECLARE_CONSTRUCTOR SWITCH_DECLARE_DATA |
#define | DoxyDefine(x) |
#define | PRINTF_FUNCTION(fmtstr, vars) |
#define | SWITCH_SSIZE_T_FMT (sizeof (switch_ssize_t) == sizeof (long) ? "ld" : sizeof (switch_ssize_t) == sizeof (int) ? "d" : "lld") |
#define | SWITCH_SIZE_T_FMT (sizeof (switch_size_t) == sizeof (long) ? "lu" : sizeof (switch_size_t) == sizeof (int) ? "u" : "llu") |
#define | SWITCH_INT64_T_FMT (sizeof (long) == 8 ? "ld" : "lld") |
#define | SWITCH_UINT64_T_FMT (sizeof (long) == 8 ? "lu" : "llu") |
#define | TIME_T_FMT "ld" |
#define | SWITCH_TIME_T_FMT SWITCH_INT64_T_FMT |
#define | FALSE 0 |
#define | TRUE (!FALSE) |
#define | switch_assert(expr) assert(expr) |
#define | _In_ |
#define | _In_z_ |
#define | _In_opt_z_ |
#define | _In_opt_ |
#define | _Printf_format_string_ |
#define | _Ret_opt_z_ |
#define | _Ret_z_ |
#define | _Out_opt_ |
#define | _Out_ |
#define | _Check_return_ |
#define | _Inout_ |
#define | _Inout_opt_ |
#define | _In_bytecount_(x) |
#define | _Out_opt_bytecapcount_(x) |
#define | _Out_bytecapcount_(x) |
#define | _Ret_ |
#define | _Post_z_ |
#define | _Out_cap_(x) |
#define | _Out_z_cap_(x) |
#define | _Out_ptrdiff_cap_(x) |
#define | _Out_opt_ptrdiff_cap_(x) |
#define | _Post_count_(x) |
Typedefs | |
typedef int32_t | switch_int32_t |
typedef uintptr_t | switch_size_t |
typedef intptr_t | switch_ssize_t |
Platform Specific Header.
Definition in file switch_platform.h.
#define __BIG_ENDIAN 4321 |
Definition at line 137 of file switch_platform.h.
#define __BYTE_ORDER __LITTLE_ENDIAN |
Definition at line 143 of file switch_platform.h.
#define __LITTLE_ENDIAN 1234 |
Definition at line 134 of file switch_platform.h.
#define __SWITCH_FUNC__ (const char *)__func__ |
Definition at line 51 of file switch_platform.h.
Referenced by switch_core_session_sched_heartbeat(), switch_ivr_schedule_broadcast(), switch_ivr_schedule_hangup(), and switch_ivr_schedule_transfer().
#define _Check_return_ |
Definition at line 352 of file switch_platform.h.
#define _In_ |
Definition at line 343 of file switch_platform.h.
#define _In_bytecount_ | ( | x | ) |
Definition at line 355 of file switch_platform.h.
#define _In_opt_ |
Definition at line 346 of file switch_platform.h.
#define _In_opt_z_ |
Definition at line 345 of file switch_platform.h.
#define _In_z_ |
Definition at line 344 of file switch_platform.h.
#define _Inout_ |
Definition at line 353 of file switch_platform.h.
#define _Inout_opt_ |
Definition at line 354 of file switch_platform.h.
#define _Out_ |
Definition at line 351 of file switch_platform.h.
#define _Out_bytecapcount_ | ( | x | ) |
Definition at line 357 of file switch_platform.h.
#define _Out_cap_ | ( | x | ) |
Definition at line 360 of file switch_platform.h.
#define _Out_opt_ |
Definition at line 350 of file switch_platform.h.
#define _Out_opt_bytecapcount_ | ( | x | ) |
Definition at line 356 of file switch_platform.h.
#define _Out_opt_ptrdiff_cap_ | ( | x | ) |
Definition at line 363 of file switch_platform.h.
#define _Out_ptrdiff_cap_ | ( | x | ) |
Definition at line 362 of file switch_platform.h.
#define _Out_z_cap_ | ( | x | ) |
Definition at line 361 of file switch_platform.h.
#define _Post_count_ | ( | x | ) |
Definition at line 364 of file switch_platform.h.
#define _Post_z_ |
Definition at line 359 of file switch_platform.h.
#define _Printf_format_string_ |
Definition at line 347 of file switch_platform.h.
#define _Ret_ |
Definition at line 358 of file switch_platform.h.
#define _Ret_opt_z_ |
Definition at line 348 of file switch_platform.h.
#define _Ret_z_ |
Definition at line 349 of file switch_platform.h.
#define DoxyDefine | ( | x | ) |
Definition at line 207 of file switch_platform.h.
#define FALSE 0 |
Definition at line 332 of file switch_platform.h.
Referenced by do_flush(), freeswitch_kill_background(), switch_core_runtime_loop(), switch_odbc_handle_connect(), switch_rtp_clear_flag(), switch_rtp_set_local_address(), switch_rtp_udptl_mode(), and switch_xml_init().
#define O_BINARY 0 |
Definition at line 183 of file switch_platform.h.
Referenced by switch_simple_email().
#define PACKED __attribute__ ((__packed__)) |
Definition at line 124 of file switch_platform.h.
#define PRINTF_FUNCTION | ( | fmtstr, | |
vars | |||
) |
Definition at line 212 of file switch_platform.h.
#define switch_assert | ( | expr | ) | assert(expr) |
Definition at line 338 of file switch_platform.h.
Referenced by add_uuid(), add_xml_header(), calc_bw_exp(), chat_process_event(), chat_queue_message(), check_channel_status(), check_jb(), check_jb_sync(), clear_ice(), core_event_handler(), create_device_record(), daemonize(), do_shutdown(), API::executeString(), gen_ice(), generate_m(), get_addr(), get_addr6(), get_media_profile_name(), ice_out(), IVRMenu::IVRMenu(), json_add_child_array(), json_add_child_obj(), json_add_child_string(), load_mime_types(), main(), mkcert(), my_dup(), new_header(), new_node(), pack_check_over(), parse_img_fit(), parse_img_position(), push_to_top(), read_rtcp_packet(), read_rtp_packet(), sb_on_dtmf(), signal_bridge_on_hibernate(), switch_amp_encode(), switch_api_execute(), switch_buffer_write(), switch_buffer_zero(), switch_cache_db_create_schema(), switch_cache_db_execute_sql_chunked(), switch_cache_db_test_reactive(), switch_caller_extension_add_application(), switch_caller_profile_dup(), switch_caller_profile_new(), switch_change_sln_volume(), switch_change_sln_volume_granular(), switch_channel_add_state_handler(), switch_channel_add_variable_var_check(), switch_channel_alloc(), switch_channel_build_param_string(), switch_channel_caller_extension_masquerade(), switch_channel_clear_app_flag_key(), switch_channel_clear_cap(), switch_channel_clear_flag(), switch_channel_clear_flag_partner(), switch_channel_clear_flag_recursive(), switch_channel_clear_private_flag(), switch_channel_clear_state_flag(), switch_channel_clear_state_handler(), switch_channel_event_set_extended_data(), switch_channel_expand_variables_check(), switch_channel_export_variable_printf(), switch_channel_get_caller_extension(), switch_channel_get_caller_profile(), switch_channel_get_name(), switch_channel_get_originatee_caller_profile(), switch_channel_get_origination_caller_profile(), switch_channel_get_originator_caller_profile(), switch_channel_get_private(), switch_channel_get_private_partner(), switch_channel_get_running_state(), switch_channel_get_session(), switch_channel_get_state(), switch_channel_get_state_handler(), switch_channel_get_uuid(), switch_channel_get_variable_dup(), switch_channel_get_variable_partner(), switch_channel_init(), switch_channel_pass_callee_id(), switch_channel_perform_answer(), switch_channel_perform_hangup(), switch_channel_perform_mark_answered(), switch_channel_perform_pre_answer(), switch_channel_perform_ring_ready_value(), switch_channel_perform_set_state(), switch_channel_queue_dtmf(), switch_channel_set_app_flag_key(), switch_channel_set_caller_extension(), switch_channel_set_caller_profile(), switch_channel_set_cap_value(), switch_channel_set_flag_partner(), switch_channel_set_flag_recursive(), switch_channel_set_flag_value(), switch_channel_set_hunt_caller_profile(), switch_channel_set_name(), switch_channel_set_originatee_caller_profile(), switch_channel_set_origination_caller_profile(), switch_channel_set_originator_caller_profile(), switch_channel_set_private(), switch_channel_set_private_flag(), switch_channel_set_state_flag(), switch_channel_set_variable_name_printf(), switch_channel_set_variable_partner_var_check(), switch_channel_set_variable_printf(), switch_channel_set_variable_var_check(), switch_channel_test_app_flag_key(), switch_channel_test_cap(), switch_channel_test_cap_partner(), switch_channel_test_flag(), switch_channel_test_flag_partner(), switch_channel_test_private_flag(), switch_channel_test_ready(), switch_channel_variable_first(), switch_channel_variable_last(), switch_channel_wait_for_state(), switch_check_network_list_ip_token(), switch_console_complete(), switch_console_process(), switch_console_sort_matches(), switch_core_asr_check_results(), switch_core_asr_close(), switch_core_asr_disable_all_grammars(), switch_core_asr_disable_grammar(), switch_core_asr_enable_grammar(), switch_core_asr_feed(), switch_core_asr_feed_dtmf(), switch_core_asr_float_param(), switch_core_asr_get_result_headers(), switch_core_asr_get_results(), switch_core_asr_load_grammar(), switch_core_asr_numeric_param(), switch_core_asr_open(), switch_core_asr_pause(), switch_core_asr_resume(), switch_core_asr_start_input_timers(), switch_core_asr_text_param(), switch_core_asr_unload_grammar(), switch_core_codec_control(), switch_core_codec_copy(), switch_core_codec_decode(), switch_core_codec_decode_video(), switch_core_codec_destroy(), switch_core_codec_encode(), switch_core_codec_encode_video(), switch_core_codec_init_with_bitrate(), switch_core_codec_reset(), switch_core_file_close(), switch_core_file_command(), switch_core_file_get_string(), switch_core_file_read(), switch_core_file_read_video(), switch_core_file_seek(), switch_core_file_set_string(), switch_core_file_truncate(), switch_core_file_write(), switch_core_file_write_video(), switch_core_hash_delete_multi(), switch_core_hash_destroy(), switch_core_init(), switch_core_media_absorb_sdp(), switch_core_media_activate_rtp(), switch_core_media_add_ice_acl(), switch_core_media_add_payload_map(), switch_core_media_break(), switch_core_media_bug_exec_all(), switch_core_media_bug_push_spy_frame(), switch_core_media_bug_read(), switch_core_media_build_crypto(), switch_core_media_check_autoadj(), switch_core_media_check_dtls(), switch_core_media_check_dtmf_type(), switch_core_media_check_nat(), switch_core_media_check_outgoing_proxy(), switch_core_media_check_udptl_mode(), switch_core_media_check_video_codecs(), switch_core_media_choose_port(), switch_core_media_clear_rtp_flag(), switch_core_media_codec_chosen(), switch_core_media_codec_control(), switch_core_media_copy_t38_options(), switch_core_media_crypto_keylen(), switch_core_media_crypto_type2str(), switch_core_media_deactivate_rtp(), switch_core_media_ext_address_lookup(), switch_core_media_gen_local_sdp(), switch_core_media_get_codec_string(), switch_core_media_get_jb(), switch_core_media_get_mparams(), switch_core_media_get_offered_pt(), switch_core_media_get_stats(), switch_core_media_get_timer(), switch_core_media_get_vid_params(), switch_core_media_get_video_file(), switch_core_media_get_video_fps(), switch_core_media_kill_socket(), switch_core_media_lock_video_file(), switch_core_media_negotiate_sdp(), switch_core_media_patch_sdp(), switch_core_media_pause(), switch_core_media_prepare_codecs(), switch_core_media_process_t38_passthru(), switch_core_media_process_udptl(), switch_core_media_proxy_remote_addr(), switch_core_media_queue_rfc2833(), switch_core_media_queue_rfc2833_in(), switch_core_media_read_frame(), switch_core_media_read_lock_unlock(), switch_core_media_ready(), switch_core_media_receive_message(), switch_core_media_recover_session(), switch_core_media_reset_autofix(), switch_core_media_reset_jb(), switch_core_media_resume(), switch_core_media_set_codec(), switch_core_media_set_local_sdp(), switch_core_media_set_r_sdp_codec_string(), switch_core_media_set_rtp_flag(), switch_core_media_set_sdp_codec_string(), switch_core_media_set_telephony_event(), switch_core_media_set_telephony_recv_event(), switch_core_media_set_udptl_image_sdp(), switch_core_media_set_video_codec(), switch_core_media_set_video_file(), switch_core_media_start_udptl(), switch_core_media_sync_stats(), switch_core_media_toggle_hold(), switch_core_media_udptl_mode(), switch_core_media_unlock_video_file(), switch_core_media_write_frame(), switch_core_memory_init(), switch_core_mime_add_type(), switch_core_perform_alloc(), switch_core_perform_destroy_memory_pool(), switch_core_perform_new_memory_pool(), switch_core_perform_permanent_alloc(), switch_core_perform_permanent_strdup(), switch_core_perform_session_alloc(), switch_core_perform_session_strdup(), switch_core_perform_strdup(), switch_core_register_secondary_recover_callback(), switch_core_service_session_av(), switch_core_session_check_interface(), switch_core_session_compare(), switch_core_session_dequeue_event(), switch_core_session_dequeue_message(), switch_core_session_dequeue_signal_data(), switch_core_session_destroy_state(), switch_core_session_disable_heartbeat(), switch_core_session_enable_heartbeat(), switch_core_session_exec(), switch_core_session_flush_message(), switch_core_session_get_app_flags(), switch_core_session_get_channel(), switch_core_session_get_loglevel(), switch_core_session_get_payload_code(), switch_core_session_get_pool(), switch_core_session_get_private_class(), switch_core_session_hangup_state(), switch_core_session_in_video_thread(), switch_core_session_media_flow(), switch_core_session_outgoing_channel(), switch_core_session_parse_codec_settings(), switch_core_session_perform_receive_message(), switch_core_session_queue_event(), switch_core_session_queue_message(), switch_core_session_queue_private_event(), switch_core_session_queue_signal_data(), switch_core_session_read_frame(), switch_core_session_read_video_frame(), switch_core_session_receive_event(), switch_core_session_recv_dtmf(), switch_core_session_reporting_state(), switch_core_session_request_video_refresh(), switch_core_session_run(), switch_core_session_send_dtmf(), switch_core_session_send_dtmf_string(), switch_core_session_set_ice(), switch_core_session_set_loglevel(), switch_core_session_set_private_class(), switch_core_session_set_uuid(), switch_core_session_stop_media(), switch_core_session_thread(), switch_core_session_video_reinit(), switch_core_session_wait_for_video_input_params(), switch_core_session_write_frame(), switch_core_session_write_video_frame(), switch_core_set_globals(), switch_core_speech_feed_tts(), switch_core_speech_float_param_tts(), switch_core_speech_flush_tts(), switch_core_speech_numeric_param_tts(), switch_core_speech_read_tts(), switch_core_speech_text_param_tts(), switch_core_standard_on_consume_media(), switch_core_standard_on_hibernate(), switch_core_standard_on_park(), switch_core_standard_on_soft_execute(), switch_core_thread_session_end(), switch_core_vsprintf(), switch_dtmftoi(), switch_event_add_array(), switch_event_base_add_header(), switch_event_binary_deserialize(), switch_event_bind_removable(), switch_event_build_param_string(), switch_event_channel_bind(), switch_event_channel_broadcast(), switch_event_create_subclass_detailed(), switch_event_del_header_val(), switch_event_deliver_thread_pool(), switch_event_expand_headers_check(), switch_event_fire_detailed(), switch_event_free_subclass_detailed(), switch_event_get_header_ptr(), switch_event_import_xml(), switch_event_init(), switch_event_merge(), switch_event_name(), switch_event_rename_header(), switch_event_reserve_subclass_detailed(), switch_fd_read_dline(), switch_fp_read_dline(), switch_frame_alloc(), switch_frame_buffer_dup(), switch_frame_buffer_free(), switch_frame_dup(), switch_fulldate_cmp(), switch_hashtable_first_iter(), switch_http_dump_request(), switch_http_parse_qs(), switch_img_copy(), switch_img_copy_rect(), switch_img_fit(), switch_img_letterbox(), switch_img_overlay(), switch_img_patch(), switch_img_patch_hole(), switch_img_rotate(), switch_img_rotate_copy(), switch_img_scale(), switch_img_to_raw(), switch_img_txt_handle_destroy(), switch_img_txt_handle_render(), switch_img_write_text_img(), switch_ivr_3p_media(), switch_ivr_activate_unicast(), switch_ivr_broadcast(), switch_ivr_broadcast_in_thread(), switch_ivr_check_presence_mapping(), switch_ivr_digit_stream_new(), switch_ivr_digit_stream_parser_feed(), switch_ivr_digit_stream_reset(), switch_ivr_dmachine_get_target(), switch_ivr_dmachine_set_match_callback(), switch_ivr_dmachine_set_nonmatch_callback(), switch_ivr_dmachine_set_target(), switch_ivr_find_bridged_uuid(), switch_ivr_media(), switch_ivr_originate(), switch_ivr_park(), switch_ivr_phrase_macro_event(), switch_ivr_play_file(), switch_ivr_read(), switch_ivr_say(), switch_ivr_say_string(), switch_ivr_soft_hold(), switch_ivr_speak_text_handle(), switch_ivr_stop_detect_speech(), switch_ivr_wait_for_answer(), switch_json_api_execute(), switch_live_array_set_command_handler(), switch_live_array_set_user_data(), switch_load_network_lists(), switch_loadable_module_create_module_interface(), switch_loadable_module_exec(), switch_loadable_module_load_file(), switch_log_bind_logger(), switch_log_init(), switch_log_node_alloc(), switch_log_node_dup(), switch_log_str2mask(), switch_log_vprintf(), switch_media_handle_clear_media_flag(), switch_media_handle_destroy(), switch_media_handle_set_media_flag(), switch_media_handle_set_media_flags(), switch_media_handle_test_media_flag(), switch_must_malloc(), switch_must_realloc(), switch_must_strdup(), switch_mux_channels(), switch_name_event(), switch_nat_multicast_runtime(), switch_network_list_add_cidr_token(), switch_odbc_handle_callback_exec_detailed(), switch_pgsql_handle_callback_exec_detailed(), switch_process_import(), switch_replace_char(), switch_resample_perform_create(), switch_resample_process(), switch_rtp_add_dtls(), switch_rtp_kill_socket(), switch_rtp_write_frame(), switch_rtp_write_raw(), switch_sanitize_number(), switch_say_file_handle_create(), switch_say_file_handle_destroy(), switch_say_file_handle_detach_path(), switch_scheduler_add_task(), switch_sockaddr_create(), switch_speex_fmtp_parse(), switch_split_date(), switch_split_time(), switch_sql_queue_manager_destroy(), switch_ssl_init_ssl_locks(), SWITCH_STANDARD_SCHED_FUNC(), switch_strchr_strict(), switch_string_has_escaped_data(), switch_string_replace(), switch_strip_spaces(), switch_strip_whitespace(), switch_strstr(), switch_stun_lookup(), switch_thread_pool_launch_thread(), switch_tod_cmp(), switch_util_quote_shell_arg_pool(), switch_xml_locate(), switch_xml_locate_domain(), switch_xml_locate_group(), switch_xml_locate_user(), switch_xml_parse_str_dynamic(), switch_xml_set_binding_sections(), and switch_xml_set_binding_user_data().
#define SWITCH_DECLARE | ( | type | ) | type |
Definition at line 193 of file switch_platform.h.
#define SWITCH_DECLARE_CLASS |
Definition at line 199 of file switch_platform.h.
#define SWITCH_DECLARE_CONSTRUCTOR SWITCH_DECLARE_DATA |
Definition at line 203 of file switch_platform.h.
#define SWITCH_DECLARE_DATA |
Definition at line 195 of file switch_platform.h.
#define SWITCH_DECLARE_NONSTD | ( | type | ) | type |
Definition at line 194 of file switch_platform.h.
#define SWITCH_INT64_T_FMT (sizeof (long) == 8 ? "ld" : "lld") |
Definition at line 260 of file switch_platform.h.
#define SWITCH_MOD_DECLARE | ( | type | ) | type |
Definition at line 196 of file switch_platform.h.
#define SWITCH_MOD_DECLARE_DATA |
Definition at line 198 of file switch_platform.h.
#define SWITCH_MOD_DECLARE_NONSTD | ( | type | ) | type |
Definition at line 197 of file switch_platform.h.
#define SWITCH_SIZE_T_FMT (sizeof (switch_size_t) == sizeof (long) ? "lu" : sizeof (switch_size_t) == sizeof (int) ? "u" : "llu") |
Definition at line 256 of file switch_platform.h.
#define SWITCH_SSIZE_T_FMT (sizeof (switch_ssize_t) == sizeof (long) ? "ld" : sizeof (switch_ssize_t) == sizeof (int) ? "d" : "lld") |
Definition at line 252 of file switch_platform.h.
#define SWITCH_THREAD_FUNC |
Definition at line 201 of file switch_platform.h.
#define SWITCH_TIME_T_FMT SWITCH_INT64_T_FMT |
Definition at line 285 of file switch_platform.h.
Referenced by API::getTime(), send_heartbeat(), switch_caller_get_field_by_name(), switch_caller_profile_event_set_data(), switch_channel_check_device_state(), switch_channel_set_timestamps(), switch_core_media_read_frame(), switch_ivr_generate_json_cdr(), switch_ivr_generate_xml_cdr(), and switch_ivr_set_xml_call_stats().
#define SWITCH_UINT64_T_FMT (sizeof (long) == 8 ? "lu" : "llu") |
Definition at line 264 of file switch_platform.h.
#define SWITCH_USE_CLOCK_FUNCS |
Definition at line 38 of file switch_platform.h.
#define SWITCH_VA_NONE "%s", "" |
Definition at line 47 of file switch_platform.h.
Referenced by Event::serialize(), switch_channel_set_timestamps(), and switch_event_create_json().
#define TIME_T_FMT "ld" |
Definition at line 271 of file switch_platform.h.
Referenced by switch_channel_set_timestamps().
#define TRUE (!FALSE) |
Definition at line 335 of file switch_platform.h.
Referenced by do_flush(), init_nat_monitor(), switch_core_session_read_frame(), switch_core_session_write_frame(), switch_odbc_handle_connect(), switch_rtp_set_flag(), switch_rtp_set_flags(), switch_rtp_set_local_address(), and switch_stun_lookup().
typedef int32_t switch_int32_t |
Definition at line 217 of file switch_platform.h.
typedef uintptr_t switch_size_t |
Definition at line 223 of file switch_platform.h.
typedef intptr_t switch_ssize_t |
Definition at line 229 of file switch_platform.h.