mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 19:18:06 +00:00
Fix build for iOS.
This commit is contained in:
parent
8f64595659
commit
3f3c114a3f
2 changed files with 10 additions and 1 deletions
|
|
@ -337,7 +337,7 @@ static int send_report(LinphoneCall* call, reporting_session_report_t * report,
|
|||
size_t namesize;
|
||||
char *machine;
|
||||
sysctlbyname("hw.machine", NULL, &namesize, NULL, 0);
|
||||
machine = malloc(namesize);
|
||||
machine = reinterpret_cast<char *>(malloc(namesize));
|
||||
sysctlbyname("hw.machine", machine, &namesize, NULL, 0);
|
||||
APPEND_IF_NOT_NULL_STR(&buffer, &size, &offset, "Device: %s\r\n", machine);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,8 +20,17 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
|
||||
#include "linphone/linphonecore.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
LinphoneRingtonePlayer* linphone_ringtoneplayer_ios_new();
|
||||
void linphone_ringtoneplayer_ios_destroy(LinphoneRingtonePlayer* rp);
|
||||
int linphone_ringtoneplayer_ios_start_with_cb(LinphoneRingtonePlayer* rp, const char* ringtone, int loop_pause_ms, LinphoneRingtonePlayerFunc end_of_ringtone, void * user_data);
|
||||
bool_t linphone_ringtoneplayer_ios_is_started(LinphoneRingtonePlayer* rp);
|
||||
int linphone_ringtoneplayer_ios_stop(LinphoneRingtonePlayer* rp);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue