summaryrefslogtreecommitdiffstats
path: root/fru_area.hpp
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2018-10-20 20:59:07 -0700
committerPatrick Venture <venture@google.com>2018-10-29 09:07:39 -0700
commitf22b36a061e4713c75233a68a86b81ed25d1e6a3 (patch)
treeff7c45a83a2624365d6466e98ef30ba2c61797c8 /fru_area.hpp
parent524ba9c1bd349141c79f213c56afc3b25f699593 (diff)
downloadipmi-fru-parser-f22b36a061e4713c75233a68a86b81ed25d1e6a3.tar.gz
ipmi-fru-parser-f22b36a061e4713c75233a68a86b81ed25d1e6a3.zip
IPMIFruArea: apply naming convention to member functions
Apply naming convention to member functions. Change-Id: I3b0516592dd4225f7be43c3d9cdcc9c8853d20b7 Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'fru_area.hpp')
-rw-r--r--fru_area.hpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/fru_area.hpp b/fru_area.hpp
index 8cb9c00..7b10347 100644
--- a/fru_area.hpp
+++ b/fru_area.hpp
@@ -22,64 +22,64 @@ class IPMIFruArea
virtual ~IPMIFruArea();
// Sets the present bit
- inline void set_present(const bool present)
+ inline void setPresent(const bool present)
{
isPresent = present;
}
// returns fru id;
- uint8_t get_fruid() const
+ uint8_t getFruID() const
{
return fruid;
}
// Returns the length.
- size_t get_len() const
+ size_t getLength() const
{
return len;
}
// Returns the type of the current fru area
- ipmi_fru_area_type get_type() const
+ ipmi_fru_area_type getType() const
{
return type;
}
// Returns the name
- const char* get_name() const
+ const char* getName() const
{
return name.c_str();
}
// Returns SD bus name
- const char* get_bus_name() const
+ const char* getBusName() const
{
return bus_name.c_str();
}
// Retrns SD bus object path
- const char* get_obj_path() const
+ const char* getObjectPath() const
{
return obj_path.c_str();
}
// Returns SD bus interface name
- const char* get_intf_name() const
+ const char* getInterfaceName() const
{
return intf_name.c_str();
}
// Returns the data portion
- inline uint8_t* get_data() const
+ inline uint8_t* getData() const
{
return data;
}
// Accepts a pointer to data and sets it in the object.
- void set_data(const uint8_t*, const size_t);
+ void setData(const uint8_t*, const size_t);
// Sets the dbus parameters
- void update_dbus_paths(const char*, const char*, const char*);
+ void updateDbusPaths(const char*, const char*, const char*);
private:
// Unique way of identifying a FRU
OpenPOWER on IntegriCloud