~ubuntu-branches/ubuntu/vivid/postfix/vivid-proposed

« back to all changes in this revision

Viewing changes to src/global/mail_version.h

  • Committer: Package Import Robot
  • Author(s): LaMont Jones
  • Date: 2012-03-20 13:47:16 UTC
  • mfrom: (1.1.33)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: package-import@ubuntu.com-20120320134716-v7ab94fmor2z9pvp
Tags: upstream-2.9.1
ImportĀ upstreamĀ versionĀ 2.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
  * Patches change both the patchlevel and the release date. Snapshots have no
21
21
  * patchlevel; they change the release date only.
22
22
  */
23
 
#define MAIL_RELEASE_DATE       "20111105"
24
 
#define MAIL_VERSION_NUMBER     "2.8.7"
 
23
#define MAIL_RELEASE_DATE       "20120218"
 
24
#define MAIL_VERSION_NUMBER     "2.9.1"
25
25
 
26
26
#ifdef SNAPSHOT
27
27
# define MAIL_VERSION_DATE      "-" MAIL_RELEASE_DATE
67
67
#define MAIL_VERSION_STAMP_ALLOCATE \
68
68
    mail_version_stamp = strdup(VAR_MAIL_VERSION "=" DEF_MAIL_VERSION)
69
69
 
 
70
 /*
 
71
  * Mail version string parser, plus support to compare the compile-time
 
72
  * version string of a Postfix program with the run-time version string of a
 
73
  * Postfix shared library. When programs are not updated, they may fail in
 
74
  * erratic ways when linked against a newer run-time library. Of course the
 
75
  * right solution is so-number versioning of the Postfix run-time library.
 
76
  */
 
77
typedef struct {
 
78
    char   *program;                    /* postfix */
 
79
    int     major;                      /* 2 */
 
80
    int     minor;                      /* 9 */
 
81
    int     patch;                      /* null */
 
82
    char   *snapshot;                   /* 20111209-nonprod */
 
83
} MAIL_VERSION;
 
84
 
 
85
extern MAIL_VERSION *mail_version_parse(const char *, const char **);
 
86
extern void mail_version_free(MAIL_VERSION *);
 
87
extern const char *get_mail_version(void);
 
88
extern void check_mail_version(const char *);
 
89
 
 
90
#define MAIL_VERSION_CHECK \
 
91
    check_mail_version(DEF_MAIL_VERSION)
 
92
 
70
93
/* LICENSE
71
94
/* .ad
72
95
/* .fi