Permit exporting profile file data into a buffer
authorKen Raeburn <raeburn@mit.edu>
Wed, 27 Oct 2004 00:07:20 +0000 (00:07 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 27 Oct 2004 00:07:20 +0000 (00:07 +0000)
commitb5781e4174975388a7c3f077723bff66b974b538
tree9a8a6458f81f2680acc7900ebe73bb4f4ed3db01
parentd4c65184e13ab5c027df4698375a68293ab67cf0
Permit exporting profile file data into a buffer

* prof_file.c (profile_flush_file_data_to_buffer): New function.
* profi_init.c (profile_flush_to_buffer, profile_free_buffer): New functions.
* prof_parse.c (output_quoted_string): Use a callback instead of stdio calls.
(dump_profile): Renamed from dump_profile_to_file.  Use a callback instead of
stdio calls.
(dump_profile_to_file_cb): New function.
(profile_write_tree_file): Updated to new internal interface.
(struct prof_buf): New type.
(add_data_to_buffer, dump_profile_to_buffer_cb, profile_write_tree_to_buffer):
New functions.
* prof_int.h (profile_write_tree_to_buffer, profile_flush_file_data_to_buffer):
Declare.
* profile.hin (profile_flush_to_buffer, profile_free_buffer): Declare.
* libprofile.exports: Export profile_flush_to_buffer and profile_free_buffer.
* profile.swg (profile_flush_to_buffer): Declare.
* profile_tcl.c: Regenerated.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16838 dc483132-0cff-0310-8789-dd5450dbe970
src/util/profile/ChangeLog
src/util/profile/libprofile.exports
src/util/profile/prof_file.c
src/util/profile/prof_init.c
src/util/profile/prof_int.h
src/util/profile/prof_parse.c
src/util/profile/profile.hin
src/util/profile/profile.swg
src/util/profile/profile_tcl.c