From 44749ce0c1fee9babee80060fa0db99eebb2ab51 Mon Sep 17 00:00:00 2001 From: Pavel Březina Date: Mon, 7 May 2012 13:48:45 +0200 Subject: sysdb: add getter/setter for last sudo full refresh time --- src/db/sysdb_sudo.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/db/sysdb_sudo.h') diff --git a/src/db/sysdb_sudo.h b/src/db/sysdb_sudo.h index a8e2f8910..606434517 100644 --- a/src/db/sysdb_sudo.h +++ b/src/db/sysdb_sudo.h @@ -30,6 +30,7 @@ /* attribute of SUDORULE_SUBDIR * should be true if we have downloaded all rules atleast once */ #define SYSDB_SUDO_AT_REFRESHED "refreshed" +#define SYSDB_SUDO_AT_LAST_FULL_REFRESH "sudoLastFullRefreshTime" /* sysdb attributes */ #define SYSDB_SUDO_CACHE_AT_OC "sudoRule" @@ -81,6 +82,9 @@ sysdb_save_sudorule(struct sysdb_ctx *sysdb_ctx, const char *rule_name, struct sysdb_attrs *attrs); +errno_t sysdb_sudo_set_last_full_refresh(struct sysdb_ctx *sysdb, time_t value); +errno_t sysdb_sudo_get_last_full_refresh(struct sysdb_ctx *sysdb, time_t *value); + errno_t sysdb_sudo_set_refreshed(struct sysdb_ctx *sysdb, bool refreshed); -- cgit