diff options
author | David Härdeman <david@hardeman.nu> | 2007-05-19 17:14:12 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2007-05-19 17:14:12 +0200 |
commit | 5fed2f9169fdd0585cc83ff0fa8210d97da77cb2 (patch) | |
tree | 00bb9a4b2e260301516b137208edf0e270420e23 /metaentry.h | |
parent | 22fd68b59d5f792ff033120ad260581ac7fa72ee (diff) |
80-col align code, add license headers
Diffstat (limited to 'metaentry.h')
-rw-r--r-- | metaentry.h | 42 |
1 files changed, 35 insertions, 7 deletions
diff --git a/metaentry.h b/metaentry.h index dfc43cb..0a2dde1 100644 --- a/metaentry.h +++ b/metaentry.h @@ -1,7 +1,32 @@ -void mentries_recurse_path(const char *, struct metaentry **); -void mentries_tofile(const struct metaentry *, const char *); -void mentries_fromfile(struct metaentry **, const char *); -int mentry_find_xattr(struct metaentry *, struct metaentry *, int); +/* + * Various functions to work with meta entries. + * + * Copyright (C) 2007 David Härdeman <david@hardeman.nu> + * + * 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 version 2 of the License. + * + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + */ + +void mentries_recurse_path(const char *opath, struct metaentry **mhead); + +void mentries_tofile(const struct metaentry *mhead, const char *path); + +void mentries_fromfile(struct metaentry **mhead, const char *path); + +int mentry_find_xattr(struct metaentry *heystack, + struct metaentry *needle, + int n); #define DIFF_NONE 0x00 #define DIFF_OWNER 0x01 @@ -12,7 +37,10 @@ int mentry_find_xattr(struct metaentry *, struct metaentry *, int); #define DIFF_XATTR 0x20 #define DIFF_ADDED 0x40 #define DIFF_DELE 0x80 -void mentries_compare(struct metaentry *, struct metaentry *, - void (*printfunc)(struct metaentry *, struct metaentry *, int)); - +void mentries_compare(struct metaentry *, + struct metaentry *, + void (*printfunc)(struct metaentry *, + struct metaentry *, + int) + ); |