aboutsummaryrefslogtreecommitdiff
path: root/daemon/SessionXML.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/SessionXML.cpp')
-rw-r--r--daemon/SessionXML.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/daemon/SessionXML.cpp b/daemon/SessionXML.cpp
index b2b6c30..0a0a027 100644
--- a/daemon/SessionXML.cpp
+++ b/daemon/SessionXML.cpp
@@ -1,5 +1,5 @@
/**
- * Copyright (C) ARM Limited 2010-2012. All rights reserved.
+ * Copyright (C) ARM Limited 2010-2013. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
@@ -12,6 +12,7 @@
#include "SessionXML.h"
#include "Logging.h"
#include "OlyUtility.h"
+#include "SessionData.h"
static const char* TAG_SESSION = "session";
static const char* TAG_IMAGE = "image";
@@ -22,12 +23,14 @@ static const char* ATTR_BUFFER_MODE = "buffer_mode";
static const char* ATTR_SAMPLE_RATE = "sample_rate";
static const char* ATTR_DURATION = "duration";
static const char* ATTR_PATH = "path";
+static const char* ATTR_LIVE_RATE = "live_rate";
SessionXML::SessionXML(const char* str) {
parameters.buffer_mode[0] = 0;
parameters.sample_rate[0] = 0;
parameters.duration = 0;
parameters.call_stack_unwinding = false;
+ parameters.live_rate = 0;
parameters.images = NULL;
mPath = 0;
mSessionXML = (char*)str;
@@ -78,6 +81,7 @@ void SessionXML::sessionTag(mxml_node_t *tree, mxml_node_t *node) {
// integers/bools
parameters.call_stack_unwinding = util->stringToBool(mxmlElementGetAttr(node, ATTR_CALL_STACK_UNWINDING), false);
if (mxmlElementGetAttr(node, ATTR_DURATION)) parameters.duration = strtol(mxmlElementGetAttr(node, ATTR_DURATION), NULL, 10);
+ if (mxmlElementGetAttr(node, ATTR_LIVE_RATE)) parameters.live_rate = strtol(mxmlElementGetAttr(node, ATTR_LIVE_RATE), NULL, 10);
// parse subtags
node = mxmlGetFirstChild(node);