aboutsummaryrefslogtreecommitdiffstats
path: root/main/netsock.c
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-15 22:08:46 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-15 22:08:46 +0000
commit5343b4f73dd0495d58bb77399d044ff586ef9638 (patch)
tree2229580e652fea2c03599c4c5bd2a1a3eb38ef00 /main/netsock.c
parentec2fcf6ae943b08b1806539ffd758b985b9035a9 (diff)
move the dynamic string support in a better place i.e. string.h
While doing this, add a bit of documentation, and slightly extend the functionality as follows: + a max_len of -1 means that we take whatever the current size is, and never try to extend the buffer; + add support for alloca()-ted dynamic strings, which is very useful for all cases where we do an ast_build_string() now. Next step is to simplify the interface by using shorter names (e.g. ast_str as a prefix) and removing the _thread variant of the functions by saving the threadstorage reference into the struct ast_str. This can be done by overloading the 'type' field. Finally, I will do my best to remove the convoluted interface that results from trying to support platforms without va_copy(). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48509 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/netsock.c')
0 files changed, 0 insertions, 0 deletions