Skip to content

Commit

Permalink
Tidy a header file
Browse files Browse the repository at this point in the history
(cherry picked from commit 2c2fdc7)
  • Loading branch information
peternewman committed Apr 21, 2024
1 parent f1d7d43 commit 8b45447
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
26 changes: 11 additions & 15 deletions include/ola/e133/E133StatusHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,20 @@
namespace ola {
namespace e133 {

using std::string;
using ola::acn::RPTStatusVector;
using ola::e133::E133StatusCode;
using ola::e133::E133ConnectStatusCode;
using ola::rdm::RDMStatusCode;
bool IntToStatusCode(uint16_t input, ola::e133::E133StatusCode *status_code);
std::string StatusCodeToString(ola::e133::E133StatusCode status_code);

bool IntToStatusCode(uint16_t input, E133StatusCode *status_code);
string StatusCodeToString(E133StatusCode status_code);

bool IntToConnectStatusCode(uint16_t input,
E133ConnectStatusCode *connect_status_code);
string ConnectStatusCodeToString(E133ConnectStatusCode connect_status_code);
bool IntToConnectStatusCode(
uint16_t input,
ola::e133::E133ConnectStatusCode *connect_status_code);
std::string ConnectStatusCodeToString(
E133ConnectStatusCode connect_status_code);

bool IntToRPTStatusCode(uint16_t input,
RPTStatusVector *rpt_status_code);
string RPTStatusCodeToString(RPTStatusVector rpt_status_code);
bool RPTStatusCodeToRDMStatusCode(RPTStatusVector rpt_status_code,
RDMStatusCode *rdm_status_code);
ala::acn::RPTStatusVector *rpt_status_code);
std::string RPTStatusCodeToString(ola::acn::RPTStatusVector rpt_status_code);
bool RPTStatusCodeToRDMStatusCode(ola::acn::RPTStatusVector rpt_status_code,
ola::rdm::RDMStatusCode *rdm_status_code);
} // namespace e133
} // namespace ola
#endif // INCLUDE_OLA_E133_E133STATUSHELPER_H_
4 changes: 4 additions & 0 deletions libs/acn/E133StatusHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ namespace ola {
namespace e133 {

using std::string;
using ola::acn::RPTStatusVector;
using ola::e133::E133StatusCode;
using ola::e133::E133ConnectStatusCode;
using ola::rdm::RDMStatusCode;

/**
* Verify that the int is a valid E1.33 Status Code.
Expand Down

0 comments on commit 8b45447

Please sign in to comment.