summaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-01-04 21:15:34 -0500
committerStephen Gallagher <sgallagh@redhat.com>2012-01-23 08:31:33 -0500
commit8941d820e05e6a93225b45021dcc314a004f20bc (patch)
tree3d264648233b3dc6a99eff369e885e90d055f764 /src/db
parenteac695ff9189fcfcea0f233a01abf582ff685c30 (diff)
downloadsssd-8941d820e05e6a93225b45021dcc314a004f20bc.tar.gz
sssd-8941d820e05e6a93225b45021dcc314a004f20bc.tar.bz2
sssd-8941d820e05e6a93225b45021dcc314a004f20bc.zip
SYSDB: Move add_string and add_ulong to sysdb_private.h
Diffstat (limited to 'src/db')
-rw-r--r--src/db/sysdb_ops.c8
-rw-r--r--src/db/sysdb_private.h5
2 files changed, 9 insertions, 4 deletions
diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c
index 93702451..4c4bc5ce 100644
--- a/src/db/sysdb_ops.c
+++ b/src/db/sysdb_ops.c
@@ -24,8 +24,8 @@
#include "util/crypto/sss_crypto.h"
#include <time.h>
-static int add_string(struct ldb_message *msg, int flags,
- const char *attr, const char *value)
+int add_string(struct ldb_message *msg, int flags,
+ const char *attr, const char *value)
{
int ret;
@@ -37,8 +37,8 @@ static int add_string(struct ldb_message *msg, int flags,
return ENOMEM;
}
-static int add_ulong(struct ldb_message *msg, int flags,
- const char *attr, unsigned long value)
+int add_ulong(struct ldb_message *msg, int flags,
+ const char *attr, unsigned long value)
{
int ret;
diff --git a/src/db/sysdb_private.h b/src/db/sysdb_private.h
index 047e1989..8d3eee72 100644
--- a/src/db/sysdb_private.h
+++ b/src/db/sysdb_private.h
@@ -98,4 +98,9 @@ int sysdb_upgrade_05(struct sysdb_ctx *sysdb, const char **ver);
int sysdb_upgrade_06(struct sysdb_ctx *sysdb, const char **ver);
int sysdb_upgrade_07(struct sysdb_ctx *sysdb, const char **ver);
+
+int add_string(struct ldb_message *msg, int flags,
+ const char *attr, const char *value);
+int add_ulong(struct ldb_message *msg, int flags,
+ const char *attr, unsigned long value);
#endif /* __INT_SYS_DB_H__ */