Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
mhwd
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
30
Issues
30
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
2
Merge Requests
2
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Applications
mhwd
Commits
7e1a7f87
Commit
7e1a7f87
authored
Apr 07, 2015
by
Łukasz Matysiak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code style
parent
a80f7334
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
14 deletions
+18
-14
src/Config.cpp
src/Config.cpp
+3
-4
src/Data.cpp
src/Data.cpp
+2
-2
src/Data.hpp
src/Data.hpp
+5
-3
src/Mhwd.cpp
src/Mhwd.cpp
+2
-1
src/Printer.cpp
src/Printer.cpp
+2
-2
src/Printer.hpp
src/Printer.hpp
+2
-0
src/main.cpp
src/main.cpp
+2
-2
No files found.
src/Config.cpp
View file @
7e1a7f87
...
...
@@ -22,17 +22,16 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "Config.hpp"
#include <fstream>
#include <string>
#include <vector>
#include "Config.hpp"
Config
::
Config
(
std
::
string
configPath
,
std
::
string
type
)
:
type_
(
type
),
basePath_
(
configPath
.
substr
(
0
,
configPath
.
find_last_of
(
'/'
))),
configPath_
(
configPath
),
hwdIDs_
(
1
)
{
}
{}
bool
Config
::
readConfigFile
(
std
::
string
configPath
)
{
...
...
src/Data.cpp
View file @
7e1a7f87
...
...
@@ -22,6 +22,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "Data.hpp"
#include <dirent.h>
#include <algorithm>
...
...
@@ -31,8 +33,6 @@
#include <string>
#include <vector>
#include "Data.hpp"
Data
::
Data
()
{
fillDevices
(
hw_pci
,
PCIDevices
);
...
...
src/Data.hpp
View file @
7e1a7f87
...
...
@@ -34,16 +34,18 @@
#include <vector>
#include "Config.hpp"
#include "Device.hpp"
#include "const.h"
#include "Device.hpp"
#include "vita/string.hpp"
class
Data
{
class
Data
{
public:
Data
();
~
Data
()
=
default
;
struct
Environment
{
struct
Environment
{
std
::
string
PMCachePath
{
MHWD_PM_CACHE_DIR
};
std
::
string
PMConfigPath
{
MHWD_PM_CONFIG
};
std
::
string
PMRootPath
{
MHWD_PM_ROOT
};
...
...
src/Mhwd.cpp
View file @
7e1a7f87
...
...
@@ -23,7 +23,6 @@
*/
#include "Mhwd.hpp"
#include "vita/string.hpp"
#include <unistd.h>
#include <sys/stat.h>
...
...
@@ -42,6 +41,8 @@
#include <string>
#include <vector>
#include "vita/string.hpp"
bool
Mhwd
::
performTransaction
(
std
::
shared_ptr
<
Config
>
config
,
MHWD
::
TRANSACTIONTYPE
transactionType
)
{
Transaction
transaction
(
data_
,
config
,
transactionType
,
...
...
src/Printer.cpp
View file @
7e1a7f87
...
...
@@ -22,6 +22,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "Printer.hpp"
#include <hd.h>
#include <iomanip>
...
...
@@ -30,8 +32,6 @@
#include <string>
#include <vector>
#include "Printer.hpp"
void
Printer
::
printStatus
(
std
::
string
statusMsg
)
const
{
std
::
cout
<<
CONSOLE_RED_MESSAGE_COLOR
<<
"> "
...
...
src/Printer.hpp
View file @
7e1a7f87
...
...
@@ -25,6 +25,8 @@
#ifndef PRINTER_HPP_
#define PRINTER_HPP_
#include <hd.h>
#include <string>
#include <vector>
...
...
src/main.cpp
View file @
7e1a7f87
...
...
@@ -22,10 +22,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "Mhwd.hpp"
#include <iostream>
#include "Mhwd.hpp"
int
main
(
int
argc
,
char
*
argv
[])
{
try
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment