Commit a7cb3f03 a7cb3f03c794c6947db2851c647004412c4b8325 by Sergey Poznyakoff

Removed typedefs. Included <mailutils/types.h>

1 parent 8f6cfeda
......@@ -20,14 +20,12 @@
#include <sys/types.h>
#include <mailutils/mu_features.h>
#include <mailutils/types.h>
#ifdef __cplusplus
extern "C" {
#endif
struct _address;
typedef struct _address *address_t;
extern int address_create __P ((address_t *, const char *));
extern int address_ref __P ((address_t));
......
......@@ -19,14 +19,12 @@
#define _MAILUTILS_ATTRIBUTE_H
#include <mailutils/mu_features.h>
#include <mailutils/types.h>
#ifdef __cplusplus
extern "C" {
#endif
struct _attribute;
typedef struct _attribute * attribute_t;
#define MU_ATTRIBUTE_ANSWERED 0x000001
#define MU_ATTRIBUTE_FLAGGED 0x000002
#define MU_ATTRIBUTE_DELETED 0x000004
......
......@@ -20,6 +20,7 @@
#include <sys/types.h>
#include <mailutils/mu_features.h>
#include <mailutils/types.h>
#include <mailutils/property.h>
#include <mailutils/stream.h>
......@@ -28,8 +29,6 @@ extern "C" {
#endif
/* forward declaration */
struct _body;
typedef struct _body *body_t;
extern int body_ref __P ((body_t));
extern void body_release __P ((body_t *));
......
......@@ -20,15 +20,13 @@
#include <sys/types.h>
#include <mailutils/mu_features.h>
#include <mailutils/types.h>
#include <mailutils/stream.h>
#ifdef __cplusplus
extern "C" {
#endif
struct _mu_debug;
typedef struct _mu_debug* mu_debug_t;
#define MU_DEBUG_TRACE 1
#define MU_DEBUG_PROT 2
......
......@@ -19,6 +19,7 @@
# define _MAILUTILS_ENVELOPE_H
#include <mailutils/mu_features.h>
#include <mailutils/types.h>
#include <mailutils/address.h>
#include <mailutils/mutil.h>
......@@ -26,9 +27,6 @@
extern "C" {
#endif
struct _envelope;
typedef struct _envelope *envelope_t;
extern int envelope_ref __P ((envelope_t));
extern void envelope_destroy __P ((envelope_t *));
......
......@@ -21,6 +21,7 @@
#include <sys/types.h>
#include <mailutils/mu_features.h>
#include <mailutils/types.h>
#include <mailutils/url.h>
#include <mailutils/observable.h>
#include <mailutils/debug.h>
......@@ -35,8 +36,6 @@ extern "C" {
#endif
/* Forward declaration. */
struct _folder;
typedef struct _folder *folder_t;
#define MU_FOLDER_ATTRIBUTE_DIRECTORY 0x001
#define MU_FOLDER_ATTRIBUTE_FILE 0x002
......
......@@ -20,6 +20,7 @@
#include <sys/types.h>
#include <mailutils/mu_features.h>
#include <mailutils/types.h>
#include <mailutils/stream.h>
#ifdef __cplusplus
......@@ -66,10 +67,6 @@ extern "C" {
/* Mime support header attribute */
/* forward declaration */
struct _header;
typedef struct _header * header_t;
extern int header_ref __P ((header_t));
extern void header_destroy __P ((header_t *));
......
......@@ -19,14 +19,12 @@
#define _MAILUTILS_ITERATOR_H
#include <mailutils/mu_features.h>
#include <mailutils/types.h>
#ifdef __cplusplus
extern "C" {
#endif
struct _iterator;
typedef struct _iterator *iterator_t;
extern int iterator_ref __P ((iterator_t));
extern void iterator_destroy __P ((iterator_t *));
......
......@@ -20,15 +20,13 @@
#include <sys/types.h>
#include <mailutils/mu_features.h>
#include <mailutils/types.h>
#include <mailutils/iterator.h>
#ifdef __cplusplus
extern "C" {
#endif
struct _list;
typedef struct _list *mu_list_t;
extern int mu_list_create __P ((mu_list_t *));
extern int mu_list_ref __P ((mu_list_t));
extern void mu_list_destroy __P ((mu_list_t *));
......
......@@ -20,14 +20,12 @@
#include <sys/types.h>
#include <mailutils/mu_features.h>
#include <mailutils/types.h>
#ifdef __cplusplus
extern "C" {
#endif
struct _lockfile;
typedef struct _lockfile *lockfile_t;
extern int lockfile_ref __P ((lockfile_t));
extern void lockfile_destroy __P ((lockfile_t *));
......
......@@ -18,13 +18,8 @@
#ifndef _MAILUTILS_MAILBOX_H
#define _MAILUTILS_MAILBOX_H
#include <sys/types.h>
/* Forward declaration. */
struct _mailbox;
typedef struct _mailbox *mailbox_t;
#include <mailutils/mu_features.h>
#include <mailutils/types.h>
#include <mailutils/url.h>
#include <mailutils/observer.h>
#include <mailutils/debug.h>
......
......@@ -19,6 +19,7 @@
#define _MAILUTILS_MBOX_H
#include <mailutils/mu_features.h>
#include <mailutils/types.h>
#include <mailutils/stream.h>
#include <mailutils/attribute.h>
#include <mailutils/debug.h>
......@@ -27,10 +28,6 @@
extern "C" {
#endif
struct _mbox;
typedef struct _mbox *mbox_t;
extern int mbox_create __P ((mbox_t *));
extern void mbox_destroy __P ((mbox_t *));
......
......@@ -18,13 +18,8 @@
#ifndef _MAILUTILS_MESSAGE_H
#define _MAILUTILS_MESSAGE_H
#include <sys/types.h>
/* forward declaration */
struct _message;
typedef struct _message *message_t;
#include <mailutils/mu_features.h>
#include <mailutils/types.h>
#include <mailutils/envelope.h>
#include <mailutils/header.h>
#include <mailutils/body.h>
......
......@@ -18,17 +18,14 @@
#ifndef _MAILUTILS_OBSERVABLE_H
#define _MAILUTILS_OBSERVABLE_H
#include <sys/types.h>
#include <mailutils/mu_features.h>
#include <mailutils/types.h>
#include <mailutils/observer.h>
#ifdef __cplusplus
extern "C" {
#endif
struct _observable;
typedef struct _observable *observable_t;
extern int observable_create __P ((observable_t *));
extern void observable_destroy __P ((observable_t *));
......
......@@ -18,16 +18,13 @@
#ifndef _MAILUTILS_OBSERVER_H
#define _MAILUTILS_OBSERVER_H
#include <sys/types.h>
#include <mailutils/mu_features.h>
#include <mailutils/types.h>
#ifdef __cplusplus
extern "C" {
#endif
struct _observer;
typedef struct _observer * observer_t;
struct event
{
int type;
......
......@@ -19,6 +19,7 @@
#define _MAILUTILS_POP3_H
#include <mailutils/mu_features.h>
#include <mailutils/types.h>
#include <mailutils/iterator.h>
#include <mailutils/debug.h>
#include <mailutils/stream.h>
......@@ -27,8 +28,6 @@
extern "C" {
#endif
struct _pop3;
typedef struct _pop3* pop3_t;
typedef iterator_t pop3_capa_iterator_t;
typedef iterator_t pop3_list_iterator_t;
typedef iterator_t pop3_uidl_iterator_t;
......
......@@ -18,16 +18,13 @@
#ifndef _MAILUTILS_PROPERTY_H
#define _MAILUTILS_PROPERTY_H
#include <sys/types.h>
#include <mailutils/mu_features.h>
#include <mailutils/types.h>
#ifdef __cplusplus
extern "C" {
#endif
struct _property;
typedef struct _property *property_t;
extern int property_create __P ((property_t *));
extern void property_destroy __P ((property_t *));
......
......@@ -18,17 +18,13 @@
#ifndef _MAILUTILS_REFCOUNT_H
#define _MAILUTILS_REFCOUNT_H
#include <sys/types.h>
#include <mailutils/mu_features.h>
#include <mailutils/types.h>
#ifdef __cplusplus
extern "C" {
#endif
/* forward declaration */
struct _refcount;
typedef struct _refcount *mu_refcount_t;
extern int mu_refcount_create __P ((mu_refcount_t *));
extern void mu_refcount_destroy __P ((mu_refcount_t *));
extern int mu_refcount_inc __P ((mu_refcount_t));
......
......@@ -18,9 +18,9 @@
#ifndef _MAILUTILS_STREAM_H
#define _MAILUTILS_STREAM_H
#include <sys/types.h>
#include <stdio.h>
#include <mailutils/mu_features.h>
#include <mailutils/types.h>
#ifdef __cplusplus
extern "C" {
......@@ -42,9 +42,6 @@ enum stream_state
MU_STREAM_STATE_CLOSE
};
struct _stream;
typedef struct _stream *stream_t;
extern int stream_ref __P ((stream_t));
extern void stream_destroy __P ((stream_t *));
......
......@@ -18,17 +18,13 @@
#ifndef _MAILUTILS_TICKET_H
#define _MAILUTILS_TICKET_H
#include <sys/types.h>
#include <mailutils/mu_features.h>
#include <mailutils/types.h>
#ifdef __cplusplus
extern "C" {
#endif
/* forward declaration */
struct _ticket;
typedef struct _ticket *ticket_t;
extern int ticket_ref __P ((ticket_t));
extern void ticket_destroy __P ((ticket_t *));
......
......@@ -18,17 +18,13 @@
#ifndef _MAILUTILS_URL_H
#define _MAILUTILS_URL_H 1
#include <sys/types.h>
#include <mailutils/mu_features.h>
#include <mailutils/types.h>
#ifdef __cplusplus
extern "C" {
#endif
/* Forward declaration. */
struct _url;
typedef struct _url * url_t;
extern void url_destroy __P ((url_t *));
extern int url_parse __P ((url_t));
......