aboutsummaryrefslogtreecommitdiffstats
path: root/android/utils/dirscanner.h
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-03 18:28:35 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-03 18:28:35 -0800
commitf721e3ac031f892af46f255a47d7f54a91317b30 (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /android/utils/dirscanner.h
parentbae1bc39312d5019bd9a5b8d840a529213a69a17 (diff)
downloadexternal_qemu-f721e3ac031f892af46f255a47d7f54a91317b30.zip
external_qemu-f721e3ac031f892af46f255a47d7f54a91317b30.tar.gz
external_qemu-f721e3ac031f892af46f255a47d7f54a91317b30.tar.bz2
auto import from //depot/cupcake/@135843
Diffstat (limited to 'android/utils/dirscanner.h')
-rw-r--r--android/utils/dirscanner.h51
1 files changed, 0 insertions, 51 deletions
diff --git a/android/utils/dirscanner.h b/android/utils/dirscanner.h
deleted file mode 100644
index 871b05e..0000000
--- a/android/utils/dirscanner.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/* Copyright (C) 2007-2008 The Android Open Source Project
-**
-** This software is licensed under the terms of the GNU General Public
-** License version 2, as published by the Free Software Foundation, and
-** may be copied, distributed, and modified under those terms.
-**
-** This program is distributed in the hope that it will be useful,
-** but WITHOUT ANY WARRANTY; without even the implied warranty of
-** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-** GNU General Public License for more details.
-*/
-#ifndef _ANDROID_UTILS_DIR_H
-#define _ANDROID_UTILS_DIR_H
-
-/* simple utility to parse directories for files */
-/* needed because Unix and Windows don't use the same stuff */
-
-typedef struct DirScanner DirScanner;
-
-/* Create a new directory scanner object from a given rootPath.
- * returns NULL in case of failure (error code in errno)
- */
-DirScanner* dirScanner_new ( const char* rootPath );
-
-/* Destroy a given directory scanner. You must always call
- * this function to release proper system resources.
- */
-void dirScanner_free( DirScanner* s );
-
-/* Get the name of the next file from a directory scanner.
- * Returns NULL when there is no more elements in the list.
- *
- * This is only the file name, use dirScanner_nextFull to
- * get its full path.
- *
- * This will never return '.' and '..'.
- *
- * The returned string is owned by the scanner, and will
- * change on the next call to this function or when the
- * scanner is destroyed.
- */
-const char* dirScanner_next( DirScanner* s );
-
-/* A variant of dirScanner_next() which returns the full path
- * to the next directory element.
- */
-const char* dirScanner_nextFull( DirScanner* s );
-
-/* */
-
-#endif /* _ANDROID_UTILS_DIR_H */