glaveSnapshot: snapshot now does deep copy of DEVICE_CREATE_INFO struct.
authorPeter Lohrmann <peterl@valvesoftware.com>
Wed, 1 Apr 2015 20:54:18 +0000 (13:54 -0700)
committerPeter Lohrmann <peterl@valvesoftware.com>
Wed, 1 Apr 2015 22:44:31 +0000 (15:44 -0700)
commit7494f89ade20c74b32bdc73896c2a3975c29adfc
tree0a92b8c6ae3fc699af04649db308217cc64834be
parentaf44b45d6aa21471419aea2f2ca3be90b4604397
glaveSnapshot: snapshot now does deep copy of DEVICE_CREATE_INFO struct.

* Add new local methods to do a deep copy of the DEVICE_CREATE_INFO struct. A similar method is added to do a deep free of the struct. This is just to experiment with what will be needed to support all the Create* entrypoints; most of this should be code-gen'ed later on.
* The CreateInfo struct is now also printed as part of glvSnapshotPrintDelta to confirm that it is working via the UI. Note the helper function I'm using to print the struct will only print the first layer in the list. It doesn't support printing > 1 layer.
layers/glave_snapshot.c
layers/glave_snapshot.h