1 /* guestmount - mount guests using libguestfs and FUSE
2 * Copyright (C) 2009 Red Hat Inc.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 * Derived from the example program 'fusexmp.c':
19 * Copyright (C) 2001-2007 Miklos Szeredi <miklos@szeredi.hu>
21 * This program can be distributed under the terms of the GNU GPL.
22 * See the file COPYING.
30 #define _(str) dgettext(PACKAGE, (str))
31 //#define N_(str) dgettext(PACKAGE, (str))
37 #define STREQ(a,b) (strcmp((a),(b)) == 0)
38 #define STRCASEEQ(a,b) (strcasecmp((a),(b)) == 0)
39 #define STRNEQ(a,b) (strcmp((a),(b)) != 0)
40 #define STRCASENEQ(a,b) (strcasecmp((a),(b)) != 0)
41 #define STREQLEN(a,b,n) (strncmp((a),(b),(n)) == 0)
42 #define STRCASEEQLEN(a,b,n) (strncasecmp((a),(b),(n)) == 0)
43 #define STRNEQLEN(a,b,n) (strncmp((a),(b),(n)) != 0)
44 #define STRCASENEQLEN(a,b,n) (strncasecmp((a),(b),(n)) != 0)
45 #define STRPREFIX(a,b) (strncmp((a),(b),strlen((b))) == 0)
48 bad_cast (char const *s)
55 #endif /* GUESTMOUNT_H_ */