#ifndef REPLICATION_COMMON_H
#define REPLICATION_COMMON_H
enum replication_priority {
/* user is fully replicated, as far as we know */
/* flag changes, expunges, etc. */
/* new emails */
/* synchronously wait for new emails to be replicated */
};
static inline const char *
{
switch (priority) {
return "none";
case REPLICATION_PRIORITY_LOW:
return "low";
return "high";
return "sync";
}
i_unreached();
}
static inline int
enum replication_priority *priority_r)
{
else
return -1;
return 0;
}
#endif