Ignore:
Timestamp:
Jul 30, 2007, 10:59:10 PM (17 years ago)
Author:
rainer
Message:

Revision of file flag code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/samhain.h

    r105 r114  
    124124  SH_CHECK_CHECK   = 2
    125125};
     126
     127/* Flags for file status
     128 */
     129#define SH_FFLAG_ALLIGNORE (1<<0)
     130#define SH_FFLAG_VISITED   (1<<1)
     131#define SH_FFLAG_CHECKED   (1<<3)
     132#define SH_FFLAG_REPORTED  (1<<3)
     133
     134#define SH_FFLAG_ALLIGNORE_SET(a)   (((a) & SH_FFLAG_ALLIGNORE) != 0)
     135#define SET_SH_FFLAG_ALLIGNORE(a)   ((a) |= SH_FFLAG_ALLIGNORE)
     136#define CLEAR_SH_FFLAG_ALLIGNORE(a) ((a) &= ~SH_FFLAG_ALLIGNORE)
     137
     138#define SH_FFLAG_VISITED_SET(a)     (((a) & SH_FFLAG_VISITED) != 0)
     139#define SET_SH_FFLAG_VISITED(a)     ((a) |= SH_FFLAG_VISITED)
     140#define CLEAR_SH_FFLAG_VISITED(a)   ((a) &= ~SH_FFLAG_VISITED)
     141
     142#define SH_FFLAG_CHECKED_SET(a)     (((a) & SH_FFLAG_VISITED) != 0)
     143#define SET_SH_FFLAG_CHECKED(a)     ((a) |= SH_FFLAG_VISITED)
     144#define CLEAR_SH_FFLAG_CHECKED(a)   ((a) &= ~SH_FFLAG_VISITED)
     145
     146#define SH_FFLAG_REPORTED_SET(a)    (((a) & SH_FFLAG_REPORTED) != 0)
     147#define SET_SH_FFLAG_REPORTED(a)    ((a) |= SH_FFLAG_REPORTED)
     148#define CLEAR_SH_FFLAG_REPORTED(a)  ((a) &= ~SH_FFLAG_REPORTED)
     149
    126150
    127151
Note: See TracChangeset for help on using the changeset viewer.