/*
linphone
Copyright (C) 2000 - 2010 Simon MORLAT (simon.morlat@linphone.org)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef LINPHONECORE_H
#define LINPHONECORE_H
#include "ortp/ortp.h"
#include "ortp/payloadtype.h"
#include "mediastreamer2/mscommon.h"
#include "mediastreamer2/msvideo.h"
#include "mediastreamer2/mediastream.h"
#include "mediastreamer2/bitratecontrol.h"
#include "linphone/defs.h"
#include "linphone/types.h"
#include "linphone/callbacks.h"
#include "linphone/sipsetup.h"
#include "linphone/account_creator.h"
#include "linphone/account_creator_service.h"
#include "linphone/address.h"
#include "linphone/auth_info.h"
#include "linphone/buffer.h"
#include "linphone/call.h"
#include "linphone/call_log.h"
#include "linphone/call_params.h"
#include "linphone/call_stats.h"
#include "linphone/chat.h"
#include "linphone/conference.h"
#include "linphone/content.h"
#include "linphone/dictionary.h"
#include "linphone/error_info.h"
#include "linphone/event.h"
#include "linphone/factory.h"
#include "linphone/friend.h"
#include "linphone/friendlist.h"
#include "linphone/im_encryption_engine.h"
#include "linphone/im_notif_policy.h"
#include "linphone/info_message.h"
#include "linphone/lpconfig.h"
#include "linphone/misc.h"
#include "linphone/nat_policy.h"
#include "linphone/payload_type.h"
#include "linphone/player.h"
#include "linphone/presence.h"
#include "linphone/proxy_config.h"
#include "linphone/ringtoneplayer.h"
#include "linphone/vcard.h"
#include "linphone/video_definition.h"
#include "linphone/xmlrpc.h"
#include "linphone/headers.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* Safely down-cast a belle_sip_object_t into LinphoneCore
* @ingroup initializing
*/
#define LINPHONE_CORE(object) BELLE_SIP_CAST(object, LinphoneCore)
/**
* Create a #LinphoneAddress object by parsing the user supplied address, given as a string.
* @param[in] lc #LinphoneCore object
* @param[in] address String containing the user supplied address
* @return The create #LinphoneAddress object
* @ingroup linphone_address
*/
LINPHONE_PUBLIC LinphoneAddress * linphone_core_create_address(LinphoneCore *lc, const char *address);
/**
* @addtogroup misc
* @{
*/
/**
* Create an independent media file player.
* This player support WAVE and MATROSKA formats.
* @param lc A LinphoneCore object
* @param sound_card_name Playback sound card. If NULL, the ringer sound card set in LinphoneCore will be used
* @param video_display_name Video display. If NULL, the video display set in LinphoneCore will be used
* @param window_id Id of the drawing window. Depend of video out
* @return A pointer on the new instance. NULL if faild.
*/
LINPHONE_PUBLIC LinphonePlayer *linphone_core_create_local_player(LinphoneCore *lc, const char *sound_card_name, const char *video_display_name, void *window_id);
/**
* Creates an empty info message.
* @param lc the LinphoneCore
* @return a new LinphoneInfoMessage.
*
* The info message can later be filled with information using linphone_info_message_add_header() or linphone_info_message_set_content(),
* and finally sent with linphone_core_send_info_message().
**/
LINPHONE_PUBLIC LinphoneInfoMessage *linphone_core_create_info_message(LinphoneCore*lc);
/**
* Checks if a new version of the application is available.
* @param lc LinphoneCore object
* @param current_version The current version of the application
*/
LINPHONE_PUBLIC void linphone_core_check_for_update(LinphoneCore *lc, const char *current_version);
/**
* @}
*/
/**
* Get the remote address of the current call.
* @param[in] lc LinphoneCore object.
* @return The remote address of the current call or NULL if there is no current call.
* @ingroup call_control
*/
LINPHONE_PUBLIC const LinphoneAddress * linphone_core_get_current_call_remote_address(LinphoneCore *lc);
/**
* @addtogroup initializing
* @{
**/
/**
* Callback prototype
* @deprecated
* @donotwrap
*/
typedef void (*ShowInterfaceCb)(LinphoneCore *lc);
/**
* Callback prototype
* @deprecated
* @donotwrap
*/
typedef void (*DisplayStatusCb)(LinphoneCore *lc, const char *message);
/**
* Callback prototype
* @deprecated
* @donotwrap
*/
typedef void (*DisplayMessageCb)(LinphoneCore *lc, const char *message);
/**
* Callback prototype
* @deprecated
* @donotwrap
*/
typedef void (*DisplayUrlCb)(LinphoneCore *lc, const char *message, const char *url);
/**
* Callback prototype
*/
typedef void (*LinphoneCoreCbFunc)(LinphoneCore *lc,void * user_data);
/**
* This structure holds all callbacks that the application should implement.
* None is mandatory.
* @donotwrap
**/
typedef struct _LinphoneCoreVTable{
LinphoneCoreGlobalStateChangedCb global_state_changed; /**<Notifies global state changes*/
LinphoneCoreRegistrationStateChangedCb registration_state_changed;/**<Notifies registration state changes*/
LinphoneCoreCallStateChangedCb call_state_changed;/**<Notifies call state changes*/
LinphoneCoreNotifyPresenceReceivedCb notify_presence_received; /**< Notify received presence events*/
LinphoneCoreNotifyPresenceReceivedForUriOrTelCb notify_presence_received_for_uri_or_tel; /**< Notify received presence events*/
LinphoneCoreNewSubscriptionRequestedCb new_subscription_requested; /**< Notify about pending presence subscription request */
LINPHONE_DEPRECATED LinphoneCoreAuthInfoRequestedCb auth_info_requested; /**< @deprecated Use authentication_requested instead. Ask the application some authentication information */
LinphoneCoreAuthenticationRequestedCb authentication_requested; /**< Ask the application some authentication information */
LinphoneCoreCallLogUpdatedCb call_log_updated; /**< Notifies that call log list has been updated */
LinphoneCoreMessageReceivedCb message_received; /**< a message is received, can be text or external body*/
LinphoneCoreCbsMessageReceivedUnableDecryptCb message_received_unable_decrypt; /**< an encrypted message is received but we can't decrypt it*/
LinphoneCoreIsComposingReceivedCb is_composing_received; /**< An is-composing notification has been received */
LinphoneCoreDtmfReceivedCb dtmf_received; /**< A dtmf has been received received */
LinphoneCoreReferReceivedCb refer_received; /**< An out of call refer was received */
LinphoneCoreCallEncryptionChangedCb call_encryption_changed; /**<Notifies on change in the encryption of call streams */
LinphoneCoreTransferStateChangedCb transfer_state_changed; /**<Notifies when a transfer is in progress */
LinphoneCoreBuddyInfoUpdatedCb buddy_info_updated; /**< a LinphoneFriend's BuddyInfo has changed*/
LinphoneCoreCallStatsUpdatedCb call_stats_updated; /**<Notifies on refreshing of call's statistics. */
LinphoneCoreInfoReceivedCb info_received; /**<Notifies an incoming informational message received.*/
LinphoneCoreSubscriptionStateChangedCb subscription_state_changed; /**<Notifies subscription state change */
LinphoneCoreNotifyReceivedCb notify_received; /**< Notifies a an event notification, see linphone_core_subscribe() */
LinphoneCorePublishStateChangedCb publish_state_changed;/**Notifies publish state change (only from #LinphoneEvent api)*/
LinphoneCoreConfiguringStatusCb configuring_status; /** Notifies configuring status changes */
LINPHONE_DEPRECATED DisplayStatusCb display_status; /**< @deprecated Callback that notifies various events with human readable
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
linPhoneSDK 最新版移植教程,代码示例 (706个子文件)
libbelcard.a 8.48MB
libbellesip.a 3.48MB
libvpx.a 1.16MB
libbelr.a 690KB
libopus.a 613KB
libmbedcrypto.a 529KB
libturbojpeg.a 441KB
libbcmatroska2.a 349KB
libspeex.a 229KB
libmbedtls.a 196KB
libantlr3c.a 163KB
libspeexdsp.a 161KB
libbcg729.a 131KB
libsrtp.a 110KB
libbzrtp.a 87KB
libmbedx509.a 86KB
libgsm.a 54KB
AUTHORS 1KB
bctoolbox 4MB
ChangeLog 5KB
Mediastreamer2Targets.cmake 7KB
LinphoneTargets.cmake 5KB
BZRTPTargets.cmake 4KB
BcToolboxConfig.cmake 4KB
BelleSIPTargets.cmake 4KB
BelcardTargets.cmake 4KB
BelrTargets.cmake 3KB
Mediastreamer2Config.cmake 3KB
BcToolboxTargets.cmake 3KB
LinphoneConfig.cmake 3KB
ORTPTargets.cmake 3KB
BcMatroska2Targets.cmake 3KB
Bcg729Targets.cmake 3KB
BcToolboxCMakeUtils.cmake 3KB
BelleSIPConfig.cmake 3KB
Bcg729Config.cmake 2KB
BelcardConfig.cmake 2KB
BZRTPConfig.cmake 2KB
BelrConfig.cmake 2KB
ORTPConfig.cmake 2KB
BcGitVersion.cmake 2KB
BcMatroska2Config.cmake 2KB
Mediastreamer2Targets-release.cmake 2KB
LinphoneConfigVersion.cmake 1KB
Mediastreamer2ConfigVersion.cmake 1KB
ORTPConfigVersion.cmake 1KB
BelleSIPConfigVersion.cmake 1KB
BcToolboxConfigVersion.cmake 1KB
BZRTPConfigVersion.cmake 1KB
Bcg729ConfigVersion.cmake 1KB
BcMatroska2ConfigVersion.cmake 1KB
BcToolboxTargets-release.cmake 871B
LinphoneTargets-release.cmake 860B
BcMatroska2Targets-release.cmake 859B
BelleSIPTargets-release.cmake 838B
BelcardTargets-release.cmake 833B
Bcg729Targets-release.cmake 824B
BZRTPTargets-release.cmake 817B
ORTPTargets-release.cmake 816B
BelrTargets-release.cmake 812B
COPYING 18KB
.DS_Store 10KB
.DS_Store 8KB
.DS_Store 6KB
.DS_Store 6KB
core.h 209KB
core.h 209KB
compat-1.3.h 132KB
ssl.h 114KB
config.h 78KB
turbojpeg.h 63KB
mediastream.h 51KB
mediastream.h 51KB
mediastream.h 51KB
headers.h 47KB
opus.h 47KB
crypto.h 47KB
crypto.h 47KB
types.h 45KB
types.h 45KB
vpx_encoder.h 40KB
call.h 39KB
call.h 39KB
presence.h 36KB
presence.h 36KB
ice.h 35KB
ice.h 35KB
ice.h 35KB
srtp.h 35KB
rtpsession.h 35KB
rtpsession.h 35KB
bn_mul.h 34KB
belle-sdp.h 33KB
opus_multistream.h 33KB
opus_defines.h 32KB
oid.h 29KB
callbacks.h 27KB
callbacks.h 27KB
rsa.h 27KB
cipher.h 26KB
共 706 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
叫我棒棒冰
- 粉丝: 3
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
- 6
前往页