Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fwsetup-ng.git;a=commitdiff;h=051012d6e071c39fb196807a41612683fcab6576

commit 051012d6e071c39fb196807a41612683fcab6576
Author: James Buren <[email protected]>
Date:   Mon Aug 27 00:54:30 2012 -0500

expose APIs in Device for retrieving individual partitions

diff --git a/Device.hh b/Device.hh
index 7d3ae69..e12ce37 100644
--- a/Device.hh
+++ b/Device.hh
@@ -17,6 +17,8 @@ public:
bool read(const string &path);
bool write();
string getLabelType() { return (_table != 0) ? _table->getLabelType() : 
"unknown"; }
+  size_t getTableSize() { return (_table != 0) ? _table->getTableSize() : 0; }
+  Partition *getPartition(size_t n) { return (_table != 0) ? 
_table->getPartition(n) : 0; }
void newPartitionTable(const string &label);
Partition *newPartition(unsigned long long size);
void deleteLastPartition();
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to