switch_platform.h File Reference

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 dependency graph for switch_platform.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#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


Detailed Description

Platform Specific Header.

Definition in file switch_platform.h.


Define Documentation

#define __BIG_ENDIAN   4321

Definition at line 131 of file switch_platform.h.

#define __BYTE_ORDER   __LITTLE_ENDIAN

Definition at line 137 of file switch_platform.h.

#define __LITTLE_ENDIAN   1234

Definition at line 128 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 336 of file switch_platform.h.

#define _In_

Definition at line 327 of file switch_platform.h.

#define _In_bytecount_ (  ) 

Definition at line 339 of file switch_platform.h.

#define _In_opt_

Definition at line 330 of file switch_platform.h.

#define _In_opt_z_

Definition at line 329 of file switch_platform.h.

#define _In_z_

Definition at line 328 of file switch_platform.h.

#define _Inout_

Definition at line 337 of file switch_platform.h.

#define _Inout_opt_

Definition at line 338 of file switch_platform.h.

#define _Out_

Definition at line 335 of file switch_platform.h.

#define _Out_bytecapcount_ (  ) 

Definition at line 341 of file switch_platform.h.

#define _Out_cap_ (  ) 

Definition at line 344 of file switch_platform.h.

#define _Out_opt_

Definition at line 334 of file switch_platform.h.

#define _Out_opt_bytecapcount_ (  ) 

Definition at line 340 of file switch_platform.h.

#define _Out_opt_ptrdiff_cap_ (  ) 

Definition at line 347 of file switch_platform.h.

#define _Out_ptrdiff_cap_ (  ) 

Definition at line 346 of file switch_platform.h.

#define _Out_z_cap_ (  ) 

Definition at line 345 of file switch_platform.h.

#define _Post_count_ (  ) 

Definition at line 348 of file switch_platform.h.

#define _Post_z_

Definition at line 343 of file switch_platform.h.

#define _Printf_format_string_

Definition at line 331 of file switch_platform.h.

#define _Ret_

Definition at line 342 of file switch_platform.h.

#define _Ret_opt_z_

Definition at line 332 of file switch_platform.h.

#define _Ret_z_

Definition at line 333 of file switch_platform.h.

#define DoxyDefine (  ) 

Definition at line 201 of file switch_platform.h.

#define FALSE   0

Definition at line 316 of file switch_platform.h.

Referenced by do_flush(), freeswitch_kill_background(), switch_core_runtime_loop(), switch_rtp_clear_flag(), switch_rtp_set_local_address(), switch_rtp_udptl_mode(), switch_xml_init(), tzparse(), and tztime().

#define O_BINARY   0

Definition at line 177 of file switch_platform.h.

Referenced by load_mime_types(), and switch_simple_email().

#define PACKED   __attribute__ ((__packed__))

Definition at line 119 of file switch_platform.h.

#define PRINTF_FUNCTION ( fmtstr,
vars   ) 

Definition at line 206 of file switch_platform.h.

#define switch_assert ( expr   )     assert(expr)

Definition at line 322 of file switch_platform.h.

Referenced by add_xml_header(), chat_process_event(), chat_queue_message(), check_channel_status(), core_event_handler(), do_shutdown(), do_stun_ping(), API::executeString(), get_addr(), get_addr6(), ice_out(), IVRMenu::IVRMenu(), load_mime_types(), my_dup(), new_header(), preprocess_glob(), 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_execute_sql_chunked(), 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_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_copy(), switch_core_codec_decode(), switch_core_codec_destroy(), switch_core_codec_encode(), switch_core_codec_init_with_bitrate(), switch_core_codec_reset(), switch_core_file_close(), switch_core_file_get_string(), switch_core_file_read(), switch_core_file_seek(), switch_core_file_set_string(), switch_core_file_truncate(), switch_core_file_write(), switch_core_hash_delete_multi(), switch_core_hash_destroy(), switch_core_hash_init_case(), switch_core_init(), switch_core_media_bug_exec_all(), switch_core_media_bug_read(), 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_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_pool(), switch_core_session_get_private(), switch_core_session_hangup_state(), switch_core_session_outgoing_channel(), 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_run(), switch_core_session_send_dtmf(), switch_core_session_send_dtmf_string(), switch_core_session_set_loglevel(), switch_core_session_set_private(), switch_core_session_set_uuid(), switch_core_session_thread(), switch_core_session_write_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_sql_thread(), 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_bind_removable(), switch_event_build_param_string(), switch_event_create_subclass_detailed(), switch_event_del_header_val(), 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_frame_alloc(), switch_frame_dup(), switch_fulldate_cmp(), 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_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_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_name_event(), switch_nat_multicast_runtime(), switch_network_list_add_cidr_token(), switch_odbc_handle_callback_exec_detailed(), switch_process_import(), switch_replace_char(), switch_rtp_kill_socket(), switch_rtp_write_frame(), 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_split_date(), switch_split_time(), SWITCH_STANDARD_SCHED_FUNC(), switch_strchr_strict(), switch_string_has_escaped_data(), switch_string_replace(), switch_strip_spaces(), switch_strip_whitespace(), switch_stun_lookup(), switch_tod_cmp(), switch_util_quote_shell_arg(), switch_xml_locate_domain(), switch_xml_locate_group(), switch_xml_locate_user(), switch_xml_parse_file_simple(), switch_xml_parse_str_dynamic(), switch_xml_set_binding_sections(), switch_xml_set_binding_user_data(), switch_xml_toxml(), switch_xml_toxml_nolock(), and timesub().

#define SWITCH_DECLARE ( type   )     type

Definition at line 187 of file switch_platform.h.

#define SWITCH_DECLARE_CLASS

Definition at line 193 of file switch_platform.h.

#define SWITCH_DECLARE_CONSTRUCTOR   SWITCH_DECLARE_DATA

Definition at line 197 of file switch_platform.h.

#define SWITCH_DECLARE_DATA

Definition at line 189 of file switch_platform.h.

#define SWITCH_DECLARE_NONSTD ( type   )     type

Definition at line 188 of file switch_platform.h.

#define SWITCH_INT64_T_FMT   (sizeof (long) == 8 ? "ld" : "lld")

Definition at line 253 of file switch_platform.h.

Referenced by switch_scheduler_add_task(), switch_scheduler_del_task_group(), switch_scheduler_del_task_id(), and switch_scheduler_execute().

#define SWITCH_MOD_DECLARE ( type   )     type

Definition at line 190 of file switch_platform.h.

#define SWITCH_MOD_DECLARE_DATA

Definition at line 192 of file switch_platform.h.

#define SWITCH_MOD_DECLARE_NONSTD ( type   )     type

Definition at line 191 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 249 of file switch_platform.h.

Referenced by read_rtcp_packet(), send_heartbeat(), and switch_core_session_thread().

#define SWITCH_SSIZE_T_FMT   (sizeof (switch_ssize_t) == sizeof (long) ? "ld" : sizeof (switch_ssize_t) == sizeof (int) ? "d" : "lld")

Definition at line 245 of file switch_platform.h.

#define SWITCH_THREAD_FUNC

Definition at line 195 of file switch_platform.h.

#define SWITCH_TIME_T_FMT   SWITCH_INT64_T_FMT

Definition at line 270 of file switch_platform.h.

Referenced by API::getTime(), switch_caller_get_field_by_name(), switch_caller_profile_event_set_data(), switch_ivr_generate_json_cdr(), and switch_ivr_generate_xml_cdr().

#define SWITCH_UINT64_T_FMT   (sizeof (long) == 8 ? "lu" : "llu")

Definition at line 257 of file switch_platform.h.

Referenced by switch_event_prep_for_delivery_detailed().

#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(), and switch_event_create_json().

#define TIME_T_FMT   "ld"

Definition at line 264 of file switch_platform.h.

#define TRUE   (!FALSE)

Definition at line 319 of file switch_platform.h.

Referenced by do_flush(), init_nat_monitor(), switch_core_session_perform_destroy(), switch_core_session_write_frame(), switch_odbc_handle_connect(), switch_rtp_set_flag(), switch_rtp_set_local_address(), and switch_stun_lookup().


Typedef Documentation

typedef int32_t switch_int32_t

Definition at line 211 of file switch_platform.h.

typedef uintptr_t switch_size_t

Definition at line 217 of file switch_platform.h.

typedef intptr_t switch_ssize_t

Definition at line 223 of file switch_platform.h.


Generated on Sun May 20 04:00:13 2012 for FreeSWITCH API Documentation by  doxygen 1.4.7