diff options
| author | 2020-02-26 18:47:58 +0000 | |
|---|---|---|
| committer | 2020-02-26 18:47:58 +0000 | |
| commit | 873f12b9e6aaf39ba104db6af3d0dc687cd95f7e (patch) | |
| tree | 80081a71df3f42a8248c43286fef79e79ede9a40 /usr.bin/dig/lib/isc/include | |
| parent | In preparation of compiling lib/dns/rdata/ files individually we need (diff) | |
| download | wireguard-openbsd-873f12b9e6aaf39ba104db6af3d0dc687cd95f7e.tar.xz wireguard-openbsd-873f12b9e6aaf39ba104db6af3d0dc687cd95f7e.zip | |
In preparation of compiling lib/dns/rdata/ files individually we need
global visibility of str_totext.
Rename it to isc_str_tobuffer, put it into buffer.c and delete
duplicate implementations.
Diffstat (limited to 'usr.bin/dig/lib/isc/include')
| -rw-r--r-- | usr.bin/dig/lib/isc/include/isc/buffer.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/dig/lib/isc/include/isc/buffer.h b/usr.bin/dig/lib/isc/include/isc/buffer.h index d3740724443..049238cd4df 100644 --- a/usr.bin/dig/lib/isc/include/isc/buffer.h +++ b/usr.bin/dig/lib/isc/include/isc/buffer.h @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: buffer.h,v 1.8 2020/02/26 18:47:26 florian Exp $ */ +/* $Id: buffer.h,v 1.9 2020/02/26 18:48:00 florian Exp $ */ #ifndef ISC_BUFFER_H #define ISC_BUFFER_H 1 @@ -717,4 +717,8 @@ isc_buffer_copyregion(isc_buffer_t *b, const isc_region_t *r); isc_result_t isc_mem_tobuffer(isc_buffer_t *target, void *base, unsigned int length); + +/* this used to be str_totext() in rdata.c etc. */ +isc_result_t +isc_str_tobuffer(const char *source, isc_buffer_t *target); #endif /* ISC_BUFFER_H */ |
