summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb_private.h
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2016-06-29 16:30:39 +0200
committerJakub Hrozek <jhrozek@redhat.com>2016-07-07 10:29:52 +0200
commit6d66c2c465861ff2558f2574eddf8315628ccc6d (patch)
tree3fef24bc447043e6a75ec2612e5155baeda1f444 /src/db/sysdb_private.h
parentebbeac5c6b8b87ab478ee5a04ec48fbbba0c9efc (diff)
downloadsssd-6d66c2c465861ff2558f2574eddf8315628ccc6d.tar.gz
sssd-6d66c2c465861ff2558f2574eddf8315628ccc6d.tar.xz
sssd-6d66c2c465861ff2558f2574eddf8315628ccc6d.zip
SYSDB: Allow passing a context to sysdb upgrade functions
We decide on whether to upgrade or not based on a pointer value, not a boolean. This pointer points to a structure that the upgrade invoker (typically the monitor) can use to fill auxilary data the sysdb upgrade has no means of instantiating. Reviewed-by: Sumit Bose <sbose@redhat.com>
Diffstat (limited to 'src/db/sysdb_private.h')
-rw-r--r--src/db/sysdb_private.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/db/sysdb_private.h b/src/db/sysdb_private.h
index fda33dc74..af3bde1b1 100644
--- a/src/db/sysdb_private.h
+++ b/src/db/sysdb_private.h
@@ -127,10 +127,15 @@ errno_t sysdb_ldb_connect(TALLOC_CTX *mem_ctx,
const char *filename,
int flags,
struct ldb_context **_ldb);
+
+struct sysdb_dom_upgrade_ctx {
+ int unused;
+};
+
int sysdb_domain_init_internal(TALLOC_CTX *mem_ctx,
struct sss_domain_info *domain,
const char *db_path,
- bool allow_upgrade,
+ struct sysdb_dom_upgrade_ctx *upgrade_ctx,
struct sysdb_ctx **_ctx);
/* Upgrade routines */