~ubuntu-branches/debian/sid/ember/sid

« back to all changes in this revision

Viewing changes to src/components/ogre/SceneManagers/EmberPagingSceneManager/include/fileutils.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Koch
  • Date: 2009-07-23 07:46:40 UTC
  • Revision ID: james.westby@ubuntu.com-20090723074640-wh0ukzis0kda36qv
Tags: upstream-0.5.6
ImportĀ upstreamĀ versionĀ 0.5.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
*                                                                         *
 
3
*   This program is free software; you can redistribute it and/or modify  *
 
4
*   it under the terms of the GNU Lesser General Public License as        *
 
5
*   published by the Free Software Foundation; either version 2 of the    *
 
6
*   License, or (at your option) any later version.                       *
 
7
*                                                                         *
 
8
***************************************************************************/
 
9
/**
 
10
@file 
 
11
fileutils.h
 
12
@brief
 
13
Utility function to manage directories
 
14
*/
 
15
#ifndef fileutils_H
 
16
#define fileutils_H
 
17
 
 
18
#ifdef __cplusplus
 
19
extern "C" { 
 
20
#endif
 
21
/**
 
22
* check if directory exists or not* 
 
23
* \param *Dirname name of the directory
 
24
* \return true if exists
 
25
*/
 
26
bool DirExists(const char *Dirname);
 
27
/**
 
28
 * change the current directory and return old one
 
29
 * as a MALLOC'ED by system ONE
 
30
 * \param *Dirname 
 
31
 * \return 
 
32
 */
 
33
char* ChangeToDir(const char* Dirname);
 
34
/**
 
35
 * Reestablish directory to current one before changing
 
36
 * and free the char* MALLOC'ED by system when changing.
 
37
 * \param *oldDirname 
 
38
 */
 
39
void RetablishDir(char* oldDirname);
 
40
 
 
41
#ifdef __cplusplus
 
42
}/* end extern C definitions */ 
 
43
#endif
 
44
 
 
45
#endif //fileutils_H