mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Move public header files in the include/linphone directory.
This commit is contained in:
parent
a14a8f9f21
commit
33b72ce6b5
138 changed files with 930 additions and 655 deletions
|
|
@ -228,7 +228,6 @@ if(MSVC)
|
|||
include_directories(${MSVC_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
add_definitions("-DIN_LINPHONE")
|
||||
if(ENABLE_DEBUG_LOGS)
|
||||
add_definitions("-DDEBUG")
|
||||
endif()
|
||||
|
|
@ -307,6 +306,7 @@ endif()
|
|||
|
||||
add_subdirectory(java)
|
||||
add_subdirectory(coreapi)
|
||||
add_subdirectory(include)
|
||||
add_subdirectory(share)
|
||||
if(ENABLE_CONSOLE_UI)
|
||||
add_subdirectory(console)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ AM_CPPFLAGS=\
|
|||
-I$(top_srcdir)/include
|
||||
|
||||
COMMON_CFLAGS=\
|
||||
-DIN_LINPHONE \
|
||||
-D_ORTP_SOURCE \
|
||||
$(STRICT_OPTIONS) \
|
||||
$(STRICT_OPTIONS_CC) \
|
||||
|
|
|
|||
|
|
@ -31,9 +31,9 @@
|
|||
#endif /*_WIN32_WCE*/
|
||||
#include <limits.h>
|
||||
#include <ctype.h>
|
||||
#include <linphonecore.h>
|
||||
#include <linphone/core.h>
|
||||
#include "linphonec.h"
|
||||
#include "lpconfig.h"
|
||||
#include <linphone/lpconfig.h>
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <sys/wait.h>
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <linphonecore.h>
|
||||
#include <linphone/core.h>
|
||||
|
||||
#include "linphonec.h"
|
||||
#include <bctoolbox/vfs.h>
|
||||
|
|
|
|||
|
|
@ -30,31 +30,23 @@ if(NOT WIN32)
|
|||
endif()
|
||||
|
||||
|
||||
set(LINPHONE_HEADER_FILES
|
||||
account_creator.h
|
||||
buffer.h
|
||||
call_log.h
|
||||
call_params.h
|
||||
set(LINPHONE_PRIVATE_HEADER_FILES
|
||||
bellesip_sal/sal_impl.h
|
||||
carddav.h
|
||||
conference.h
|
||||
content.h
|
||||
event.h
|
||||
friendlist.h
|
||||
linphonecore.h
|
||||
linphonecore_utils.h
|
||||
linphonefriend.h
|
||||
linphonepresence.h
|
||||
linphone_proxy_config.h
|
||||
linphone_tunnel.h
|
||||
conference_private.h
|
||||
contactprovider.h
|
||||
contact_providers_priv.h
|
||||
enum.h
|
||||
ldap/ldapprovider.h
|
||||
lime.h
|
||||
lpc2xml.h
|
||||
lpconfig.h
|
||||
nat_policy.h
|
||||
offeranswer.h
|
||||
private.h
|
||||
quality_reporting.h
|
||||
ringtoneplayer.h
|
||||
sipsetup.h
|
||||
sqlite3_bctbx_vfs.h
|
||||
vcard_private.h
|
||||
xml2lpc.h
|
||||
xmlrpc.h
|
||||
vcard.h
|
||||
)
|
||||
|
||||
set(LINPHONE_SOURCE_FILES_C
|
||||
|
|
@ -63,7 +55,6 @@ set(LINPHONE_SOURCE_FILES_C
|
|||
authentication.c
|
||||
bellesip_sal/sal_address_impl.c
|
||||
bellesip_sal/sal_impl.c
|
||||
bellesip_sal/sal_impl.h
|
||||
bellesip_sal/sal_op_call.c
|
||||
bellesip_sal/sal_op_call_transfer.c
|
||||
bellesip_sal/sal_op_events.c
|
||||
|
|
@ -88,7 +79,6 @@ set(LINPHONE_SOURCE_FILES_C
|
|||
ec-calibrator.c
|
||||
echo-tester.c
|
||||
enum.c
|
||||
enum.h
|
||||
event.c
|
||||
friend.c
|
||||
friendlist.c
|
||||
|
|
@ -101,16 +91,13 @@ set(LINPHONE_SOURCE_FILES_C
|
|||
localplayer.c
|
||||
lpc2xml.c
|
||||
lpconfig.c
|
||||
lpconfig.h
|
||||
lsd.c
|
||||
message_storage.c
|
||||
misc.c
|
||||
nat_policy.c
|
||||
offeranswer.c
|
||||
offeranswer.h
|
||||
player.c
|
||||
presence.c
|
||||
private.h
|
||||
proxy.c
|
||||
quality_reporting.c
|
||||
remote_provisioning.c
|
||||
|
|
@ -202,7 +189,7 @@ apply_compile_flags(LINPHONE_SOURCE_FILES_CXX "CPP" "CXX")
|
|||
apply_compile_flags(LINPHONE_SOURCE_FILES_OBJC "CPP" "OBJC")
|
||||
|
||||
if(ENABLE_STATIC)
|
||||
add_library(linphone-static STATIC ${LINPHONE_HEADER_FILES} ${LINPHONE_SOURCE_FILES_C} ${LINPHONE_SOURCE_FILES_CXX} ${LINPHONE_SOURCE_FILES_OBJC})
|
||||
add_library(linphone-static STATIC ${LINPHONE_HEADER_FILES} ${LINPHONE_PRIVATE_HEADER_FILES} ${LINPHONE_SOURCE_FILES_C} ${LINPHONE_SOURCE_FILES_CXX} ${LINPHONE_SOURCE_FILES_OBJC})
|
||||
set_target_properties(linphone-static PROPERTIES OUTPUT_NAME linphone)
|
||||
add_dependencies(linphone-static liblinphone-git-version)
|
||||
target_link_libraries(linphone-static ${LIBS})
|
||||
|
|
@ -218,7 +205,7 @@ if(ENABLE_STATIC)
|
|||
)
|
||||
endif()
|
||||
if(ENABLE_SHARED)
|
||||
add_library(linphone SHARED ${LINPHONE_HEADER_FILES} ${LINPHONE_SOURCE_FILES_C} ${LINPHONE_SOURCE_FILES_CXX} ${LINPHONE_SOURCE_FILES_OBJC})
|
||||
add_library(linphone SHARED ${LINPHONE_HEADER_FILES} ${LINPHONE_PRIVATE_HEADER_FILES} ${LINPHONE_SOURCE_FILES_C} ${LINPHONE_SOURCE_FILES_CXX} ${LINPHONE_SOURCE_FILES_OBJC})
|
||||
|
||||
if(BELCARD_FOUND)
|
||||
if(APPLE)
|
||||
|
|
@ -273,9 +260,4 @@ if(ICONV_FOUND)
|
|||
endif()
|
||||
endif()
|
||||
|
||||
install(FILES ${LINPHONE_HEADER_FILES}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/linphone
|
||||
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
||||
)
|
||||
|
||||
add_subdirectory(help)
|
||||
|
|
|
|||
|
|
@ -22,34 +22,6 @@ BUILT_SOURCES=$(GITVERSION_FILE)
|
|||
CLEANFILES=$(GITVERSION_FILE)
|
||||
|
||||
## Process this file with automake to produce Makefile.in
|
||||
linphone_includedir=$(includedir)/linphone
|
||||
|
||||
linphone_include_HEADERS=\
|
||||
account_creator.h \
|
||||
buffer.h \
|
||||
call_log.h \
|
||||
call_params.h \
|
||||
conference.h \
|
||||
content.h \
|
||||
event.h \
|
||||
friendlist.h \
|
||||
linphonecore.h \
|
||||
linphonecore_utils.h \
|
||||
ringtoneplayer.h \
|
||||
linphonefriend.h \
|
||||
linphonepresence.h \
|
||||
linphone_proxy_config.h \
|
||||
linphone_tunnel.h \
|
||||
lpc2xml.h \
|
||||
lpconfig.h \
|
||||
nat_policy.h \
|
||||
sipsetup.h \
|
||||
sqlite3_bctbx_vfs.h \
|
||||
xml2lpc.h \
|
||||
xmlrpc.h \
|
||||
vcard.h \
|
||||
carddav.h
|
||||
|
||||
lib_LTLIBRARIES=liblinphone.la
|
||||
|
||||
liblinphone_la_SOURCES=\
|
||||
|
|
@ -58,6 +30,7 @@ liblinphone_la_SOURCES=\
|
|||
authentication.c \
|
||||
buffer.c \
|
||||
callbacks.c \
|
||||
carddav.h \
|
||||
call_log.c \
|
||||
call_params.c \
|
||||
chat.c \
|
||||
|
|
@ -78,7 +51,7 @@ liblinphone_la_SOURCES=\
|
|||
linphonecall.c \
|
||||
linphonecore.c \
|
||||
localplayer.c \
|
||||
lpc2xml.c \
|
||||
lpc2xml.c lpc2xml.h \
|
||||
lime.c lime.h\
|
||||
lpconfig.c \
|
||||
lsd.c \
|
||||
|
|
@ -95,7 +68,8 @@ liblinphone_la_SOURCES=\
|
|||
sal.c \
|
||||
siplogin.c \
|
||||
sipsetup.c \
|
||||
xml2lpc.c \
|
||||
vcard_private.h \
|
||||
xml2lpc.c xml2lpc.h \
|
||||
xml.c \
|
||||
xmlrpc.c \
|
||||
vtables.c \
|
||||
|
|
@ -165,7 +139,6 @@ liblinphone_la_LIBADD= \
|
|||
|
||||
|
||||
AM_CPPFLAGS=\
|
||||
-DIN_LINPHONE \
|
||||
-I$(top_srcdir) -I$(top_srcdir)/include -I$(builddir) \
|
||||
$(ORTP_CFLAGS) \
|
||||
$(MEDIASTREAMER_CFLAGS) \
|
||||
|
|
@ -173,7 +146,6 @@ AM_CPPFLAGS=\
|
|||
|
||||
COMMON_CFLAGS=\
|
||||
$(STRICT_OPTIONS) \
|
||||
-DIN_LINPHONE \
|
||||
$(SIPSTACK_CFLAGS) \
|
||||
-DENABLE_TRACE \
|
||||
-DLOG_DOMAIN=\"LinphoneCore\" \
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@
|
|||
#include "TunnelManager.hh"
|
||||
|
||||
#include "ortp/rtpsession.h"
|
||||
#include "linphonecore.h"
|
||||
#include "linphonecore_utils.h"
|
||||
#include "linphone/core.h"
|
||||
#include "linphone/core_utils.h"
|
||||
#include "private.h"
|
||||
|
||||
#ifdef ANDROID
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
#include <string>
|
||||
#include <tunnel/client.hh>
|
||||
#include <tunnel/udp_mirror.hh>
|
||||
#include "linphonecore.h"
|
||||
#include "linphone/core.h"
|
||||
#include "linphone_tunnel.h"
|
||||
|
||||
#ifndef USE_BELLESIP
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software
|
|||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "account_creator.h"
|
||||
#include "linphone/account_creator.h"
|
||||
#include "private.h"
|
||||
#if !_WIN32
|
||||
#include "regex.h"
|
||||
|
|
|
|||
|
|
@ -17,19 +17,10 @@ along with this program; if not, write to the Free Software
|
|||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "linphonecore.h"
|
||||
#include "lpconfig.h"
|
||||
#include "linphone/core.h"
|
||||
#include "linphone/lpconfig.h"
|
||||
#include "private.h"
|
||||
|
||||
/**
|
||||
* @addtogroup linphone_address
|
||||
* @{
|
||||
**/
|
||||
|
||||
/**
|
||||
* Constructs a LinphoneAddress object by parsing the user supplied address,
|
||||
* given as a string.
|
||||
**/
|
||||
LinphoneAddress * linphone_address_new(const char *addr){
|
||||
SalAddress *saddr=sal_address_new(addr);
|
||||
if (saddr==NULL)
|
||||
|
|
@ -37,167 +28,99 @@ LinphoneAddress * linphone_address_new(const char *addr){
|
|||
return saddr;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clones a LinphoneAddress object.
|
||||
**/
|
||||
LinphoneAddress * linphone_address_clone(const LinphoneAddress *addr){
|
||||
return sal_address_clone(addr);
|
||||
}
|
||||
|
||||
/**
|
||||
* Increment reference count of LinphoneAddress object.
|
||||
**/
|
||||
LinphoneAddress * linphone_address_ref(LinphoneAddress *addr){
|
||||
return sal_address_ref(addr);
|
||||
}
|
||||
|
||||
/**
|
||||
* Decrement reference count of LinphoneAddress object. When dropped to zero, memory is freed.
|
||||
**/
|
||||
void linphone_address_unref(LinphoneAddress *addr){
|
||||
sal_address_unref(addr);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the address scheme, normally "sip".
|
||||
**/
|
||||
const char *linphone_address_get_scheme(const LinphoneAddress *u){
|
||||
return sal_address_get_scheme(u);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the display name.
|
||||
**/
|
||||
const char *linphone_address_get_display_name(const LinphoneAddress* u){
|
||||
return sal_address_get_display_name(u);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the username.
|
||||
**/
|
||||
const char *linphone_address_get_username(const LinphoneAddress *u){
|
||||
return sal_address_get_username(u);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the domain name.
|
||||
**/
|
||||
const char *linphone_address_get_domain(const LinphoneAddress *u){
|
||||
return sal_address_get_domain(u);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the display name.
|
||||
**/
|
||||
int linphone_address_get_port(const LinphoneAddress *u) {
|
||||
return sal_address_get_port(u);
|
||||
}
|
||||
|
||||
int linphone_address_set_display_name(LinphoneAddress *u, const char *display_name){
|
||||
sal_address_set_display_name(u,display_name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the username.
|
||||
**/
|
||||
int linphone_address_set_username(LinphoneAddress *uri, const char *username){
|
||||
sal_address_set_username(uri,username);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the domain.
|
||||
**/
|
||||
int linphone_address_set_domain(LinphoneAddress *uri, const char *host){
|
||||
sal_address_set_domain(uri,host);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the port number.
|
||||
**/
|
||||
int linphone_address_set_port(LinphoneAddress *uri, int port){
|
||||
sal_address_set_port(uri,port);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set a transport.
|
||||
**/
|
||||
int linphone_address_set_transport(LinphoneAddress *uri, LinphoneTransportType tp){
|
||||
sal_address_set_transport(uri,(SalTransport)tp);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the transport.
|
||||
**/
|
||||
LinphoneTransportType linphone_address_get_transport(const LinphoneAddress *uri){
|
||||
return (LinphoneTransportType)sal_address_get_transport(uri);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value of the method parameter
|
||||
**/
|
||||
void linphone_address_set_method_param(LinphoneAddress *addr, const char *method) {
|
||||
sal_address_set_method_param(addr, method);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the value of the method parameter
|
||||
**/
|
||||
const char *linphone_address_get_method_param(const LinphoneAddress *addr) {
|
||||
return sal_address_get_method_param(addr);
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes address's tags and uri headers so that it is displayable to the user.
|
||||
**/
|
||||
void linphone_address_clean(LinphoneAddress *uri){
|
||||
sal_address_clean(uri);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the address as a string.
|
||||
* The returned char * must be freed by the application. Use ms_free().
|
||||
**/
|
||||
char *linphone_address_as_string(const LinphoneAddress *u){
|
||||
return sal_address_as_string(u);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the SIP uri only as a string, that is display name is removed.
|
||||
* The returned char * must be freed by the application. Use ms_free().
|
||||
**/
|
||||
char *linphone_address_as_string_uri_only(const LinphoneAddress *u){
|
||||
return sal_address_as_string_uri_only(u);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if address refers to a secure location (sips)
|
||||
* @deprecated use linphone_address_get_secure()
|
||||
**/
|
||||
bool_t linphone_address_is_secure(const LinphoneAddress *uri){
|
||||
return sal_address_is_secure(uri);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if address refers to a secure location (sips)
|
||||
**/
|
||||
bool_t linphone_address_get_secure(const LinphoneAddress *uri){
|
||||
return sal_address_is_secure(uri);
|
||||
}
|
||||
|
||||
/**
|
||||
* Make the address refer to a secure location (sips scheme)
|
||||
* @param[in] addr A #LinphoneAddress object
|
||||
* @param[in] enabled TRUE if address is requested to be secure.
|
||||
**/
|
||||
void linphone_address_set_secure(LinphoneAddress *addr, bool_t enabled){
|
||||
sal_address_set_secure(addr, enabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* returns true if address is a routable sip address
|
||||
*/
|
||||
bool_t linphone_address_is_sip(const LinphoneAddress *uri){
|
||||
return sal_address_is_sip(uri);
|
||||
}
|
||||
|
|
@ -208,13 +131,6 @@ static bool_t strings_equals(const char *s1, const char *s2){
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Compare two LinphoneAddress ignoring tags and headers, basically just domain, username, and port.
|
||||
* @param[in] a1 LinphoneAddress object
|
||||
* @param[in] a2 LinphoneAddress object
|
||||
* @return Boolean value telling if the LinphoneAddress objects are equal.
|
||||
* @see linphone_address_equal()
|
||||
**/
|
||||
bool_t linphone_address_weak_equal(const LinphoneAddress *a1, const LinphoneAddress *a2){
|
||||
const char *u1,*u2;
|
||||
const char *h1,*h2;
|
||||
|
|
@ -228,13 +144,6 @@ bool_t linphone_address_weak_equal(const LinphoneAddress *a1, const LinphoneAddr
|
|||
return strings_equals(u1,u2) && strings_equals(h1,h2) && p1==p2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Compare two LinphoneAddress taking the tags and headers into account.
|
||||
* @param[in] a1 LinphoneAddress object
|
||||
* @param[in] a2 LinphoneAddress object
|
||||
* @return Boolean value telling if the LinphoneAddress objects are equal.
|
||||
* @see linphone_address_weak_equal()
|
||||
*/
|
||||
bool_t linphone_address_equal(const LinphoneAddress *a1, const LinphoneAddress *a2) {
|
||||
char *s1;
|
||||
char *s2;
|
||||
|
|
@ -249,52 +158,18 @@ bool_t linphone_address_equal(const LinphoneAddress *a1, const LinphoneAddress *
|
|||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* Destroys a LinphoneAddress object (actually calls linphone_address_unref()).
|
||||
* @deprecated Use linphone_address_unref() instead
|
||||
**/
|
||||
void linphone_address_destroy(LinphoneAddress *u){
|
||||
sal_address_unref(u);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get port number as an integer value.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Get port number, 0 if not present.
|
||||
*/
|
||||
int linphone_address_get_port(const LinphoneAddress *u) {
|
||||
return sal_address_get_port(u);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the password encoded in the address.
|
||||
* It is used for basic authentication (not recommended).
|
||||
* @param addr the LinphoneAddress
|
||||
* @param passwd the password to set.
|
||||
**/
|
||||
void linphone_address_set_password(LinphoneAddress *addr, const char *passwd){
|
||||
sal_address_set_password(addr,passwd);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the password encoded in the address.
|
||||
* It is used for basic authentication (not recommended).
|
||||
* @param addr the address
|
||||
* @return the password, if any, NULL otherwise.
|
||||
**/
|
||||
const char *linphone_address_get_password(const LinphoneAddress *addr){
|
||||
return sal_address_get_password(addr);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set a header into the address.
|
||||
* Headers appear in the URI with '?', such as <sip:test@linphone.org?SomeHeader=SomeValue>.
|
||||
* @param addr the address
|
||||
* @param header_name the header name
|
||||
* @param header_value the header value
|
||||
**/
|
||||
void linphone_address_set_header(LinphoneAddress *addr, const char *header_name, const char *header_value){
|
||||
sal_address_set_header(addr,header_name,header_value);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,9 +22,9 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "linphonecore.h"
|
||||
#include "linphone/core.h"
|
||||
#include "private.h"
|
||||
#include "lpconfig.h"
|
||||
#include "linphone/lpconfig.h"
|
||||
|
||||
/**
|
||||
* @addtogroup authentication
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
*/
|
||||
#include "sal_impl.h"
|
||||
|
||||
#include "linphonecore.h"
|
||||
#include "linphone/core.h"
|
||||
#include "private.h"
|
||||
#include "lime.h"
|
||||
#include <libxml/xmlwriter.h>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software
|
|||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "linphonecore.h"
|
||||
#include "linphone/core.h"
|
||||
#include "private.h"
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -20,10 +20,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
|
||||
#include "sal/sal.h"
|
||||
|
||||
#include "linphonecore.h"
|
||||
#include "linphone/core.h"
|
||||
#include "private.h"
|
||||
#include "mediastreamer2/mediastream.h"
|
||||
#include "lpconfig.h"
|
||||
#include "linphone/lpconfig.h"
|
||||
|
||||
// stat
|
||||
#ifndef _WIN32
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software
|
|||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "linphonecore.h"
|
||||
#include "linphone/core.h"
|
||||
#include "private.h"
|
||||
|
||||
LinphoneCardDavContext* linphone_carddav_context_new(LinphoneFriendList *lfl) {
|
||||
|
|
@ -764,4 +764,4 @@ static LinphoneCardDavQuery* linphone_carddav_create_addressbook_multiget_query(
|
|||
void linphone_carddav_pull_vcards(LinphoneCardDavContext *cdc, bctbx_list_t *vcards_to_pull) {
|
||||
LinphoneCardDavQuery *query = linphone_carddav_create_addressbook_multiget_query(cdc, vcards_to_pull);
|
||||
linphone_carddav_send_query(query);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
#ifndef LINPHONE_CARDDAV_H
|
||||
#define LINPHONE_CARDDAV_H
|
||||
|
||||
#include "linphonecore.h"
|
||||
#include "linphone/core.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
@ -167,4 +167,4 @@ void linphone_carddav_pull_vcards(LinphoneCardDavContext *cdc, MSList *vcards_to
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -22,9 +22,9 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "linphonecore.h"
|
||||
#include "linphone/core.h"
|
||||
#include "private.h"
|
||||
#include "lpconfig.h"
|
||||
#include "linphone/lpconfig.h"
|
||||
#include "belle-sip/belle-sip.h"
|
||||
#include "ortp/b64.h"
|
||||
#include "lime.h"
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "linphonecore.h"
|
||||
#include "linphone/core.h"
|
||||
#include "private.h"
|
||||
#include "lime.h"
|
||||
#include "ortp/b64.h"
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@
|
|||
#ifndef CONFERENCE_PRIVATE_H
|
||||
#define CONFERENCE_PRIVATE_H
|
||||
|
||||
#include "linphonecore.h"
|
||||
#include "conference.h"
|
||||
#include "linphone/core.h"
|
||||
#include "linphone/conference.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
#define CONTACT_PROVIDERS_PRIV_H
|
||||
|
||||
#include "private.h"
|
||||
#include "linphonecore.h"
|
||||
#include "linphone/core.h"
|
||||
|
||||
/* Base for contact search and contact provider */
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "contact_providers_priv.h"
|
||||
#include "contactprovider.h"
|
||||
#include <linphonecore.h>
|
||||
#include <linphone/core.h>
|
||||
|
||||
/* ############################ *
|
||||
* LinphoneContactSearchRequest *
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "linphonecore.h"
|
||||
#include "linphone/core.h"
|
||||
|
||||
/* LinphoneContactSearchRequest */
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software
|
|||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "linphonecore.h"
|
||||
#include "linphone/core.h"
|
||||
#include "private.h"
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ Copyright (C) 2000 Simon MORLAT (simon.morlat@linphone.org)
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "linphonecore_utils.h"
|
||||
#include "linphone/core_utils.h"
|
||||
|
||||
/*
|
||||
* http://en.wikipedia.org/wiki/Telephone_numbering_plan
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@ along with this program; if not, write to the Free Software
|
|||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "linphonecore.h"
|
||||
#include "lpconfig.h"
|
||||
#include "linphone/core.h"
|
||||
#include "linphone/lpconfig.h"
|
||||
#include "private.h"
|
||||
|
||||
#include <belle-sip/belle-sip.h>
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
#include "mediastreamer2/mstonedetector.h"
|
||||
#include "mediastreamer2/dtmfgen.h"
|
||||
|
||||
#include "lpconfig.h"
|
||||
#include "linphone/lpconfig.h"
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
*/
|
||||
|
||||
#include "private.h"
|
||||
#include "lpconfig.h"
|
||||
#include "linphone/lpconfig.h"
|
||||
|
||||
const char * linphone_subscription_dir_to_string(LinphoneSubscriptionDir dir){
|
||||
switch(dir){
|
||||
|
|
|
|||
|
|
@ -22,9 +22,9 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "linphonecore.h"
|
||||
#include "linphone/core.h"
|
||||
#include "private.h"
|
||||
#include "lpconfig.h"
|
||||
#include "linphone/lpconfig.h"
|
||||
|
||||
#ifdef SQLITE_STORAGE_ENABLED
|
||||
#ifndef _WIN32
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software
|
|||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "linphonecore.h"
|
||||
#include "linphone/core.h"
|
||||
#include "private.h"
|
||||
|
||||
#include <bctoolbox/crypto.h>
|
||||
|
|
|
|||
|
|
@ -69,7 +69,6 @@ if (ENABLE_TOOLS)
|
|||
if (IOS)
|
||||
set(USE_BUNDLE MACOSX_BUNDLE)
|
||||
endif()
|
||||
add_definitions(-DIN_LINPHONE)
|
||||
file(GLOB EXECUTABLES_SOURCE RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.c")
|
||||
foreach(EXECUTABLE ${EXECUTABLES_SOURCE})
|
||||
string(REPLACE ".c" "" EXECUTABLE_NAME ${EXECUTABLE})
|
||||
|
|
|
|||
|
|
@ -771,7 +771,7 @@ WARN_LOGFILE =
|
|||
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
|
||||
# Note: If this tag is empty the current directory is searched.
|
||||
|
||||
INPUT = @top_srcdir@/coreapi \
|
||||
INPUT = @top_srcdir@/include/linphone \
|
||||
@top_srcdir@/coreapi/help
|
||||
|
||||
# This tag can be used to specify the character encoding of the source files
|
||||
|
|
|
|||
|
|
@ -95,7 +95,6 @@ AM_CFLAGS=\
|
|||
-I$(top_srcdir)/coreapi \
|
||||
$(STRICT_OPTIONS) \
|
||||
$(STRICT_OPTIONS_CC) \
|
||||
-DIN_LINPHONE \
|
||||
$(ORTP_CFLAGS) \
|
||||
$(MEDIASTREAMER_CFLAGS) \
|
||||
-DENABLE_TRACE \
|
||||
|
|
|
|||
|
|
@ -33,11 +33,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
*
|
||||
*/
|
||||
|
||||
#ifdef IN_LINPHONE
|
||||
#include "linphonecore.h"
|
||||
#else
|
||||
#include "linphone/linphonecore.h"
|
||||
#endif
|
||||
#include "linphone/core.h"
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -32,11 +32,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
*
|
||||
*/
|
||||
|
||||
#ifdef IN_LINPHONE
|
||||
#include "linphonecore.h"
|
||||
#else
|
||||
#include "linphone/linphonecore.h"
|
||||
#endif
|
||||
#include "linphone/core.h"
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -32,11 +32,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
*
|
||||
*/
|
||||
|
||||
#ifdef IN_LINPHONE
|
||||
#include "linphonecore.h"
|
||||
#else
|
||||
#include "linphone/linphonecore.h"
|
||||
#endif
|
||||
#include "linphone/core.h"
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -27,11 +27,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
|
||||
@include helloworld.c
|
||||
*/
|
||||
#ifdef IN_LINPHONE
|
||||
#include "linphonecore.h"
|
||||
#else
|
||||
#include "linphone/linphonecore.h"
|
||||
#endif
|
||||
|
||||
#include "linphone/core.h"
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -36,11 +36,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
|
||||
#define DEBUG 1
|
||||
|
||||
#ifdef IN_LINPHONE
|
||||
#include "linphonecore.h"
|
||||
#else
|
||||
#include "linphone/linphonecore.h"
|
||||
#endif
|
||||
#include "linphone/core.h"
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -26,11 +26,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
|
||||
@include realtimetext_sender.c
|
||||
*/
|
||||
#ifdef IN_LINPHONE
|
||||
#include "linphonecore.h"
|
||||
#else
|
||||
#include "linphone/linphonecore.h"
|
||||
#endif
|
||||
|
||||
#include "linphone/core.h"
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -27,11 +27,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
|
||||
@include realtimetext_sender.c
|
||||
*/
|
||||
#ifdef IN_LINPHONE
|
||||
#include "linphonecore.h"
|
||||
#else
|
||||
#include "linphone/linphonecore.h"
|
||||
#endif
|
||||
|
||||
#include "linphone/core.h"
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -33,11 +33,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
*
|
||||
*/
|
||||
|
||||
#ifdef IN_LINPHONE
|
||||
#include "linphonecore.h"
|
||||
#else
|
||||
#include "linphone/linphonecore.h"
|
||||
#endif
|
||||
#include "linphone/core.h"
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -23,9 +23,9 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "linphonecore.h"
|
||||
#include "linphone/core.h"
|
||||
#include "private.h"
|
||||
#include "lpconfig.h"
|
||||
#include "linphone/lpconfig.h"
|
||||
|
||||
|
||||
struct _LinphoneInfoMessage{
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ldapprovider.h"
|
||||
#include "private.h"
|
||||
#include "lpconfig.h"
|
||||
#include "linphone/lpconfig.h"
|
||||
#include "contact_providers_priv.h"
|
||||
#include "mediastreamer2/mscommon.h"
|
||||
#include <belle-sip/dict.h>
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
#endif
|
||||
|
||||
#ifdef HAVE_LIME
|
||||
#include "linphonecore.h"
|
||||
#include "linphone/core.h"
|
||||
#include "bctoolbox/crypto.h"
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -25,9 +25,9 @@
|
|||
|
||||
#include "TunnelManager.hh"
|
||||
#include "linphone_tunnel.h"
|
||||
#include "linphonecore.h"
|
||||
#include "linphone/core.h"
|
||||
#include "private.h"
|
||||
#include "lpconfig.h"
|
||||
#include "linphone/lpconfig.h"
|
||||
|
||||
LinphoneTunnel* linphone_core_get_tunnel(const LinphoneCore *lc){
|
||||
return lc->tunnel;
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "linphone_tunnel.h"
|
||||
#include "linphone/tunnel.h"
|
||||
#include "private.h"
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -23,10 +23,10 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "linphone_tunnel.h"
|
||||
#include "linphonecore.h"
|
||||
#include "linphone/tunnel.h"
|
||||
#include "linphone/core.h"
|
||||
#include "private.h"
|
||||
#include "lpconfig.h"
|
||||
#include "linphone/lpconfig.h"
|
||||
|
||||
|
||||
LinphoneTunnel* linphone_core_get_tunnel(const LinphoneCore *lc){
|
||||
|
|
|
|||
|
|
@ -21,9 +21,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
#ifdef _WIN32
|
||||
#include <time.h>
|
||||
#endif
|
||||
#include "linphonecore.h"
|
||||
#include "sipsetup.h"
|
||||
#include "lpconfig.h"
|
||||
#include "linphone/core.h"
|
||||
#include "linphone/sipsetup.h"
|
||||
#include "linphone/lpconfig.h"
|
||||
#include "private.h"
|
||||
#include "conference_private.h"
|
||||
|
||||
|
|
@ -4192,10 +4192,6 @@ bool_t linphone_call_media_in_progress(LinphoneCall *call){
|
|||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the local loss rate since last report
|
||||
* @return The sender loss rate
|
||||
**/
|
||||
float linphone_call_stats_get_sender_loss_rate(const LinphoneCallStats *stats) {
|
||||
const report_block_t *srb = NULL;
|
||||
|
||||
|
|
@ -4213,10 +4209,6 @@ float linphone_call_stats_get_sender_loss_rate(const LinphoneCallStats *stats) {
|
|||
return 100.0f * report_block_get_fraction_lost(srb) / 256.0f;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the remote reported loss rate since last report
|
||||
* @return The receiver loss rate
|
||||
**/
|
||||
float linphone_call_stats_get_receiver_loss_rate(const LinphoneCallStats *stats) {
|
||||
const report_block_t *rrb = NULL;
|
||||
|
||||
|
|
@ -4234,10 +4226,6 @@ float linphone_call_stats_get_receiver_loss_rate(const LinphoneCallStats *stats)
|
|||
return 100.0f * report_block_get_fraction_lost(rrb) / 256.0f;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the local interarrival jitter
|
||||
* @return The interarrival jitter at last emitted sender report
|
||||
**/
|
||||
float linphone_call_stats_get_sender_interarrival_jitter(const LinphoneCallStats *stats, LinphoneCall *call) {
|
||||
const LinphoneCallParams *params;
|
||||
const PayloadType *pt;
|
||||
|
|
@ -4266,10 +4254,6 @@ float linphone_call_stats_get_sender_interarrival_jitter(const LinphoneCallStats
|
|||
return (float)report_block_get_interarrival_jitter(srb) / (float)pt->clock_rate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the remote reported interarrival jitter
|
||||
* @return The interarrival jitter at last received receiver report
|
||||
**/
|
||||
float linphone_call_stats_get_receiver_interarrival_jitter(const LinphoneCallStats *stats, LinphoneCall *call) {
|
||||
const LinphoneCallParams *params;
|
||||
const PayloadType *pt;
|
||||
|
|
@ -4309,46 +4293,22 @@ rtp_stats_t linphone_call_stats_get_rtp_stats(const LinphoneCallStats *stats) {
|
|||
return rtp_stats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the cumulative number of late packets
|
||||
* @return The cumulative number of late packets
|
||||
**/
|
||||
uint64_t linphone_call_stats_get_late_packets_cumulative_number(const LinphoneCallStats *stats, LinphoneCall *call) {
|
||||
return linphone_call_stats_get_rtp_stats(stats).outoftime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the bandwidth measurement of the received stream, expressed in kbit/s, including IP/UDP/RTP headers.
|
||||
* @param[in] stats LinphoneCallStats object
|
||||
* @return The bandwidth measurement of the received stream in kbit/s.
|
||||
*/
|
||||
float linphone_call_stats_get_download_bandwidth(const LinphoneCallStats *stats) {
|
||||
return stats->download_bandwidth;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the bandwidth measurement of the sent stream, expressed in kbit/s, including IP/UDP/RTP headers.
|
||||
* @param[in] stats LinphoneCallStats object
|
||||
* @return The bandwidth measurement of the sent stream in kbit/s.
|
||||
*/
|
||||
float linphone_call_stats_get_upload_bandwidth(const LinphoneCallStats *stats) {
|
||||
return stats->upload_bandwidth;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the state of ICE processing.
|
||||
* @param[in] stats LinphoneCallStats object
|
||||
* @return The state of ICE processing.
|
||||
*/
|
||||
LinphoneIceState linphone_call_stats_get_ice_state(const LinphoneCallStats *stats) {
|
||||
return stats->ice_state;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the state of uPnP processing.
|
||||
* @param[in] stats LinphoneCallStats object
|
||||
* @return The state of uPnP processing.
|
||||
*/
|
||||
LinphoneUpnpState linphone_call_stats_get_upnp_state(const LinphoneCallStats *stats) {
|
||||
return stats->upnp_state;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,9 +18,9 @@ along with this program; if not, write to the Free Software
|
|||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "linphonecore.h"
|
||||
#include "sipsetup.h"
|
||||
#include "lpconfig.h"
|
||||
#include "linphone/core.h"
|
||||
#include "linphone/sipsetup.h"
|
||||
#include "linphone/lpconfig.h"
|
||||
#include "private.h"
|
||||
#include "quality_reporting.h"
|
||||
#include "lime.h"
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
#ifndef LPC2XML_H_
|
||||
#define LPC2XML_H_
|
||||
|
||||
#include "lpconfig.h"
|
||||
#include "linphone/lpconfig.h"
|
||||
|
||||
typedef struct _lpc2xml_context lpc2xml_context;
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
#define MAX_LEN 16384
|
||||
|
||||
#include "linphonecore.h"
|
||||
#include "linphone/core.h"
|
||||
#include "bctoolbox/vfs.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
@ -56,7 +56,7 @@
|
|||
|
||||
#define lp_new0(type,n) (type*)calloc(sizeof(type),n)
|
||||
|
||||
#include "lpconfig.h"
|
||||
#include "linphone/lpconfig.h"
|
||||
#include "lpc2xml.h"
|
||||
|
||||
typedef struct _LpItem{
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
simultaneous sound access.
|
||||
*/
|
||||
|
||||
#include "linphonecore_utils.h"
|
||||
#include "linphone/core_utils.h"
|
||||
#include "private.h"
|
||||
#include "mediastreamer2/msticker.h"
|
||||
#include "mediastreamer2/mssndcard.h"
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
*/
|
||||
|
||||
#include "private.h"
|
||||
#include "linphonecore.h"
|
||||
#include "linphone/core.h"
|
||||
|
||||
|
||||
#ifdef SQLITE_STORAGE_ENABLED
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
*/
|
||||
|
||||
#include "private.h"
|
||||
#include "lpconfig.h"
|
||||
#include "linphone/lpconfig.h"
|
||||
#include "mediastreamer2/mediastream.h"
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software
|
|||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "linphonecore.h"
|
||||
#include "linphone/core.h"
|
||||
#include "private.h"
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
#ifdef IN_LINPHONE
|
||||
#include "linphonecore.h"
|
||||
#include "lpconfig.h"
|
||||
#else
|
||||
#include <linphone/linphonecore.h>
|
||||
#include <linphone/core.h>
|
||||
#include <linphone/lpconfig.h>
|
||||
#endif
|
||||
#include <libsoup/soup.h>
|
||||
|
||||
#define SERIALIZE_HTTPS 0
|
||||
|
|
|
|||
|
|
@ -17,10 +17,10 @@ along with this program; if not, write to the Free Software
|
|||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "linphonecore.h"
|
||||
#include "linphone/core.h"
|
||||
#include "private.h"
|
||||
#include "lpconfig.h"
|
||||
#include "linphonepresence.h"
|
||||
#include "linphone/lpconfig.h"
|
||||
#include "linphone/presence.h"
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -25,17 +25,18 @@
|
|||
#ifndef _PRIVATE_H
|
||||
#define _PRIVATE_H
|
||||
|
||||
#include "linphonecore.h"
|
||||
#include "linphonefriend.h"
|
||||
#include "friendlist.h"
|
||||
#include "linphone_tunnel.h"
|
||||
#include "linphonecore_utils.h"
|
||||
#include "conference.h"
|
||||
#include "linphone/core.h"
|
||||
#include "linphone/friend.h"
|
||||
#include "linphone/friendlist.h"
|
||||
#include "linphone/tunnel.h"
|
||||
#include "linphone/core_utils.h"
|
||||
#include "linphone/conference.h"
|
||||
#include "sal/sal.h"
|
||||
#include "sipsetup.h"
|
||||
#include "linphone/sipsetup.h"
|
||||
#include "quality_reporting.h"
|
||||
#include "ringtoneplayer.h"
|
||||
#include "vcard.h"
|
||||
#include "vcard_private.h"
|
||||
#include "carddav.h"
|
||||
|
||||
#include "bctoolbox/port.h"
|
||||
#include "bctoolbox/vfs.h"
|
||||
|
|
|
|||
|
|
@ -18,10 +18,10 @@ Copyright (C) 2000 Simon MORLAT (simon.morlat@linphone.org)
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "linphonecore.h"
|
||||
#include "linphonecore_utils.h"
|
||||
#include "sipsetup.h"
|
||||
#include "lpconfig.h"
|
||||
#include "linphone/core.h"
|
||||
#include "linphone/core_utils.h"
|
||||
#include "linphone/sipsetup.h"
|
||||
#include "linphone/lpconfig.h"
|
||||
#include "private.h"
|
||||
#include "mediastreamer2/mediastream.h"
|
||||
#include "enum.h"
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "linphonecore.h"
|
||||
#include "linphone/core.h"
|
||||
#include "private.h"
|
||||
#include "sal/sal.h"
|
||||
#include "ortp/rtpsession.h"
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
#ifndef quality_reporting_h
|
||||
#define quality_reporting_h
|
||||
|
||||
#include "linphonecore.h"
|
||||
#include "linphone/core.h"
|
||||
#include "sal/sal.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software
|
|||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "linphonecore.h"
|
||||
#include "linphone/core.h"
|
||||
#include "private.h"
|
||||
#include <ctype.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "linphonecore.h"
|
||||
#include "linphone/core.h"
|
||||
|
||||
extern SipSetup linphone_sip_login;
|
||||
static SipSetup *all_sip_setups[]={
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
#include "belcard/belcard_parser.hpp"
|
||||
#include "sal/sal.h"
|
||||
#include <bctoolbox/crypto.h>
|
||||
#include "linphonecore.h"
|
||||
#include "linphone/core.h"
|
||||
|
||||
#define VCARD_MD5_HASH_SIZE 16
|
||||
|
||||
|
|
@ -399,4 +399,4 @@ void linphone_vcard_clean_cache(LinphoneVcard *vCard) {
|
|||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
97
coreapi/vcard_private.h
Normal file
97
coreapi/vcard_private.h
Normal file
|
|
@ -0,0 +1,97 @@
|
|||
/*
|
||||
vcard_private.h
|
||||
Copyright (C) 2010-2016 Belledonne Communications SARL
|
||||
|
||||
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 LINPHONE_VCARD_PRIVATE_H
|
||||
#define LINPHONE_VCARD_PRIVATE_H
|
||||
|
||||
#include "linphone/vcard.h"
|
||||
|
||||
/**
|
||||
* The LinphoneVcardContext object.
|
||||
*/
|
||||
typedef struct _LinphoneVcardContext LinphoneVcardContext;
|
||||
|
||||
/**
|
||||
* Creates a vCard context to reuse the same BelCardParser object
|
||||
* @return a new LinphoneVcardContext object
|
||||
*/
|
||||
LINPHONE_PUBLIC LinphoneVcardContext* linphone_vcard_context_new(void);
|
||||
|
||||
/**
|
||||
* Destroys the vCard context
|
||||
* @param[in] context a LinphoneVcardContext object
|
||||
*/
|
||||
LINPHONE_PUBLIC void linphone_vcard_context_destroy(LinphoneVcardContext *context);
|
||||
|
||||
/**
|
||||
* Gets the user data set in the LinphoneVcardContext
|
||||
* @param[in] context a LinphoneVcardContext object
|
||||
* @return the user data pointer
|
||||
*/
|
||||
LINPHONE_PUBLIC void* linphone_vcard_context_get_user_data(const LinphoneVcardContext *context);
|
||||
|
||||
/**
|
||||
* Sets the user data in the LinphoneVcardContext
|
||||
* @param[in] context a LinphoneVcardContext object
|
||||
* @param[in] data the user data pointer
|
||||
*/
|
||||
LINPHONE_PUBLIC void linphone_vcard_context_set_user_data(LinphoneVcardContext *context, void *data);
|
||||
|
||||
/**
|
||||
* Uses belcard to parse the content of a file and returns all the vcards it contains as LinphoneVcards, or NULL if it contains none.
|
||||
* @param[in] context the vCard context to use (speed up the process by not creating a Belcard parser each time)
|
||||
* @param[in] file the path to the file to parse
|
||||
* @return \bctbx_list{LinphoneVcard}
|
||||
*/
|
||||
LINPHONE_PUBLIC bctbx_list_t* linphone_vcard_context_get_vcard_list_from_file(LinphoneVcardContext *context, const char *file);
|
||||
|
||||
/**
|
||||
* Uses belcard to parse the content of a buffer and returns all the vcards it contains as LinphoneVcards, or NULL if it contains none.
|
||||
* @param[in] context the vCard context to use (speed up the process by not creating a Belcard parser each time)
|
||||
* @param[in] buffer the buffer to parse
|
||||
* @return \bctbx_list{LinphoneVcard}
|
||||
*/
|
||||
LINPHONE_PUBLIC bctbx_list_t* linphone_vcard_context_get_vcard_list_from_buffer(LinphoneVcardContext *context, const char *buffer);
|
||||
|
||||
/**
|
||||
* Uses belcard to parse the content of a buffer and returns one vCard if possible, or NULL otherwise.
|
||||
* @param[in] context the vCard context to use (speed up the process by not creating a Belcard parser each time)
|
||||
* @param[in] buffer the buffer to parse
|
||||
* @return a LinphoneVcard if one could be parsed, or NULL otherwise
|
||||
*/
|
||||
LINPHONE_PUBLIC LinphoneVcard* linphone_vcard_context_get_vcard_from_buffer(LinphoneVcardContext *context, const char *buffer);
|
||||
|
||||
|
||||
/**
|
||||
* Computes the md5 hash for the vCard
|
||||
* @param[in] vCard the LinphoneVcard
|
||||
*/
|
||||
void linphone_vcard_compute_md5_hash(LinphoneVcard *vCard);
|
||||
|
||||
/**
|
||||
* Compares the previously computed md5 hash (using linphone_vcard_compute_md5_hash) with the current one
|
||||
* @param[in] vCard the LinphoneVcard
|
||||
* @return 0 if the md5 hasn't changed, 1 otherwise
|
||||
*/
|
||||
bool_t linphone_vcard_compare_md5_hash(LinphoneVcard *vCard);
|
||||
|
||||
void linphone_vcard_clean_cache(LinphoneVcard *vCard);
|
||||
|
||||
#endif /* LINPHONE_VCARD_PRIVATE_H */
|
||||
|
|
@ -17,8 +17,8 @@ along with this program; if not, write to the Free Software
|
|||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "vcard.h"
|
||||
#include "linphonecore.h"
|
||||
#include "linphone/core.h"
|
||||
#include "vcard_private.h"
|
||||
|
||||
struct _LinphoneVcardContext {
|
||||
void *user_data;
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
#ifndef XML2LPC_H_
|
||||
#define XML2LPC_H_
|
||||
|
||||
#include "lpconfig.h"
|
||||
#include "linphone/lpconfig.h"
|
||||
|
||||
typedef struct _xml2lpc_context xml2lpc_context;
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software
|
|||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "linphonecore.h"
|
||||
#include "linphone/core.h"
|
||||
#include "private.h"
|
||||
|
||||
#include <string.h>
|
||||
|
|
|
|||
|
|
@ -93,8 +93,8 @@ linphone_daemon_LDADD=$(top_builddir)/coreapi/liblinphone.la $(READLINE_LIBS) \
|
|||
$(LIBXML2_LIBS) \
|
||||
$(BCTOOLBOX_LIBS)
|
||||
|
||||
AM_CFLAGS=$(READLINE_CFLAGS) -DIN_LINPHONE $(STRICT_OPTIONS)
|
||||
AM_CXXFLAGS=$(READLINE_CXXFLAGS) -DIN_LINPHONE $(STRICT_OPTIONS)
|
||||
AM_CFLAGS=$(READLINE_CFLAGS) $(STRICT_OPTIONS)
|
||||
AM_CXXFLAGS=$(READLINE_CXXFLAGS) $(STRICT_OPTIONS)
|
||||
|
||||
INCLUDES = \
|
||||
-I$(top_srcdir) \
|
||||
|
|
|
|||
|
|
@ -18,9 +18,9 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
*/
|
||||
|
||||
#include "register.h"
|
||||
#include "linphonecore.h"
|
||||
#include "linphone/core.h"
|
||||
#include "private.h"
|
||||
#include "lpconfig.h"
|
||||
#include "linphone/lpconfig.h"
|
||||
#include <string.h>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
#ifndef DAEMON_H_
|
||||
#define DAEMON_H_
|
||||
|
||||
#include <linphonecore.h>
|
||||
#include <linphonecore_utils.h>
|
||||
#include <linphone/core.h>
|
||||
#include <linphone/core_utils.h>
|
||||
#include <mediastreamer2/mediastream.h>
|
||||
#include <mediastreamer2/mscommon.h>
|
||||
#include <bctoolbox/list.h>
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ endif
|
|||
endif
|
||||
|
||||
|
||||
AM_CPPFLAGS= -DIN_LINPHONE -I$(top_srcdir)/coreapi/ -I$(top_builddir)/coreapi/ \
|
||||
AM_CPPFLAGS= -I$(top_srcdir)/coreapi/ -I$(top_builddir)/coreapi/ \
|
||||
$(MEDIASTREAMER_CFLAGS) \
|
||||
$(ORTP_CFLAGS) $(BELLESIP_CFLAGS) \
|
||||
$(STRICT_OPTIONS) $(STRICT_OPTIONS_CC) $(LIBGTK_CFLAGS) $(LIBGTKMAC_CFLAGS) $(IPV6_CFLAGS) \
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
#include <glib/gstdio.h>
|
||||
|
||||
#include "linphone.h"
|
||||
#include "linphonecore_utils.h"
|
||||
#include "linphone/core_utils.h"
|
||||
#include "mediastreamer2/mediastream.h"
|
||||
#include "mediastreamer2/msvolume.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
*/
|
||||
|
||||
#include "linphone.h"
|
||||
#include "sipsetup.h"
|
||||
#include "linphone/sipsetup.h"
|
||||
|
||||
static void linphone_gtk_display_lookup_results(GtkWidget *w, const bctbx_list_t *results);
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
*/
|
||||
|
||||
#include "linphone.h"
|
||||
#include "lpconfig.h"
|
||||
#include "linphone/lpconfig.h"
|
||||
|
||||
|
||||
void linphone_gtk_set_configuration_uri(void){
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
// alloca is already defined by gtk
|
||||
#undef alloca
|
||||
#endif
|
||||
#include "linphonecore.h"
|
||||
#include "linphone/core.h"
|
||||
|
||||
#include "ldap/ldapprovider.h"
|
||||
|
||||
|
|
@ -376,4 +376,4 @@ LINPHONE_PUBLIC void linphone_gtk_mark_chat_read(LinphoneChatRoom *cr);
|
|||
LINPHONE_PUBLIC void linphone_gtk_update_badge_count();
|
||||
#endif
|
||||
|
||||
LINPHONE_PUBLIC gboolean linphone_gtk_on_key_press(GtkWidget *widget, GdkEvent *event, gpointer user_data);
|
||||
LINPHONE_PUBLIC gboolean linphone_gtk_on_key_press(GtkWidget *widget, GdkEvent *event, gpointer user_data);
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
#define VIDEOSELFVIEW_DEFAULT 0
|
||||
|
||||
#include "linphone.h"
|
||||
#include "lpconfig.h"
|
||||
#include "linphone/lpconfig.h"
|
||||
#include "liblinphone_gitversion.h"
|
||||
#include <bctoolbox/vfs.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
|
||||
#include "linphone.h"
|
||||
#include "linphone_tunnel.h"
|
||||
#include "lpconfig.h"
|
||||
#include "linphone/lpconfig.h"
|
||||
#include "config.h"
|
||||
|
||||
void linphone_gtk_fill_combo_box(GtkWidget *combo, const char **devices, const char *selected, DeviceCap cap){
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
#ifndef SETUP_WIZARD_H
|
||||
#define SETUP_WIZARD_H
|
||||
|
||||
#include "sipsetup.h"
|
||||
#include "linphone/sipsetup.h"
|
||||
|
||||
LINPHONE_PUBLIC void linphone_gtk_show_assistant(void);
|
||||
LINPHONE_PUBLIC void linphone_gtk_assistant_prepare(GtkWidget *assistant);
|
||||
|
|
@ -32,4 +32,4 @@ LINPHONE_PUBLIC void linphone_gtk_account_creation_username_changed(GtkEntry *en
|
|||
LINPHONE_PUBLIC void linphone_gtk_account_creation_password_changed(GtkEntry *entry);
|
||||
LINPHONE_PUBLIC void linphone_gtk_account_creation_email_changed(GtkEntry *entry);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "linphone.h"
|
||||
|
||||
#include "lpconfig.h"
|
||||
#include "linphone/lpconfig.h"
|
||||
|
||||
static GList *pixmaps_directories = NULL;
|
||||
|
||||
|
|
|
|||
64
include/CMakeLists.txt
Normal file
64
include/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
############################################################################
|
||||
# CMakeLists.txt
|
||||
# Copyright (C) 2010-2016 Belledonne Communications, Grenoble France
|
||||
#
|
||||
############################################################################
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
############################################################################
|
||||
|
||||
set(HEADER_FILES
|
||||
account_creator.h
|
||||
address.h
|
||||
buffer.h
|
||||
call_log.h
|
||||
call_params.h
|
||||
call_stats.h
|
||||
conference.h
|
||||
content.h
|
||||
core.h
|
||||
core_utils.h
|
||||
event.h
|
||||
friend.h
|
||||
friendlist.h
|
||||
lpconfig.h
|
||||
nat_policy.h
|
||||
presence.h
|
||||
proxy_config.h
|
||||
sipsetup.h
|
||||
tunnel.h
|
||||
vcard.h
|
||||
xmlrpc.h
|
||||
|
||||
# Deprecated header files
|
||||
linphonecore.h
|
||||
linphonecore_utils.h
|
||||
linphonefriend.h
|
||||
linphonepresence.h
|
||||
linphone_proxy_config.h
|
||||
linphone_tunnel.h
|
||||
)
|
||||
|
||||
set(LINPHONE_HEADER_FILES )
|
||||
foreach(HEADER_FILE ${HEADER_FILES})
|
||||
list(APPEND LINPHONE_HEADER_FILES "${CMAKE_CURRENT_LIST_DIR}/linphone/${HEADER_FILE}")
|
||||
endforeach()
|
||||
set(LINPHONE_HEADER_FILES ${LINPHONE_HEADER_FILES} PARENT_SCOPE)
|
||||
|
||||
install(FILES ${LINPHONE_HEADER_FILES}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/linphone
|
||||
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
||||
)
|
||||
|
|
@ -1 +1,2 @@
|
|||
EXTRA_DIST=sal/sal.h
|
||||
SUBDIRS=linphone
|
||||
|
|
|
|||
33
include/linphone/Makefile.am
Normal file
33
include/linphone/Makefile.am
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
linphone_includedir=$(includedir)/linphone
|
||||
|
||||
linphone_include_HEADERS=\
|
||||
account_creator.h \
|
||||
address.h \
|
||||
buffer.h \
|
||||
call_log.h \
|
||||
call_params.h \
|
||||
call_stats.h \
|
||||
conference.h \
|
||||
content.h \
|
||||
core.h \
|
||||
core_utils.h \
|
||||
event.h \
|
||||
friend.h \
|
||||
friendlist.h \
|
||||
lpconfig.h \
|
||||
nat_policy.h \
|
||||
presence.h \
|
||||
proxy_config.h \
|
||||
sipsetup.h \
|
||||
tunnel.h \
|
||||
vcard.h \
|
||||
xmlrpc.h \
|
||||
\
|
||||
linphonecore.h \
|
||||
linphonecore_utils.h \
|
||||
linphonefriend.h \
|
||||
linphonepresence.h \
|
||||
linphone_proxy_config.h \
|
||||
linphone_tunnel.h
|
||||
|
||||
EXTRA_DIST=$(linphone_include_HEADERS)
|
||||
244
include/linphone/address.h
Normal file
244
include/linphone/address.h
Normal file
|
|
@ -0,0 +1,244 @@
|
|||
/*
|
||||
address.h
|
||||
Copyright (C) 2010-2016 Belledonne Communications SARL
|
||||
|
||||
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 LINPHONE_ADDRESS_H
|
||||
#define LINPHONE_ADDRESS_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @addtogroup linphone_address
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* Object that represents a SIP address.
|
||||
*
|
||||
* The LinphoneAddress is an opaque object to represents SIP addresses, ie
|
||||
* the content of SIP's 'from' and 'to' headers.
|
||||
* A SIP address is made of display name, username, domain name, port, and various
|
||||
* uri headers (such as tags). It looks like 'Alice <sip:alice@example.net>'.
|
||||
* The LinphoneAddress has methods to extract and manipulate all parts of the address.
|
||||
* When some part of the address (for example the username) is empty, the accessor methods
|
||||
* return NULL.
|
||||
*/
|
||||
typedef struct SalAddress LinphoneAddress;
|
||||
|
||||
/**
|
||||
* Constructs a LinphoneAddress object by parsing the user supplied address,
|
||||
* given as a string.
|
||||
**/
|
||||
LINPHONE_PUBLIC LinphoneAddress * linphone_address_new(const char *addr);
|
||||
|
||||
/**
|
||||
* Clones a LinphoneAddress object.
|
||||
**/
|
||||
LINPHONE_PUBLIC LinphoneAddress * linphone_address_clone(const LinphoneAddress *addr);
|
||||
|
||||
/**
|
||||
* Increment reference count of LinphoneAddress object.
|
||||
**/
|
||||
LINPHONE_PUBLIC LinphoneAddress * linphone_address_ref(LinphoneAddress *addr);
|
||||
|
||||
/**
|
||||
* Decrement reference count of LinphoneAddress object. When dropped to zero, memory is freed.
|
||||
**/
|
||||
LINPHONE_PUBLIC void linphone_address_unref(LinphoneAddress *addr);
|
||||
|
||||
/**
|
||||
* Returns the address scheme, normally "sip".
|
||||
**/
|
||||
LINPHONE_PUBLIC const char *linphone_address_get_scheme(const LinphoneAddress *u);
|
||||
|
||||
/**
|
||||
* Returns the display name.
|
||||
**/
|
||||
LINPHONE_PUBLIC const char *linphone_address_get_display_name(const LinphoneAddress* u);
|
||||
|
||||
/**
|
||||
* Returns the username.
|
||||
**/
|
||||
LINPHONE_PUBLIC const char *linphone_address_get_username(const LinphoneAddress *u);
|
||||
|
||||
/**
|
||||
* Returns the domain name.
|
||||
**/
|
||||
LINPHONE_PUBLIC const char *linphone_address_get_domain(const LinphoneAddress *u);
|
||||
|
||||
/**
|
||||
* Get port number as an integer value, 0 if not present.
|
||||
*/
|
||||
LINPHONE_PUBLIC int linphone_address_get_port(const LinphoneAddress *u);
|
||||
|
||||
/**
|
||||
* Sets the display name.
|
||||
**/
|
||||
LINPHONE_PUBLIC int linphone_address_set_display_name(LinphoneAddress *u, const char *display_name);
|
||||
|
||||
/**
|
||||
* Sets the username.
|
||||
**/
|
||||
LINPHONE_PUBLIC int linphone_address_set_username(LinphoneAddress *uri, const char *username);
|
||||
|
||||
/**
|
||||
* Sets the domain.
|
||||
**/
|
||||
LINPHONE_PUBLIC int linphone_address_set_domain(LinphoneAddress *uri, const char *host);
|
||||
|
||||
/**
|
||||
* Sets the port number.
|
||||
**/
|
||||
LINPHONE_PUBLIC int linphone_address_set_port(LinphoneAddress *uri, int port);
|
||||
|
||||
/**
|
||||
* Set a transport.
|
||||
**/
|
||||
LINPHONE_PUBLIC int linphone_address_set_transport(LinphoneAddress *uri,LinphoneTransportType type);
|
||||
|
||||
/**
|
||||
* Removes address's tags and uri headers so that it is displayable to the user.
|
||||
**/
|
||||
LINPHONE_PUBLIC void linphone_address_clean(LinphoneAddress *uri);
|
||||
|
||||
/**
|
||||
* Returns true if address refers to a secure location (sips)
|
||||
* @deprecated use linphone_address_get_secure()
|
||||
**/
|
||||
LINPHONE_PUBLIC bool_t linphone_address_is_secure(const LinphoneAddress *addr);
|
||||
|
||||
/**
|
||||
* Returns true if address refers to a secure location (sips)
|
||||
**/
|
||||
LINPHONE_PUBLIC bool_t linphone_address_get_secure(const LinphoneAddress *addr);
|
||||
|
||||
/**
|
||||
* Make the address refer to a secure location (sips scheme)
|
||||
* @param[in] addr A #LinphoneAddress object
|
||||
* @param[in] enabled TRUE if address is requested to be secure.
|
||||
**/
|
||||
LINPHONE_PUBLIC void linphone_address_set_secure(LinphoneAddress *addr, bool_t enabled);
|
||||
|
||||
/**
|
||||
* returns true if address is a routable sip address
|
||||
*/
|
||||
LINPHONE_PUBLIC bool_t linphone_address_is_sip(const LinphoneAddress *uri);
|
||||
|
||||
/**
|
||||
* Get the transport.
|
||||
**/
|
||||
LINPHONE_PUBLIC LinphoneTransportType linphone_address_get_transport(const LinphoneAddress *uri);
|
||||
|
||||
/**
|
||||
* Get the value of the method parameter
|
||||
**/
|
||||
LINPHONE_PUBLIC const char *linphone_address_get_method_param(const LinphoneAddress *addr);
|
||||
|
||||
/**
|
||||
* Set the value of the method parameter
|
||||
**/
|
||||
LINPHONE_PUBLIC void linphone_address_set_method_param(LinphoneAddress *addr, const char *method);
|
||||
|
||||
/**
|
||||
* Returns the address as a string.
|
||||
* The returned char * must be freed by the application. Use ms_free().
|
||||
**/
|
||||
LINPHONE_PUBLIC char *linphone_address_as_string(const LinphoneAddress *u);
|
||||
|
||||
/**
|
||||
* Returns the SIP uri only as a string, that is display name is removed.
|
||||
* The returned char * must be freed by the application. Use ms_free().
|
||||
**/
|
||||
LINPHONE_PUBLIC char *linphone_address_as_string_uri_only(const LinphoneAddress *u);
|
||||
|
||||
/**
|
||||
* Compare two LinphoneAddress ignoring tags and headers, basically just domain, username, and port.
|
||||
* @param[in] a1 LinphoneAddress object
|
||||
* @param[in] a2 LinphoneAddress object
|
||||
* @return Boolean value telling if the LinphoneAddress objects are equal.
|
||||
* @see linphone_address_equal()
|
||||
**/
|
||||
LINPHONE_PUBLIC bool_t linphone_address_weak_equal(const LinphoneAddress *a1, const LinphoneAddress *a2);
|
||||
|
||||
/**
|
||||
* Compare two LinphoneAddress taking the tags and headers into account.
|
||||
* @param[in] a1 LinphoneAddress object
|
||||
* @param[in] a2 LinphoneAddress object
|
||||
* @return Boolean value telling if the LinphoneAddress objects are equal.
|
||||
* @see linphone_address_weak_equal()
|
||||
*/
|
||||
LINPHONE_PUBLIC bool_t linphone_address_equal(const LinphoneAddress *a1, const LinphoneAddress *a2);
|
||||
|
||||
/**
|
||||
* Set the password encoded in the address.
|
||||
* It is used for basic authentication (not recommended).
|
||||
* @param addr the LinphoneAddress
|
||||
* @param passwd the password to set.
|
||||
**/
|
||||
LINPHONE_PUBLIC void linphone_address_set_password(LinphoneAddress *addr, const char *passwd);
|
||||
|
||||
/**
|
||||
* Get the password encoded in the address.
|
||||
* It is used for basic authentication (not recommended).
|
||||
* @param addr the address
|
||||
* @return the password, if any, NULL otherwise.
|
||||
**/
|
||||
LINPHONE_PUBLIC const char *linphone_address_get_password(const LinphoneAddress *addr);
|
||||
|
||||
/**
|
||||
* Set a header into the address.
|
||||
* Headers appear in the URI with '?', such as \<sip:test@linphone.org?SomeHeader=SomeValue\>.
|
||||
* @param addr the address
|
||||
* @param header_name the header name
|
||||
* @param header_value the header value
|
||||
**/
|
||||
LINPHONE_PUBLIC void linphone_address_set_header(LinphoneAddress *addr, const char *header_name, const char *header_value);
|
||||
|
||||
LINPHONE_PUBLIC bool_t linphone_address_has_param(const LinphoneAddress *addr, const char *name);
|
||||
|
||||
LINPHONE_PUBLIC const char * linphone_address_get_param(const LinphoneAddress *addr, const char *name);
|
||||
|
||||
LINPHONE_PUBLIC void linphone_address_set_param(LinphoneAddress *addr, const char *name, const char *value);
|
||||
|
||||
LINPHONE_PUBLIC void linphone_address_set_params(LinphoneAddress *addr, const char *params);
|
||||
|
||||
LINPHONE_PUBLIC void linphone_address_set_uri_param(LinphoneAddress *addr, const char *name, const char *value);
|
||||
|
||||
LINPHONE_PUBLIC void linphone_address_set_uri_params(LinphoneAddress *addr, const char *params);
|
||||
|
||||
LINPHONE_PUBLIC bool_t linphone_address_has_uri_param(const LinphoneAddress *addr, const char *name);
|
||||
|
||||
LINPHONE_PUBLIC const char * linphone_address_get_uri_param(const LinphoneAddress *addr, const char *name);
|
||||
|
||||
/**
|
||||
* Destroys a LinphoneAddress object (actually calls linphone_address_unref()).
|
||||
* @deprecated Use linphone_address_unref() instead
|
||||
**/
|
||||
LINPHONE_PUBLIC void linphone_address_destroy(LinphoneAddress *u);
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* LINPHONE_ADDRESS_H */
|
||||
142
include/linphone/call_stats.h
Normal file
142
include/linphone/call_stats.h
Normal file
|
|
@ -0,0 +1,142 @@
|
|||
/*
|
||||
call_stats.h
|
||||
Copyright (C) 2010-2016 Belledonne Communications SARL
|
||||
|
||||
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 LINPHONE_CALL_STATS_H
|
||||
#define LINPHONE_CALL_STATS_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @addtogroup call_misc
|
||||
* @{
|
||||
*/
|
||||
|
||||
#define LINPHONE_CALL_STATS_RECEIVED_RTCP_UPDATE (1 << 0) /**< received_rtcp field of LinphoneCallStats object has been updated */
|
||||
#define LINPHONE_CALL_STATS_SENT_RTCP_UPDATE (1 << 1) /**< sent_rtcp field of LinphoneCallStats object has been updated */
|
||||
#define LINPHONE_CALL_STATS_PERIODICAL_UPDATE (1 << 2) /**< Every seconds LinphoneCallStats object has been updated */
|
||||
|
||||
/**
|
||||
* The LinphoneCallStats objects carries various statistic informations regarding quality of audio or video streams.
|
||||
*
|
||||
* To receive these informations periodically and as soon as they are computed, the application is invited to place a #LinphoneCoreCallStatsUpdatedCb callback in the LinphoneCoreVTable structure
|
||||
* it passes for instanciating the LinphoneCore object (see linphone_core_new() ).
|
||||
*
|
||||
* At any time, the application can access last computed statistics using linphone_call_get_audio_stats() or linphone_call_get_video_stats().
|
||||
**/
|
||||
typedef struct _LinphoneCallStats LinphoneCallStats;
|
||||
|
||||
/**
|
||||
* The LinphoneCallStats objects carries various statistic informations regarding quality of audio or video streams.
|
||||
*
|
||||
* To receive these informations periodically and as soon as they are computed, the application is invited to place a #LinphoneCoreCallStatsUpdatedCb callback in the LinphoneCoreVTable structure
|
||||
* it passes for instantiating the LinphoneCore object (see linphone_core_new() ).
|
||||
*
|
||||
* At any time, the application can access last computed statistics using linphone_call_get_audio_stats() or linphone_call_get_video_stats().
|
||||
**/
|
||||
struct _LinphoneCallStats {
|
||||
int type; /**< Can be either LINPHONE_CALL_STATS_AUDIO or LINPHONE_CALL_STATS_VIDEO*/
|
||||
jitter_stats_t jitter_stats; /**<jitter buffer statistics, see oRTP documentation for details */
|
||||
mblk_t* received_rtcp; /**<Last RTCP packet received, as a mblk_t structure. See oRTP documentation for details how to extract information from it*/
|
||||
mblk_t* sent_rtcp;/**<Last RTCP packet sent, as a mblk_t structure. See oRTP documentation for details how to extract information from it*/
|
||||
float round_trip_delay; /**<Round trip propagation time in seconds if known, -1 if unknown.*/
|
||||
LinphoneIceState ice_state; /**< State of ICE processing. */
|
||||
LinphoneUpnpState upnp_state; /**< State of uPnP processing. */
|
||||
float download_bandwidth; /**<Download bandwidth measurement of received stream, expressed in kbit/s, including IP/UDP/RTP headers*/
|
||||
float upload_bandwidth; /**<Download bandwidth measurement of sent stream, expressed in kbit/s, including IP/UDP/RTP headers*/
|
||||
float local_late_rate; /**<percentage of packet received too late over last second*/
|
||||
float local_loss_rate; /**<percentage of lost packet over last second*/
|
||||
int updated; /**< Tell which RTCP packet has been updated (received_rtcp or sent_rtcp). Can be either LINPHONE_CALL_STATS_RECEIVED_RTCP_UPDATE or LINPHONE_CALL_STATS_SENT_RTCP_UPDATE */
|
||||
float rtcp_download_bandwidth; /**<RTCP download bandwidth measurement of received stream, expressed in kbit/s, including IP/UDP/RTP headers*/
|
||||
float rtcp_upload_bandwidth; /**<RTCP download bandwidth measurement of sent stream, expressed in kbit/s, including IP/UDP/RTP headers*/
|
||||
rtp_stats_t rtp_stats; /**< RTP stats */
|
||||
bool_t rtcp_received_via_mux; /*private flag, for non-regression test only*/
|
||||
int rtp_remote_family; /* Ip adress family of the remote destination */
|
||||
};
|
||||
|
||||
/**
|
||||
* Get the local loss rate since last report
|
||||
* @return The sender loss rate
|
||||
**/
|
||||
LINPHONE_PUBLIC float linphone_call_stats_get_sender_loss_rate(const LinphoneCallStats *stats);
|
||||
|
||||
/**
|
||||
* Gets the remote reported loss rate since last report
|
||||
* @return The receiver loss rate
|
||||
**/
|
||||
LINPHONE_PUBLIC float linphone_call_stats_get_receiver_loss_rate(const LinphoneCallStats *stats);
|
||||
|
||||
/**
|
||||
* Gets the local interarrival jitter
|
||||
* @return The interarrival jitter at last emitted sender report
|
||||
**/
|
||||
LINPHONE_PUBLIC float linphone_call_stats_get_sender_interarrival_jitter(const LinphoneCallStats *stats, LinphoneCall *call);
|
||||
|
||||
/**
|
||||
* Gets the remote reported interarrival jitter
|
||||
* @return The interarrival jitter at last received receiver report
|
||||
**/
|
||||
LINPHONE_PUBLIC float linphone_call_stats_get_receiver_interarrival_jitter(const LinphoneCallStats *stats, LinphoneCall *call);
|
||||
|
||||
LINPHONE_PUBLIC rtp_stats_t linphone_call_stats_get_rtp_stats(const LinphoneCallStats *statss);
|
||||
|
||||
/**
|
||||
* Gets the cumulative number of late packets
|
||||
* @return The cumulative number of late packets
|
||||
**/
|
||||
LINPHONE_PUBLIC uint64_t linphone_call_stats_get_late_packets_cumulative_number(const LinphoneCallStats *stats, LinphoneCall *call);
|
||||
|
||||
/**
|
||||
* Get the bandwidth measurement of the received stream, expressed in kbit/s, including IP/UDP/RTP headers.
|
||||
* @param[in] stats LinphoneCallStats object
|
||||
* @return The bandwidth measurement of the received stream in kbit/s.
|
||||
*/
|
||||
LINPHONE_PUBLIC float linphone_call_stats_get_download_bandwidth(const LinphoneCallStats *stats);
|
||||
|
||||
/**
|
||||
* Get the bandwidth measurement of the sent stream, expressed in kbit/s, including IP/UDP/RTP headers.
|
||||
* @param[in] stats LinphoneCallStats object
|
||||
* @return The bandwidth measurement of the sent stream in kbit/s.
|
||||
*/
|
||||
LINPHONE_PUBLIC float linphone_call_stats_get_upload_bandwidth(const LinphoneCallStats *stats);
|
||||
|
||||
/**
|
||||
* Get the state of ICE processing.
|
||||
* @param[in] stats LinphoneCallStats object
|
||||
* @return The state of ICE processing.
|
||||
*/
|
||||
LINPHONE_PUBLIC LinphoneIceState linphone_call_stats_get_ice_state(const LinphoneCallStats *stats);
|
||||
|
||||
/**
|
||||
* Get the state of uPnP processing.
|
||||
* @param[in] stats LinphoneCallStats object
|
||||
* @return The state of uPnP processing.
|
||||
*/
|
||||
LINPHONE_PUBLIC LinphoneUpnpState linphone_call_stats_get_upnp_state(const LinphoneCallStats *stats);
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* LINPHONE_ADDRESS_H */
|
||||
|
|
@ -25,14 +25,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
#include "mediastreamer2/msvideo.h"
|
||||
#include "mediastreamer2/mediastream.h"
|
||||
#include "mediastreamer2/bitratecontrol.h"
|
||||
|
||||
#ifdef IN_LINPHONE
|
||||
#include "sipsetup.h"
|
||||
#else
|
||||
#include "linphone/sipsetup.h"
|
||||
#endif
|
||||
|
||||
#include "lpconfig.h"
|
||||
#include "linphone/lpconfig.h"
|
||||
|
||||
#define LINPHONE_IPADDR_SIZE 64
|
||||
#define LINPHONE_HOSTNAME_SIZE 128
|
||||
|
|
@ -150,20 +144,6 @@ typedef enum _LinphoneStreamType LinphoneStreamType;
|
|||
**/
|
||||
|
||||
LINPHONE_PUBLIC const char *linphone_stream_type_to_string(const LinphoneStreamType);
|
||||
/**
|
||||
* Object that represents a SIP address.
|
||||
*
|
||||
* The LinphoneAddress is an opaque object to represents SIP addresses, ie
|
||||
* the content of SIP's 'from' and 'to' headers.
|
||||
* A SIP address is made of display name, username, domain name, port, and various
|
||||
* uri headers (such as tags). It looks like 'Alice <sip:alice@example.net>'.
|
||||
* The LinphoneAddress has methods to extract and manipulate all parts of the address.
|
||||
* When some part of the address (for example the username) is empty, the accessor methods
|
||||
* return NULL.
|
||||
*
|
||||
* @ingroup linphone_address
|
||||
*/
|
||||
typedef struct SalAddress LinphoneAddress;
|
||||
|
||||
typedef struct belle_sip_dict LinphoneDictionary;
|
||||
|
||||
|
|
@ -422,17 +402,7 @@ typedef unsigned int LinphonePrivacyMask;
|
|||
LINPHONE_PUBLIC const char* linphone_privacy_to_string(LinphonePrivacy privacy);
|
||||
|
||||
|
||||
#ifdef IN_LINPHONE
|
||||
#include "buffer.h"
|
||||
#include "call_log.h"
|
||||
#include "call_params.h"
|
||||
#include "content.h"
|
||||
#include "event.h"
|
||||
#include "linphonefriend.h"
|
||||
#include "nat_policy.h"
|
||||
#include "xmlrpc.h"
|
||||
#include "conference.h"
|
||||
#else
|
||||
#include "linphone/address.h"
|
||||
#include "linphone/buffer.h"
|
||||
#include "linphone/call_log.h"
|
||||
#include "linphone/call_params.h"
|
||||
|
|
@ -442,47 +412,6 @@ LINPHONE_PUBLIC const char* linphone_privacy_to_string(LinphonePrivacy privacy);
|
|||
#include "linphone/nat_policy.h"
|
||||
#include "linphone/xmlrpc.h"
|
||||
#include "linphone/conference.h"
|
||||
#endif
|
||||
|
||||
LINPHONE_PUBLIC LinphoneAddress * linphone_address_new(const char *addr);
|
||||
LINPHONE_PUBLIC LinphoneAddress * linphone_address_clone(const LinphoneAddress *addr);
|
||||
LINPHONE_PUBLIC LinphoneAddress * linphone_address_ref(LinphoneAddress *addr);
|
||||
LINPHONE_PUBLIC void linphone_address_unref(LinphoneAddress *addr);
|
||||
LINPHONE_PUBLIC const char *linphone_address_get_scheme(const LinphoneAddress *u);
|
||||
LINPHONE_PUBLIC const char *linphone_address_get_display_name(const LinphoneAddress* u);
|
||||
LINPHONE_PUBLIC const char *linphone_address_get_username(const LinphoneAddress *u);
|
||||
LINPHONE_PUBLIC const char *linphone_address_get_domain(const LinphoneAddress *u);
|
||||
LINPHONE_PUBLIC int linphone_address_get_port(const LinphoneAddress *u);
|
||||
LINPHONE_PUBLIC int linphone_address_set_display_name(LinphoneAddress *u, const char *display_name);
|
||||
LINPHONE_PUBLIC int linphone_address_set_username(LinphoneAddress *uri, const char *username);
|
||||
LINPHONE_PUBLIC int linphone_address_set_domain(LinphoneAddress *uri, const char *host);
|
||||
LINPHONE_PUBLIC int linphone_address_set_port(LinphoneAddress *uri, int port);
|
||||
LINPHONE_PUBLIC int linphone_address_set_transport(LinphoneAddress *uri,LinphoneTransportType type);
|
||||
/*remove tags, params etc... so that it is displayable to the user*/
|
||||
LINPHONE_PUBLIC void linphone_address_clean(LinphoneAddress *uri);
|
||||
LINPHONE_PUBLIC bool_t linphone_address_is_secure(const LinphoneAddress *addr);
|
||||
LINPHONE_PUBLIC bool_t linphone_address_get_secure(const LinphoneAddress *addr);
|
||||
LINPHONE_PUBLIC void linphone_address_set_secure(LinphoneAddress *addr, bool_t enabled);
|
||||
LINPHONE_PUBLIC bool_t linphone_address_is_sip(const LinphoneAddress *uri);
|
||||
LINPHONE_PUBLIC LinphoneTransportType linphone_address_get_transport(const LinphoneAddress *uri);
|
||||
LINPHONE_PUBLIC const char *linphone_address_get_method_param(const LinphoneAddress *addr);
|
||||
LINPHONE_PUBLIC void linphone_address_set_method_param(LinphoneAddress *addr, const char *method);
|
||||
LINPHONE_PUBLIC char *linphone_address_as_string(const LinphoneAddress *u);
|
||||
LINPHONE_PUBLIC char *linphone_address_as_string_uri_only(const LinphoneAddress *u);
|
||||
LINPHONE_PUBLIC bool_t linphone_address_weak_equal(const LinphoneAddress *a1, const LinphoneAddress *a2);
|
||||
LINPHONE_PUBLIC bool_t linphone_address_equal(const LinphoneAddress *a1, const LinphoneAddress *a2);
|
||||
LINPHONE_PUBLIC void linphone_address_set_password(LinphoneAddress *addr, const char *passwd);
|
||||
LINPHONE_PUBLIC const char *linphone_address_get_password(const LinphoneAddress *addr);
|
||||
LINPHONE_PUBLIC void linphone_address_set_header(LinphoneAddress *addr, const char *header_name, const char *header_value);
|
||||
LINPHONE_PUBLIC bool_t linphone_address_has_param(const LinphoneAddress *addr, const char *name);
|
||||
LINPHONE_PUBLIC const char * linphone_address_get_param(const LinphoneAddress *addr, const char *name);
|
||||
LINPHONE_PUBLIC void linphone_address_set_param(LinphoneAddress *addr, const char *name, const char *value);
|
||||
LINPHONE_PUBLIC void linphone_address_set_params(LinphoneAddress *addr, const char *params);
|
||||
LINPHONE_PUBLIC void linphone_address_set_uri_param(LinphoneAddress *addr, const char *name, const char *value);
|
||||
LINPHONE_PUBLIC void linphone_address_set_uri_params(LinphoneAddress *addr, const char *params);
|
||||
LINPHONE_PUBLIC bool_t linphone_address_has_uri_param(const LinphoneAddress *addr, const char *name);
|
||||
LINPHONE_PUBLIC const char * linphone_address_get_uri_param(const LinphoneAddress *addr, const char *name);
|
||||
LINPHONE_PUBLIC void linphone_address_destroy(LinphoneAddress *u);
|
||||
|
||||
/**
|
||||
* Create a #LinphoneAddress object by parsing the user supplied address, given as a string.
|
||||
|
|
@ -580,10 +509,6 @@ enum _LinphoneUpnpState{
|
|||
typedef enum _LinphoneUpnpState LinphoneUpnpState;
|
||||
|
||||
|
||||
#define LINPHONE_CALL_STATS_RECEIVED_RTCP_UPDATE (1 << 0) /**< received_rtcp field of LinphoneCallStats object has been updated */
|
||||
#define LINPHONE_CALL_STATS_SENT_RTCP_UPDATE (1 << 1) /**< sent_rtcp field of LinphoneCallStats object has been updated */
|
||||
#define LINPHONE_CALL_STATS_PERIODICAL_UPDATE (1 << 2) /**< Every seconds LinphoneCallStats object has been updated */
|
||||
|
||||
/**
|
||||
* Enum describing Ip family.
|
||||
* @ingroup initializing
|
||||
|
|
@ -600,61 +525,15 @@ enum _LinphoneAddressFamily {
|
|||
**/
|
||||
typedef enum _LinphoneAddressFamily LinphoneAddressFamily;
|
||||
|
||||
/**
|
||||
* The LinphoneCallStats objects carries various statistic informations regarding quality of audio or video streams.
|
||||
*
|
||||
* To receive these informations periodically and as soon as they are computed, the application is invited to place a #LinphoneCoreCallStatsUpdatedCb callback in the LinphoneCoreVTable structure
|
||||
* it passes for instanciating the LinphoneCore object (see linphone_core_new() ).
|
||||
*
|
||||
* At any time, the application can access last computed statistics using linphone_call_get_audio_stats() or linphone_call_get_video_stats().
|
||||
**/
|
||||
typedef struct _LinphoneCallStats LinphoneCallStats;
|
||||
|
||||
/**
|
||||
* The LinphoneCallStats objects carries various statistic informations regarding quality of audio or video streams.
|
||||
*
|
||||
* To receive these informations periodically and as soon as they are computed, the application is invited to place a #LinphoneCoreCallStatsUpdatedCb callback in the LinphoneCoreVTable structure
|
||||
* it passes for instantiating the LinphoneCore object (see linphone_core_new() ).
|
||||
*
|
||||
* At any time, the application can access last computed statistics using linphone_call_get_audio_stats() or linphone_call_get_video_stats().
|
||||
**/
|
||||
struct _LinphoneCallStats {
|
||||
int type; /**< Can be either LINPHONE_CALL_STATS_AUDIO or LINPHONE_CALL_STATS_VIDEO*/
|
||||
jitter_stats_t jitter_stats; /**<jitter buffer statistics, see oRTP documentation for details */
|
||||
mblk_t* received_rtcp; /**<Last RTCP packet received, as a mblk_t structure. See oRTP documentation for details how to extract information from it*/
|
||||
mblk_t* sent_rtcp;/**<Last RTCP packet sent, as a mblk_t structure. See oRTP documentation for details how to extract information from it*/
|
||||
float round_trip_delay; /**<Round trip propagation time in seconds if known, -1 if unknown.*/
|
||||
LinphoneIceState ice_state; /**< State of ICE processing. */
|
||||
LinphoneUpnpState upnp_state; /**< State of uPnP processing. */
|
||||
float download_bandwidth; /**<Download bandwidth measurement of received stream, expressed in kbit/s, including IP/UDP/RTP headers*/
|
||||
float upload_bandwidth; /**<Download bandwidth measurement of sent stream, expressed in kbit/s, including IP/UDP/RTP headers*/
|
||||
float local_late_rate; /**<percentage of packet received too late over last second*/
|
||||
float local_loss_rate; /**<percentage of lost packet over last second*/
|
||||
int updated; /**< Tell which RTCP packet has been updated (received_rtcp or sent_rtcp). Can be either LINPHONE_CALL_STATS_RECEIVED_RTCP_UPDATE or LINPHONE_CALL_STATS_SENT_RTCP_UPDATE */
|
||||
float rtcp_download_bandwidth; /**<RTCP download bandwidth measurement of received stream, expressed in kbit/s, including IP/UDP/RTP headers*/
|
||||
float rtcp_upload_bandwidth; /**<RTCP download bandwidth measurement of sent stream, expressed in kbit/s, including IP/UDP/RTP headers*/
|
||||
rtp_stats_t rtp_stats; /**< RTP stats */
|
||||
bool_t rtcp_received_via_mux; /*private flag, for non-regression test only*/
|
||||
int rtp_remote_family; /* Ip adress family of the remote destination */
|
||||
};
|
||||
|
||||
/**
|
||||
* @}
|
||||
**/
|
||||
|
||||
#include "linphone/call_stats.h"
|
||||
|
||||
LINPHONE_PUBLIC const LinphoneCallStats *linphone_call_get_audio_stats(LinphoneCall *call);
|
||||
LINPHONE_PUBLIC const LinphoneCallStats *linphone_call_get_video_stats(LinphoneCall *call);
|
||||
LINPHONE_PUBLIC const LinphoneCallStats *linphone_call_get_text_stats(LinphoneCall *call);
|
||||
LINPHONE_PUBLIC float linphone_call_stats_get_sender_loss_rate(const LinphoneCallStats *stats);
|
||||
LINPHONE_PUBLIC float linphone_call_stats_get_receiver_loss_rate(const LinphoneCallStats *stats);
|
||||
LINPHONE_PUBLIC float linphone_call_stats_get_sender_interarrival_jitter(const LinphoneCallStats *stats, LinphoneCall *call);
|
||||
LINPHONE_PUBLIC float linphone_call_stats_get_receiver_interarrival_jitter(const LinphoneCallStats *stats, LinphoneCall *call);
|
||||
LINPHONE_PUBLIC rtp_stats_t linphone_call_stats_get_rtp_stats(const LinphoneCallStats *statss);
|
||||
LINPHONE_PUBLIC uint64_t linphone_call_stats_get_late_packets_cumulative_number(const LinphoneCallStats *stats, LinphoneCall *call);
|
||||
LINPHONE_PUBLIC float linphone_call_stats_get_download_bandwidth(const LinphoneCallStats *stats);
|
||||
LINPHONE_PUBLIC float linphone_call_stats_get_upload_bandwidth(const LinphoneCallStats *stats);
|
||||
LINPHONE_PUBLIC LinphoneIceState linphone_call_stats_get_ice_state(const LinphoneCallStats *stats);
|
||||
LINPHONE_PUBLIC LinphoneUpnpState linphone_call_stats_get_upnp_state(const LinphoneCallStats *stats);
|
||||
|
||||
/** Callback prototype */
|
||||
typedef void (*LinphoneCallCbFunc)(LinphoneCall *call,void * user_data);
|
||||
|
|
@ -1312,17 +1191,9 @@ LINPHONE_PUBLIC LinphoneAuthInfo * linphone_auth_info_new_from_config_file(LpCon
|
|||
*/
|
||||
|
||||
|
||||
#ifdef IN_LINPHONE
|
||||
#include "account_creator.h"
|
||||
#include "friendlist.h"
|
||||
#include "linphone_proxy_config.h"
|
||||
#include "carddav.h"
|
||||
#else
|
||||
#include "linphone/account_creator.h"
|
||||
#include "linphone/friendlist.h"
|
||||
#include "linphone/linphone_proxy_config.h"
|
||||
#include "linphone/carddav.h"
|
||||
#endif
|
||||
|
||||
|
||||
/**
|
||||
|
|
@ -20,11 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
#ifndef LINPHONECORE_UTILS_H
|
||||
#define LINPHONECORE_UTILS_H
|
||||
|
||||
#ifdef IN_LINPHONE
|
||||
#include "linphonecore.h"
|
||||
#else
|
||||
#include "linphone/linphonecore.h"
|
||||
#endif
|
||||
#include "linphone/core.h"
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
@ -22,13 +22,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
#define LINPHONE_FRIENDLIST_H_
|
||||
|
||||
|
||||
#ifdef IN_LINPHONE
|
||||
#include "linphonefriend.h"
|
||||
#include "linphonepresence.h"
|
||||
#else
|
||||
#include "linphone/linphonefriend.h"
|
||||
#include "linphone/linphonepresence.h"
|
||||
#endif
|
||||
#include "linphone/friend.h"
|
||||
#include "linphone/presence.h"
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
25
include/linphone/linphone_proxy_config.h
Normal file
25
include/linphone/linphone_proxy_config.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
Copyright (C) 2010-2016 Belledonne Communications SARL
|
||||
|
||||
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 LINPHONE_LINPHONE_PROXY_CONFIG_H
|
||||
#define LINPHONE_LINPHONE_PROXY_CONFIG_H
|
||||
|
||||
#include <linphone/proxy_config.h>
|
||||
|
||||
#endif
|
||||
|
||||
32
include/linphone/linphone_tunnel.h
Normal file
32
include/linphone/linphone_tunnel.h
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
/***************************************************************************
|
||||
* linphone_tunnel.h
|
||||
*
|
||||
* Fri Dec 9, 2011
|
||||
* Copyright 2011 Belledonne Communications
|
||||
* Author: Guillaume Beraudo
|
||||
* Email: guillaume dot beraudo at linphone dot 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef LINPHONE_LINPHONETUNNEL_H
|
||||
#define LINPHONE_LINPHONETUNNEL_H
|
||||
|
||||
#include "linphone/tunnel.h"
|
||||
|
||||
#endif /* LINPHONE_LINPHONETUNNEL_H */
|
||||
|
||||
26
include/linphone/linphonecore.h
Normal file
26
include/linphone/linphonecore.h
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
linphone
|
||||
Copyright (C) 2000 - 2016 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 LINPHONE_LINPHONECORE_H
|
||||
#define LINPHONE_LINPHONECORE_H
|
||||
|
||||
#include <linphone/core.h>
|
||||
|
||||
#endif
|
||||
|
||||
26
include/linphone/linphonecore_utils.h
Normal file
26
include/linphone/linphonecore_utils.h
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
linphone
|
||||
Copyright (C) 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 LINPHONE_LINPHONECORE_UTILS_H
|
||||
#define LINPHONE_LINPHONECORE_UTILS_H
|
||||
|
||||
#include "linphone/core_utils.h"
|
||||
|
||||
#endif
|
||||
|
||||
25
include/linphone/linphonefriend.h
Normal file
25
include/linphone/linphonefriend.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
linphonefriend.h
|
||||
Copyright (C) 2010-2016 Belledonne Communications SARL
|
||||
|
||||
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 LINPHONE_LINPHONEFRIEND_H_
|
||||
#define LINPHONE_LINPHONEFRIEND_H_
|
||||
|
||||
#include <linphone/friend.h>
|
||||
|
||||
#endif /* LINPHONE_LINPHONEFRIEND_H_ */
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue