Sandrine Avakian
80da8c3c9d
Typo fix.
2016-05-04 16:22:31 +02:00
Sandrine Avakian
14849fa6a7
Harmonizing and modifying error codes returned by bcRead, bcWrite, bcClose.
...
Fixing errors in bcGetLine and bc_file_fprintf .
For the time being, bc_file_fprintf handles the offset update when writing to the file.
2016-05-04 14:42:15 +02:00
Sandrine Avakian
a25accb515
Adding bc_file API in lpconfig.
...
Used are : bc_file_read, bc_file_open, bc_file_close.
2016-04-29 17:08:46 +02:00
Sandrine Avakian
c29aeaf709
Update open/close file.
2016-04-27 17:29:26 +02:00
Sandrine Avakian
d3401f705d
Merge branch 'master' of git://git.linphone.org/linphone into bc_vfs
2016-04-27 14:53:45 +02:00
Sylvain Berfini
be6d6b47b3
Added a way to not dump some chosen sections/entries when converting lpc to xml
2016-04-27 12:19:38 +02:00
Sandrine Avakian
faf2b3973a
First input for bc_vfs.
2016-04-26 16:20:35 +02:00
Gautier Pelloux-Prayer
1537a5228a
lpconfig: add lp_config_dump
2016-04-05 11:56:48 +02:00
François Grisez
872fe00eda
Fixes crash when starting a call at the first time
2016-01-08 17:29:18 +01:00
Sylvain Berfini
e82e187f9b
Added set overwrite flags for section for convenience
2015-11-19 16:50:30 +01:00
Sylvain Berfini
07fd8f61fa
Added methods to set/get overwrite flag in LpConfig (used when dumping config as xml)
2015-11-19 16:28:14 +01:00
Sylvain Berfini
67c22d57ee
Changes to be able to call lp_config_get_sections_names from python wrapper
2015-10-21 15:10:02 +02:00
Sylvain Berfini
f999712c5b
Added new functions in lpconfig to dump xml and get a list of sections' names
2015-10-21 13:58:36 +02:00
Gautier Pelloux-Prayer
8dd252fd7b
lpconfig: avoid duplicate comments in linphonerc
2015-10-05 11:50:42 +02:00
Ghislain MARY
61ac1f8173
Fix compilation warnings when building for Windows 10.
2015-10-01 14:29:00 +02:00
Gautier Pelloux-Prayer
8a2f20ceae
tester: add before_each / after_each methods to check memory leaks and fix various ones
2015-09-22 13:54:29 +02:00
Margaux Clerc
e369f0e284
Disable realpath for android
2015-08-14 13:18:08 +02:00
Sylvain Berfini
6ef6e97043
Merge branch 'dev_bb10'
...
Conflicts:
mediastreamer2
oRTP
2015-08-13 16:33:16 +02:00
François Grisez
4b9bb8f8e9
Fixes fopen() calls on NULL paths and likely memory corrupions concerning dirname() missuses
2015-08-10 00:16:14 +02:00
Ghislain MARY
f3a4fc6b4a
Fix build with Visual Studio.
2015-08-03 11:35:25 +02:00
François Grisez
6d3d8a8f3d
Fix regression concerning the reading and the creation of .linphonerc
...
The .linphonerc file was not created at the first launch of Linphone.
The realpath function fails and returns NULL when passing a path which points on
an empty file.
2015-08-02 23:16:10 +02:00
Sylvain Berfini
a58201f10a
Fix crash on bb10 with current realpath use
2015-08-01 18:17:47 +02:00
Gautier Pelloux-Prayer
4eda45d82d
lpconfig.c: use lp_realpath stub beacuse windows does not support/implement realpath and use proper string allocator
2015-07-28 13:03:22 +02:00
Gautier Pelloux-Prayer
6ce479b312
lpconfig.c: when reading linphonerc, we must follow symlinks
2015-07-28 11:48:32 +02:00
Ghislain MARY
8722f8a990
Add Visual Studio project for Windows 10.
2015-07-03 16:56:14 +02:00
Gautier Pelloux-Prayer
4e974956cb
lpconfig.c: fix ISO C90 error
2015-05-11 17:00:04 +02:00
Gautier Pelloux-Prayer
d6cdbe46c4
lpconfig.c: add lp_config_relative_file_exists and use it to avoid false-positive logs for .linphone.ecstate file
2015-05-11 10:27:23 +02:00
Ghislain MARY
9133e161dd
Fix crash on Windows when no linphonerc file is configured.
2015-04-07 15:08:26 +02:00
Guillaume BIENKOWSKI
13db966940
Fix comment handling when the comment is the last item in at the end of a file without endline
2015-04-01 13:12:51 +02:00
Ghislain MARY
706ed3cfa1
Test if the filename of the lpconfig is not NULL before trying to read a relative file.
2015-03-23 11:47:32 +01:00
Simon Morlat
8f633b21fc
fix stack overflow.
2014-12-18 16:17:26 +01:00
François Grisez
db5fc6ea89
Fix the reading of .linpohne.ecstate
2014-12-12 12:12:44 +01:00
Simon Morlat
d184192b9f
fix linphonerc renaming for windows
2014-10-15 15:08:51 +02:00
Simon Morlat
08539a0895
atomically sync the lpconfig on disk
2014-10-15 10:57:08 +02:00
Sylvain Berfini
a7e257bcab
Fix compil for windows phone
2014-09-23 11:20:00 +02:00
Ghislain MARY
36de60130b
Fix compilation on Windows.
2014-09-10 10:00:56 +02:00
François Grisez
112b93a790
Fix compilation for CentOS
2014-09-10 09:35:51 +02:00
François Grisez
92792ef19f
Fix compilation with MinGW
2014-09-09 13:28:13 +02:00
François Grisez
75eee41a76
Fix bug #1426 : Echo cancelation state blob is too big for being in linphonerc
...
The state of the echo canceler is stored in a file beside .linphonerc
The file is named .linphone.ecstate
2014-09-09 12:27:19 +02:00
Guillaume BIENKOWSKI
3c32fd4397
Fix remote provisioning zero-length values. Fixes #1457 again.
2014-09-04 16:10:34 +02:00
Guillaume BIENKOWSKI
6de4c89510
Don't allow values to be empty in a linphonerc file.
...
Added unit tests for this.
Fixes #1457
2014-09-04 15:35:44 +02:00
Simon Morlat
da54b475d7
improve management of comments in linphonerc parser
2014-05-21 15:43:58 +02:00
Ghislain MARY
28e99d08e1
Fix compilation with Visual Studio.
2014-04-22 16:34:43 +02:00
Simon Morlat
c1ef06eb8f
add refcounting to LpConfig
2014-04-18 16:05:37 +02:00
Guillaume BIENKOWSKI
08645f8eea
Add lp_config_new_from_buffer
2014-04-11 16:21:02 +02:00
Simon Morlat
3013fd8ae2
allow configuration of root_ca before provisioning, so that it can be used for https fetching
2014-03-26 17:51:47 +01:00
Sylvain Berfini
7630d39863
Added possibility to set parameters key=value for sections
2014-03-07 15:46:07 +01:00
Sylvain Berfini
cac1551acd
Reworked lpconfig global default values section to have one default value for each section + use proxy default value when creating proxy config
2014-03-03 10:54:56 +01:00
Ghislain MARY
92f81c8d07
Use right functions to free and duplicate strings.
2014-02-03 17:47:50 +01:00
Ghislain MARY
ec2838cc96
Free memory allocated by ortp_strdup() with ortp_free() instead of free() to prevent crashes on Windows.
2014-01-15 14:50:44 +01:00