File: flags.h

package info (click to toggle)
gtkfind 1.0.1-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 376 kB
  • ctags: 251
  • sloc: ansic: 3,521; sh: 277; makefile: 50
file content (46 lines) | stat: -rw-r--r-- 1,719 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/* flags.h */
/*
  gtkfind - a graphical "find" program
  Copyright (C) 1999  Matthew Grossman <mattg@oz.net>

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.

  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.
  
  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

/* the enum flag_t stuff, used to set flags instead of a bunch of global
   variables */

#ifndef FLAG_H
#define FLAG_H

enum flag_t { REGEXP_P = 0, SEARCH_SUBDIRS_P, SHELL_COMMAND_P,
	      PRINT_TO_STDOUT_P, PRINT_TO_WINDOW_P, PRINT_FILENAME_ANYWAY_P,
	      OWNER_READ_P, GROUP_READ_P, WORLD_READ_P, OWNER_WRITE_P,
	      GROUP_WRITE_P, WORLD_WRITE_P, OWNER_EXEC_P, GROUP_EXEC_P,
	      WORLD_EXEC_P, SETUID_P, SETGID_P, STICKY_P, DIRECTORY_P,
	      REGULAR_P, RAW_DEVICE_P, BLOCK_DEVICE_P, SYMLINK_P, SOCKET_P,
	      FIFO_P, UID_NOT_LOGIN_P, GID_NOT_GROUP_P, ATIME_ET_P,
	      ATIME_EQ_P, ATIME_LT_P, MTIME_ET_P, MTIME_EQ_P, MTIME_LT_P,
	      CTIME_ET_P, CTIME_EQ_P, CTIME_LT_P, WARNING_WINDOW_P,
	      LONG_OUTPUT_P, WILDCARD_CONTENTS_SEARCH_P,
	      WILDCARD_FILENAME_MATCH_P};



int set_flag(enum flag_t f, int value);
int get_flag(enum flag_t f);
int reset_flags();


#endif /* !FLAG_H */