summaryrefslogtreecommitdiffstats
path: root/src/util/util.h
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-01-18 11:14:24 -0500
committerStephen Gallagher <sgallagh@redhat.com>2012-01-23 08:31:33 -0500
commit01171ddb20034578c616d0ba07f0268ab71809da (patch)
tree7cc945c4d21115ff16fd1ea0689f1158eb290b62 /src/util/util.h
parent355fe74d2eaab2e021d75437a6b997fd24b9c4e5 (diff)
downloadsssd-01171ddb20034578c616d0ba07f0268ab71809da.tar.gz
sssd-01171ddb20034578c616d0ba07f0268ab71809da.tar.xz
sssd-01171ddb20034578c616d0ba07f0268ab71809da.zip
Move sized_string declaration to utils
Diffstat (limited to 'src/util/util.h')
-rw-r--r--src/util/util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/util.h b/src/util/util.h
index 5428f0af6..30413d9ce 100644
--- a/src/util/util.h
+++ b/src/util/util.h
@@ -512,4 +512,12 @@ sss_tc_utf8_str_tolower(TALLOC_CTX *mem_ctx, const char *s);
uint8_t *
sss_tc_utf8_tolower(TALLOC_CTX *mem_ctx, const uint8_t *s, size_t len, size_t *_nlen);
+/* len includes terminating '\0' */
+struct sized_string {
+ const char *str;
+ size_t len;
+};
+
+void to_sized_string(struct sized_string *out, const char *in);
+
#endif /* __SSSD_UTIL_H__ */