diff options
author | Carl Worth <cworth@cworth.org> | 2009-10-21 13:57:02 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-10-21 13:57:02 -0700 |
commit | 9ec5189a56e5616792f0a8a2ee6fba4e397ae2e2 (patch) | |
tree | a08dd8994121e40490428204f040903c3b92cd07 /notmuch-private.h | |
parent | 0e914d9e9646349976c16472be9e986ad4b3e29e (diff) |
Move declarations for xutil.c from notmuch-private to new xutil.h.
The motivation here is that our top-level notmuch.c main program
wants to start using these, but we don't want it to see into
notmuch-private.h, (since our main program is a test vehicle
for the "public" notmuch interface in notmuch.h).
Diffstat (limited to 'notmuch-private.h')
-rw-r--r-- | notmuch-private.h | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/notmuch-private.h b/notmuch-private.h index 2bf6beb..c60c4d8 100644 --- a/notmuch-private.h +++ b/notmuch-private.h @@ -43,6 +43,7 @@ NOTMUCH_BEGIN_DECLS #include <talloc.h> +#include "xutil.h" /* Thanks to Andrew Tridgell's (SAMBA's) talloc for this definition of * unlikely. The talloc source code comes to us via the GNU LGPL v. 3. @@ -75,22 +76,6 @@ typedef enum { NOTMUCH_VALUE_DATE = 2 } notmuch_value_t; -/* xutil.c */ -void * -xcalloc (size_t nmemb, size_t size); - -void * -xmalloc (size_t size); - -void * -xrealloc (void *ptrr, size_t size); - -char * -xstrdup (const char *s); - -char * -xstrndup (const char *s, size_t n); - /* message.cc */ notmuch_message_t * |