Changeset 5cd6f2851ede7865a1f3e2c3479344a39082391f
- Timestamp:
- 05/05/08 22:34:22
(4 months ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1210019662 +0300
- git-parent:
[786f7e30d7e7f328de3ec43ade07c4abb416f2c5]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1210017081 +0300
- Message:
Inline config_GetUserDir
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r786f7e3 |
r5cd6f28 |
|
| 676 | 676 | } |
|---|
| 677 | 677 | |
|---|
| 678 | | /** |
|---|
| 679 | | * Get the user's main data and config directory: |
|---|
| 680 | | * - on windows that's the App Data directory; |
|---|
| 681 | | * - on other OSes it's the same as the home directory. |
|---|
| 682 | | */ |
|---|
| 683 | | char *config_GetUserDir( void ); /* XXX why does gcc wants a declaration ? |
|---|
| 684 | | * --funman */ |
|---|
| 685 | | char *config_GetUserDir( void ) |
|---|
| 686 | | { |
|---|
| 687 | | return GetDir( true ); |
|---|
| 688 | | } |
|---|
| 689 | | |
|---|
| 690 | 678 | static char *config_GetFooDir (const char *xdg_name, const char *xdg_default) |
|---|
| 691 | 679 | { |
|---|
| 692 | 680 | char *psz_dir; |
|---|
| 693 | 681 | #if defined(WIN32) || defined(__APPLE__) || defined(SYS_BEOS) |
|---|
| 694 | | char *psz_parent = config_GetUserDir(); |
|---|
| | 682 | char *psz_parent = GetDir (true); |
|---|
| 695 | 683 | |
|---|
| 696 | 684 | if( asprintf( &psz_dir, "%s" DIR_SEP CONFIG_DIR, psz_parent ) == -1 ) |
|---|