Changeset 080a076a49837a7643778b78db14727017ec2bfb
- Timestamp:
- 05/06/08 22:15:52
(2 months ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1210104952 +0300
- git-parent:
[146dad54bff773b990752e44b92aa35f87cbc678]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1210104628 +0300
- Message:
config_GetConfigFile: remove unused parameter
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rf2ba521 |
r080a076 |
|
| 45 | 45 | int __config_LoadCmdLine ( vlc_object_t *, int *, const char *[], bool ); |
|---|
| 46 | 46 | char *config_GetHomeDir ( void ); |
|---|
| 47 | | char *config_GetConfigFile ( libvlc_int_t * ); |
|---|
| 48 | 47 | char *config_GetCustomConfigFile( libvlc_int_t * ); |
|---|
| 49 | 48 | int __config_LoadConfigFile( vlc_object_t *, const char * ); |
|---|
| r0038469 |
r080a076 |
|
| 45 | 45 | } |
|---|
| 46 | 46 | |
|---|
| | 47 | /** |
|---|
| | 48 | * Get the user's configuration file |
|---|
| | 49 | */ |
|---|
| | 50 | static char *config_GetConfigFile( void ) |
|---|
| | 51 | { |
|---|
| | 52 | char *psz_dir = config_GetUserConfDir(); |
|---|
| | 53 | char *psz_configfile; |
|---|
| | 54 | |
|---|
| | 55 | if( asprintf( &psz_configfile, "%s" DIR_SEP CONFIG_FILE, psz_dir ) == -1 ) |
|---|
| | 56 | psz_configfile = NULL; |
|---|
| | 57 | free( psz_dir ); |
|---|
| | 58 | return psz_configfile; |
|---|
| | 59 | } |
|---|
| | 60 | |
|---|
| 47 | 61 | static FILE *config_OpenConfigFile( vlc_object_t *p_obj, const char *mode ) |
|---|
| 48 | 62 | { |
|---|
| … | … | |
| 52 | 66 | if( !psz_filename ) |
|---|
| 53 | 67 | { |
|---|
| 54 | | psz_filename = config_GetConfigFile( p_obj->p_libvlc ); |
|---|
| | 68 | psz_filename = config_GetConfigFile(); |
|---|
| 55 | 69 | } |
|---|
| 56 | 70 | |
|---|
| … | … | |
| 667 | 681 | |
|---|
| 668 | 682 | /** |
|---|
| 669 | | * Get the user's configuration file |
|---|
| 670 | | */ |
|---|
| 671 | | char *config_GetConfigFile( libvlc_int_t *p_libvlc ) |
|---|
| 672 | | { |
|---|
| 673 | | char *psz_dir = config_GetUserConfDir(); |
|---|
| 674 | | char *psz_configfile; |
|---|
| 675 | | |
|---|
| 676 | | if( asprintf( &psz_configfile, "%s" DIR_SEP CONFIG_FILE, psz_dir ) == -1 ) |
|---|
| 677 | | psz_configfile = NULL; |
|---|
| 678 | | free( psz_dir ); |
|---|
| 679 | | return psz_configfile; |
|---|
| 680 | | } |
|---|
| 681 | | |
|---|
| 682 | | /** |
|---|
| 683 | 683 | * Get the user's configuration file when given with the --config option |
|---|
| 684 | 684 | */ |
|---|