]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/arm-ds5-gator.git/blob - daemon/SessionXML.h
gator-driver: Revert #error about lack of CONFIG_PERF_EVENTS
[android-sdk/arm-ds5-gator.git] / daemon / SessionXML.h
1 /**
2  * Copyright (C) ARM Limited 2010-2012. All rights reserved.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  */
9 #ifndef SESSION_XML_H
10 #define SESSION_XML_H
12 #include "mxml/mxml.h"
13 #include "SessionData.h"
15 struct ConfigParameters {
16         char buffer_mode[64];   // buffer mode, "streaming", "low", "normal", "high" defines oneshot and buffer size
17         char sample_rate[64];   // capture mode, "high", "normal", or "low"
18         int duration;           // length of profile in seconds
19         bool call_stack_unwinding;      // whether stack unwinding is performed
20         struct ImageLinkList *images;   // linked list of image strings
21 };
23 class SessionXML {
24 public:
25         SessionXML(const char* str);
26         ~SessionXML();
27         void parse();
28         ConfigParameters parameters;
29 private:
30         char*  mSessionXML;
31         char*  mPath;
32         void sessionTag(mxml_node_t *tree, mxml_node_t *node);
33         void sessionImage(mxml_node_t *node);
34 };
36 #endif // SESSION_XML_H