#include "gmime-extra.h"
#include "notmuch.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct _notmuch_crypto {
bool verify;
notmuch_decryption_policy_t decrypt;
void
_notmuch_crypto_cleanup (_notmuch_crypto_t *crypto);
+#ifdef __cplusplus
+}
+#endif
#endif
#include "function-attributes.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* There's no point in continuing when we've detected that we've done
* something wrong internally (as opposed to the user passing in a
* bogus value).
_internal_error (format " (%s).\n", \
##__VA_ARGS__, __location__)
+#ifdef __cplusplus
+}
+#endif
#endif
#ifndef _GMIME_EXTRA_H
#define _GMIME_EXTRA_H
#include <gmime/gmime.h>
-
-GMimeStream *g_mime_stream_stdout_new(void);
-
#include <talloc.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+GMimeStream *g_mime_stream_stdout_new(void);
#if (GMIME_MAJOR_VERSION < 3)
*/
const char * g_mime_certificate_get_valid_userid (GMimeCertificate *cert);
+#ifdef __cplusplus
+}
+#endif
+
#endif
#ifndef _HEX_ESCAPE_H
#define _HEX_ESCAPE_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef enum hex_status {
HEX_SUCCESS = 0,
HEX_SYNTAX_ERROR,
*/
hex_status_t
hex_decode_inplace (char *s);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif
#include <talloc.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Like talloc_strndup, but take an extra parameter for the internal talloc
* name (for debugging) */
#define talloc_strndup_debug(ctx, str, len) talloc_strndup_named_const (ctx, str, len, __location__)
+#ifdef __cplusplus
+}
+#endif
+
#endif
#include <sys/types.h>
#include <regex.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* xutil.c */
void *
xcalloc (size_t nmemb, size_t size);
xregexec (const regex_t *preg, const char *string,
size_t nmatch, regmatch_t pmatch[], int eflags);
+#ifdef __cplusplus
+}
+#endif
+
#endif
#include "util.h"
#include <zlib.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Like getline, but read from a gzFile. Allocation is with talloc.
* Returns:
*
const char *
gz_error_string (util_status_t status, gzFile stream);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif