Commit 4a8e607d 4a8e607d542a14146223022534362ee81a63898b by Sergey Poznyakoff

Build types.h from types.hin to provide mu_off_t for the end user

1 parent dafd0440
...@@ -19,10 +19,15 @@ ...@@ -19,10 +19,15 @@
19 ## 02110-1301 USA 19 ## 02110-1301 USA
20 20
21 BUILT_SOURCES=errno.h 21 BUILT_SOURCES=errno.h
22 EXTRA_DIST=errno.hin 22 EXTRA_DIST=errno.hin types.hin
23 errno.h: $(top_srcdir)/mailbox/errors errno.hin 23 errno.h: $(top_srcdir)/mailbox/errors errno.hin
24 $(AWK) -f $(top_srcdir)/scripts/generr.awk $^ > $@ 24 $(AWK) -f $(top_srcdir)/scripts/generr.awk $^ > $@
25 25
26 types.h: $(top_srcdir)/include/mailutils/types.hin Makefile
27 sed 's/MU_OFF_TYPE/$(MU_OFF_TYPE)/' $(top_srcdir)/include/mailutils/types.hin > $@
28 DISTCLEANFILES = types.h
29
30 pkginclude_DATA = types.h
26 pkginclude_HEADERS = \ 31 pkginclude_HEADERS = \
27 address.h \ 32 address.h \
28 argcv.h \ 33 argcv.h \
...@@ -65,7 +70,6 @@ pkginclude_HEADERS = \ ...@@ -65,7 +70,6 @@ pkginclude_HEADERS = \
65 stream.h \ 70 stream.h \
66 sql.h \ 71 sql.h \
67 tls.h \ 72 tls.h \
68 types.h \
69 url.h 73 url.h
70 74
71 nobase_pkginclude_HEADERS = \ 75 nobase_pkginclude_HEADERS = \
......
...@@ -54,6 +54,8 @@ struct _mu_ticket; ...@@ -54,6 +54,8 @@ struct _mu_ticket;
54 struct _mu_url; 54 struct _mu_url;
55 struct _mu_wicket; 55 struct _mu_wicket;
56 56
57 typedef MU_OFF_TYPE mu_off_t;
58
57 typedef struct _mu_address *mu_address_t; 59 typedef struct _mu_address *mu_address_t;
58 typedef struct _mu_attribute *mu_attribute_t; 60 typedef struct _mu_attribute *mu_attribute_t;
59 typedef struct _mu_authority *mu_authority_t; 61 typedef struct _mu_authority *mu_authority_t;
......