X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Flib_internal%2Fmatchlist.h;h=d06e7bdd4fa0466d232393cd9991d913023b38d2;hb=37705d50d8885d4ec983fc0b373704ab42d95eaf;hp=0e31517dfdbc0a092b8385d2116f9383de0cc78d;hpb=e2c0f11e78a2029eb6b4a9b6acaafe7f778d98a2;p=util-vserver.git diff --git a/util-vserver/lib_internal/matchlist.h b/util-vserver/lib_internal/matchlist.h index 0e31517..d06e7bd 100644 --- a/util-vserver/lib_internal/matchlist.h +++ b/util-vserver/lib_internal/matchlist.h @@ -26,12 +26,13 @@ #include typedef int (*MatchItemCompareFunc)(char const *, char const *); +typedef enum { stINCLUDE,stEXCLUDE,stSKIP } MatchType; struct MatchItem { - enum { stINCLUDE, stEXCLUDE } type; - char const * name; - MatchItemCompareFunc cmp; + MatchType type; + char const * name; + MatchItemCompareFunc cmp; }; struct MatchList @@ -62,7 +63,7 @@ void MatchList_appendFiles(struct MatchList *, size_t idx, char **files, size_t count, bool auto_type) NONNULL((1,3)); -bool MatchList_compare(struct MatchList const *, +MatchType MatchList_compare(struct MatchList const *, char const *path) NONNULL((1,2)); struct MatchItem const * MatchList_find(struct MatchList const *,