view src/plugins/expire/expire-env.h @ 9575:0a00dcc4f0ea HEAD

lib-storage: Allow shared namespace prefix to use %variable modifiers.
author Timo Sirainen <tss@iki.fi>
date Wed, 26 May 2010 17:07:51 +0100
parents d630b13ccd60
children
line wrap: on
line source

#ifndef EXPIRE_ENV_H
#define EXPIRE_ENV_H

#define DICT_EXPIRE_PREFIX DICT_PATH_SHARED"expire/"

struct expire_env;

struct expire_env *expire_env_init(const char *expunges, const char *altmoves);
void expire_env_deinit(struct expire_env *env);

bool expire_box_find(struct expire_env *env, const char *name,
		     unsigned int *expunge_secs_r,
		     unsigned int *altmove_secs_r);

unsigned int expire_box_find_min_secs(struct expire_env *env, const char *name,
				      bool *altmove_r);

#endif