Files
libgphoto2/frontends/command-line/foreach.h
Lutz Mueller d5a4ec11b2 2002-02-08 Lutz M�ller <lutz@users.sourceforge.net>
* frontends/command-line: s/image/file and s/picture/file with
          the exception of capture-image.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4105 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-08 12:58:20 +00:00

42 lines
1.4 KiB
C

/* foreach.h
*
* Copyright (C) 2002 Lutz Müller <lutz@users.sourceforge.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef __FOREACH_H__
#define __FOREACH_H__
#include <gphoto2-list.h>
#include "actions.h"
typedef enum _ForEachFlags ForEachFlags;
enum _ForEachFlags {
FOR_EACH_FLAGS_RECURSE = 1 << 0,
FOR_EACH_FLAGS_REVERSE = 1 << 1
};
int for_each_folder (const char *folder, FolderAction action,
ForEachFlags flags);
int for_each_file (const char *folder, FileAction action,
ForEachFlags flags);
int for_each_file_in_range (const char *folder, FileAction action,
ForEachFlags flags, char *range);
#endif /* __FOREACH_H__ */