tools, tests: Use "guestfs-internal-frontend.h" header.

Instead of redefining STREQ, etc.
This commit is contained in:
Richard W.M. Jones
2013-02-08 14:14:06 +00:00
parent 30029b7ffb
commit 59b296fecc
19 changed files with 23 additions and 38 deletions

View File

@@ -34,19 +34,7 @@
#include <libintl.h>
#include <guestfs.h>
#define _(str) dgettext(PACKAGE, (str))
//#define N_(str) dgettext(PACKAGE, (str))
#define STREQ(a,b) (strcmp((a),(b)) == 0)
//#define STRCASEEQ(a,b) (strcasecmp((a),(b)) == 0)
//#define STRNEQ(a,b) (strcmp((a),(b)) != 0)
//#define STRCASENEQ(a,b) (strcasecmp((a),(b)) != 0)
//#define STREQLEN(a,b,n) (strncmp((a),(b),(n)) == 0)
//#define STRCASEEQLEN(a,b,n) (strncasecmp((a),(b),(n)) == 0)
//#define STRNEQLEN(a,b,n) (strncmp((a),(b),(n)) != 0)
//#define STRCASENEQLEN(a,b,n) (strncasecmp((a),(b),(n)) != 0)
#define STRPREFIX(a,b) (strncmp((a),(b),strlen((b))) == 0)
#include "guestfs-internal-frontend.h"
#ifndef P_tmpdir
#define P_tmpdir "/tmp"