libvirt/src/util
Eric Blake 9202f2c220 buf: support peeking at string contents
Right now, the only way to get at the contents of a virBuffer is
to destroy it.  But there are cases in my upcoming patches where
peeking at the contents makes life easier.  I suppose this does
open up the potential for bad code to dereference a stale pointer,
by disregarding the docs that the return value is invalid on the
next virBuf operation, but such is life.

* src/util/buf.h (virBufferCurrentContent): New declaration.
* src/util/buf.c (virBufferCurrentContent): Implement it.
* src/libvirt_private.syms (buf.h): Export it.
* tests/virbuftest.c (testBufAutoIndent): Test it.
2012-06-11 09:21:27 -06:00
..
bitmap.c
bitmap.h
buf.c buf: support peeking at string contents 2012-06-11 09:21:27 -06:00
buf.h buf: support peeking at string contents 2012-06-11 09:21:27 -06:00
cgroup.c Adds support to param 'vcpu_time' in qemu_driver. 2012-05-18 08:53:49 -06:00
cgroup.h build: fix recent syntax-check breakage 2012-05-16 09:52:44 -06:00
command.c command: avoid potential deadlock on handshake 2012-06-07 09:25:38 -06:00
command.h util: add functions to keep capabilities 2012-01-31 13:36:28 -05:00
conf.c Cleanup for a return statement in source files 2012-03-26 14:45:22 -06:00
conf.h
dnsmasq.c maint: fix improper use of 'an' 2011-12-03 17:11:56 -07:00
dnsmasq.h Split src/util/network.{c,h} into 5 pieces 2011-11-15 10:27:54 +00:00
ebtables.c Consistent style for usage of sizeof operator 2012-03-30 11:47:24 +01:00
ebtables.h
event_poll.c util: fix a typo 2012-02-29 17:42:18 +08:00
event_poll.h
event.c Introduce virConnectSetKeepAlive 2011-11-24 11:44:08 +01:00
event.h
hooks.c Cleanup for a return statement in source files 2012-03-26 14:45:22 -06:00
hooks.h qemu: Add pre-migration hook 2012-02-29 12:27:12 +01:00
hostusb.c usb: create functions to search usb device accurately 2012-05-07 23:36:22 +08:00
hostusb.h usb: create functions to search usb device accurately 2012-05-07 23:36:22 +08:00
iohelper.c Introduce new API for generating random numbers 2012-01-26 14:03:14 +00:00
iptables.c maint: fix improper use of 'an' 2011-12-03 17:11:56 -07:00
iptables.h Split src/util/network.{c,h} into 5 pieces 2011-11-15 10:27:54 +00:00
json.c util: add functions for interating over json object 2012-05-03 09:07:25 -06:00
json.h util: add functions for interating over json object 2012-05-03 09:07:25 -06:00
keymaps.csv Rsync keymaps.csv file with GTK-VNC 2012-01-12 20:44:55 +00:00
logging.c util: Fix deadlock in virLogReset 2012-06-08 10:09:54 +02:00
logging.h Add a virLogMessage alternative taking va_list args 2012-05-16 17:13:13 +01:00
memory.c
memory.h Consistent style for usage of sizeof operator 2012-03-30 11:47:24 +01:00
pci.c Consistent style for usage of sizeof operator 2012-03-30 11:47:24 +01:00
pci.h util: two new pci util functions 2012-03-06 06:03:46 -05:00
processinfo.c qemu: fix memory leak in virDomainGetVcpus 2012-04-02 01:56:02 -04:00
processinfo.h
sexpr.c Cleanup for a return statement in source files 2012-03-26 14:45:22 -06:00
sexpr.h
stats_linux.c Consistent style for usage of sizeof operator 2012-03-30 11:47:24 +01:00
stats_linux.h
storage_file.c Consistent style for usage of sizeof operator 2012-03-30 11:47:24 +01:00
storage_file.h Introduce virStorageFileIsClusterFS 2012-02-23 14:23:45 +01:00
sysinfo.c Implement sysinfo on PowerPC. 2012-03-23 21:56:20 +08:00
sysinfo.h snapshot: simplify indentation of sysinfo 2011-10-20 16:02:16 -06:00
threadpool.c threadpool: Use while loop on virCondWait 2011-12-09 19:33:11 +01:00
threadpool.h daemon: Create priority workers pool 2011-09-05 18:14:08 +02:00
threads-pthread.c threads: check for failure to set thread-local value 2012-01-19 13:14:10 -07:00
threads-pthread.h
threads-win32.c win32: Properly handle TlsGetValue returning NULL 2012-04-21 19:03:08 +02:00
threads-win32.h build: fix header order on mingw 2012-01-25 15:05:45 -07:00
threads.c
threads.h threads: check for failure to set thread-local value 2012-01-19 13:14:10 -07:00
util.c Add impl of APIs to get user directories on Win32 2012-05-28 10:55:09 +01:00
util.h Add impl of APIs to get user directories on Win32 2012-05-28 10:55:09 +01:00
uuid.c uuid: fix possible non-terminated string 2012-05-04 13:22:22 -04:00
uuid.h build: add compiler attributes to virUUIDParse 2011-10-13 12:23:37 -06:00
viratomic.h Improve on virAtomic implementation 2012-04-24 11:13:53 -04:00
viraudit.c Consistent style for usage of sizeof operator 2012-03-30 11:47:24 +01:00
viraudit.h
virauth.c Remove uid param from directory lookup APIs 2012-05-28 10:55:06 +01:00
virauth.h Lookup auth credentials in config file before prompting 2012-03-23 13:24:07 +00:00
virauthconfig.c Add helper API for finding auth file path 2012-03-23 13:24:07 +00:00
virauthconfig.h Add helper API for finding auth file path 2012-03-23 13:24:07 +00:00
virdbus.c The policy kit and HAL node device drivers both require a 2012-04-19 17:03:10 +01:00
virdbus.h The policy kit and HAL node device drivers both require a 2012-04-19 17:03:10 +01:00
virfile.c util: Fix deadlock in virLogReset 2012-06-08 10:09:54 +02:00
virfile.h util: Fix deadlock in virLogReset 2012-06-08 10:09:54 +02:00
virhash.c Implement virHashRemoveAll function 2012-04-19 10:21:43 -04:00
virhash.h Implement virHashRemoveAll function 2012-04-19 10:21:43 -04:00
virhashcode.c build: avoid gcc 4.7 warning about inlines 2012-02-06 20:06:37 -07:00
virhashcode.h util: Include stdint.h because of uint32_t 2012-01-26 19:14:01 +01:00
virkeycode-mapgen.py Fix keymap used to talk with QEMU 2011-08-26 14:18:57 +01:00
virkeycode.c Fix keymap used to talk with QEMU 2011-08-26 14:18:57 +01:00
virkeycode.h util: add virtkeycode module 2011-07-21 15:57:47 +08:00
virkeyfile.c Add a virKeyfilePtr object for parsing '.ini' files 2012-03-23 13:24:06 +00:00
virkeyfile.h Add a virKeyfilePtr object for parsing '.ini' files 2012-03-23 13:24:06 +00:00
virmacaddr.c build: avoid strtol and strtod 2012-04-19 17:42:53 -06:00
virmacaddr.h Introduce virMacAddr typedef 2012-05-29 06:25:59 -04:00
virnetdev.c util: set src_pid for virNetlinkCommand when appropriate 2012-05-07 14:26:10 -04:00
virnetdev.h util: set src_pid for virNetlinkCommand when appropriate 2012-05-07 14:26:10 -04:00
virnetdevbandwidth.c bandwidth: Fix funky identation 2011-11-29 14:26:14 +01:00
virnetdevbandwidth.h Split src/util/network.{c,h} into 5 pieces 2011-11-15 10:27:54 +00:00
virnetdevbridge.c bridge: Fix forward delay APIs 2011-12-09 13:57:45 +01:00
virnetdevbridge.h Split bridge.h into three separate files 2011-11-09 16:34:25 +00:00
virnetdevmacvlan.c util: allow specifying both src and dst pid in virNetlinkCommand 2012-05-07 14:25:48 -04:00
virnetdevmacvlan.h util: fix crash when starting macvtap interfaces 2012-04-25 20:55:26 -04:00
virnetdevopenvswitch.c util: log error on OOM in virNetDevOpenvswitchAddPort 2012-03-08 14:44:24 -05:00
virnetdevopenvswitch.h Attach vm-id to Open vSwitch interfaces. 2012-03-08 14:44:15 -05:00
virnetdevtap.c util: Avoid libvirtd crash in virNetDevTapCreate 2012-04-30 11:49:01 -06:00
virnetdevtap.h Attach vm-id to Open vSwitch interfaces. 2012-03-08 14:44:15 -05:00
virnetdevveth.c Move LXC veth.c code into shared utility APIs 2011-11-15 10:28:02 +00:00
virnetdevveth.h Move LXC veth.c code into shared utility APIs 2011-11-15 10:28:02 +00:00
virnetdevvportprofile.c util: set src_pid for virNetlinkCommand when appropriate 2012-05-07 14:26:10 -04:00
virnetdevvportprofile.h util: Changes to support portprofiles for hostdevs 2012-03-06 06:03:57 -05:00
virnetlink.c Add stub impl of virNetlinkEventServiceLocalPid for Win32 2012-05-24 13:18:01 +01:00
virnetlink.h build: fix virnetlink on glibc 2.11 2012-05-18 09:42:25 -06:00
virnodesuspend.c Don't mark suspend as active until we know it is running 2011-11-30 10:12:30 +00:00
virnodesuspend.h Move suspend capabilities APIs out of util.h into virnodesuspend.c 2011-11-30 10:12:29 +00:00
virpidfile.c build: update pid_t type static check 2012-05-02 12:50:00 -06:00
virpidfile.h Add some APIs which use locking for crashsafe pidfile handling 2011-08-12 20:37:00 +01:00
virrandom.c util: remove unneeded #include in virrandom.c 2012-03-01 12:44:12 -05:00
virrandom.h npiv: Auto-generate WWN if it's not specified 2012-02-10 12:53:25 +08:00
virsocketaddr.c Add new functions to virSocketAddr 2012-04-25 09:53:29 -04:00
virsocketaddr.h Add new functions to virSocketAddr 2012-04-25 09:53:29 -04:00
virterror_internal.h Santize the reporting of VIR_ERR_INVALID_ERROR 2012-05-28 16:47:25 +01:00
virterror.c Add sentinel for virErrorDomain enum 2012-05-24 16:20:55 +01:00
virtime.c Don't use undocumented __isleap macro 2011-12-01 13:28:44 +00:00
virtime.h Add internal APIs for dealing with time 2011-11-30 11:43:49 +00:00
virtypedparam.c maint: enforce use of _LAST marker 2012-01-20 16:16:04 -07:00
virtypedparam.h cpustats: report user and sys times 2012-03-12 08:46:56 -06:00
viruri.c virURIParse: don't forget to copy the user part 2012-04-06 11:26:52 +08:00
viruri.h Store parsed query parameters directly in the virURIPtr struct 2012-03-23 13:23:12 +00:00
xml.c conf: tighten up XML integer parsing 2012-04-19 17:42:53 -06:00
xml.h build: fix build with older libxml2 2011-12-08 11:37:24 +08:00