diff options
author | Dmitri Pal <dpal@redhat.com> | 2010-07-28 16:24:36 -0400 |
---|---|---|
committer | Dmitri Pal <dpal@redhat.com> | 2010-08-10 12:51:32 -0400 |
commit | e1005dcb23f724fe4af14b2c4ebe288eb33d06ed (patch) | |
tree | d0a0e8def1f3762cd4425995b98da158feaf63f2 /common/ini/ini_comment.h | |
parent | c3d525af687e5d6023c65443736d9c05ee2f042f (diff) | |
download | sssd-e1005dcb23f724fe4af14b2c4ebe288eb33d06ed.tar.gz sssd-e1005dcb23f724fe4af14b2c4ebe288eb33d06ed.tar.xz sssd-e1005dcb23f724fe4af14b2c4ebe288eb33d06ed.zip |
[INI] Extend the comment interface
Take advantage of the already known string length instead
of counting bytes once more.
Diffstat (limited to 'common/ini/ini_comment.h')
-rw-r--r-- | common/ini/ini_comment.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/ini/ini_comment.h b/common/ini/ini_comment.h index db665f8..5365409 100644 --- a/common/ini/ini_comment.h +++ b/common/ini/ini_comment.h @@ -49,6 +49,14 @@ int ini_comment_build(struct ini_comment *ic, const char *line); /** + * Build up a comment object - use this when reading + * comments from a file when length is known. + */ +int ini_comment_build_wl(struct ini_comment *ic, + const char *line, + uint32_t length); + +/** * Modify comment by instering a line. * * idx can be: |