]> git.notmuchmail.org Git - notmuch/blob - notmuch-private.h
15d6db4856748c064c58c7968c148fb8d3bbe1d8
[notmuch] / notmuch-private.h
1 /* notmuch-private.h - Internal interfaces for notmuch.
2  *
3  * Copyright © 2009 Carl Worth
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program.  If not, see http://www.gnu.org/licenses/ .
17  *
18  * Author: Carl Worth <cworth@cworth.org>
19  */
20
21 #ifndef NOTMUCH_PRIVATE_H
22 #define NOTMUCH_PRIVATE_H
23
24 #include "notmuch.h"
25
26 #include <stdlib.h>
27 #include <string.h>
28
29 NOTMUCH_BEGIN_DECLS
30
31 /* xutil.c */
32 void *
33 xcalloc (size_t nmemb, size_t size);
34
35 void *
36 xmalloc (size_t size);
37
38 void *
39 xrealloc (void *ptrr, size_t size);
40
41 char *
42 xstrdup (const char *s);
43
44 char *
45 xstrndup (const char *s, size_t n);
46
47 NOTMUCH_END_DECLS
48
49 #endif