inspect: Add support for Linux Mint and Mandriva.
[libguestfs.git] / fuse / guestmount.h
1 /* guestmount - mount guests using libguestfs and FUSE
2  * Copyright (C) 2009 Red Hat Inc.
3  *
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.
8  *
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.
13  *
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., 675 Mass Ave, Cambridge, MA 02139, USA.
17  *
18  * Derived from the example program 'fusexmp.c':
19  * Copyright (C) 2001-2007  Miklos Szeredi <miklos@szeredi.hu>
20  *
21  * This program can be distributed under the terms of the GNU GPL.
22  * See the file COPYING.
23  */
24
25 #ifndef GUESTMOUNT_H_
26 #define GUESTMOUNT_H_
27
28 #ifdef HAVE_GETTEXT
29 #include "gettext.h"
30 #define _(str) dgettext(PACKAGE, (str))
31 //#define N_(str) dgettext(PACKAGE, (str))
32 #else
33 #define _(str) str
34 //#define N_(str) str
35 #endif
36
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)
46
47 static inline char *
48 bad_cast (char const *s)
49 {
50   return (char *) s;
51 }
52
53 extern int verbose;
54
55 #endif /* GUESTMOUNT_H_ */