]> Git Repo - qemu.git/blobdiff - qga/guest-agent-command-state.c
tests: fw_cfg: add 'reboot-timeout' test case
[qemu.git] / qga / guest-agent-command-state.c
index 20b9b22224a5f4080b9a74770efbb20b0a34afe5..18bcb5941d51ddc99d389efccfdfd1c3f0cab4ff 100644 (file)
@@ -10,8 +10,7 @@
  * See the COPYING file in the top-level directory.
  */
 #include "qemu/osdep.h"
-#include <glib.h>
-#include "qga/guest-agent-core.h"
+#include "guest-agent-core.h"
 
 struct GACommandState {
     GSList *groups;
@@ -72,3 +71,9 @@ GACommandState *ga_command_state_new(void)
     cs->groups = NULL;
     return cs;
 }
+
+void ga_command_state_free(GACommandState *cs)
+{
+    g_slist_free_full(cs->groups, g_free);
+    g_free(cs);
+}
This page took 0.019905 seconds and 4 git commands to generate.