18 |
#ifndef _MAILUTILS_REFCOUNT_H |
#ifndef _MAILUTILS_REFCOUNT_H |
19 |
#define _MAILUTILS_REFCOUNT_H |
#define _MAILUTILS_REFCOUNT_H |
20 |
|
|
|
#include <sys/types.h> |
|
21 |
#include <mailutils/mu_features.h> |
#include <mailutils/mu_features.h> |
22 |
|
#include <mailutils/types.h> |
23 |
|
|
24 |
#ifdef __cplusplus |
#ifdef __cplusplus |
25 |
extern "C" { |
extern "C" { |
26 |
#endif |
#endif |
27 |
|
|
|
/* forward declaration */ |
|
|
struct _refcount; |
|
|
typedef struct _refcount *mu_refcount_t; |
|
|
|
|
28 |
extern int mu_refcount_create __P ((mu_refcount_t *)); |
extern int mu_refcount_create __P ((mu_refcount_t *)); |
29 |
extern void mu_refcount_destroy __P ((mu_refcount_t *)); |
extern void mu_refcount_destroy __P ((mu_refcount_t *)); |
30 |
extern int mu_refcount_inc __P ((mu_refcount_t)); |
extern int mu_refcount_inc __P ((mu_refcount_t)); |