Code format fixes

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2016-02-19 16:59:42 +01:00
committed by Julian Oes
parent d6a99c79c1
commit 5846a22a8f
11 changed files with 284 additions and 238 deletions
@@ -50,7 +50,7 @@ KraitRpcWrapper::~KraitRpcWrapper() {}
* Initiatizes the rpc channel px4 muorb
*/
bool KraitRpcWrapper::Initialize()
{
{
return (px4muorb_orb_initialize() == 0);
}
@@ -31,41 +31,41 @@
namespace px4muorb
{
class KraitRpcWrapper;
class KraitRpcWrapper;
}
class px4muorb::KraitRpcWrapper
{
public:
/**
* Constructor
*/
KraitRpcWrapper();
/**
* destructor
*/
~KraitRpcWrapper();
/**
* Constructor
*/
KraitRpcWrapper();
/**
* Initiatizes the rpc channel px4 muorb
*/
bool Initialize();
/**
* destructor
*/
~KraitRpcWrapper();
/**
* Terminate to clean up the resources. This should be called at program exit
*/
bool Terminate();
/**
* Initiatizes the rpc channel px4 muorb
*/
bool Initialize();
/**
* Muorb related functions to pub/sub of orb topic from krait to adsp
*/
int32_t AddSubscriber( const char* topic );
int32_t RemoveSubscriber( const char* topic );
int32_t SendData( const char* topic, int32_t length_in_bytes, const uint8_t* data );
int32_t ReceiveData( int32_t* msg_type, char** topic, int32_t* length_in_bytes, uint8_t** data );
int32_t IsSubscriberPresent( const char* topic, int32_t* status );
int32_t ReceiveBulkData( uint8_t** bulk_data, int32_t* length_in_bytes, int32_t* topic_count );
int32_t UnblockReceiveData();
/**
* Terminate to clean up the resources. This should be called at program exit
*/
bool Terminate();
/**
* Muorb related functions to pub/sub of orb topic from krait to adsp
*/
int32_t AddSubscriber(const char *topic);
int32_t RemoveSubscriber(const char *topic);
int32_t SendData(const char *topic, int32_t length_in_bytes, const uint8_t *data);
int32_t ReceiveData(int32_t *msg_type, char **topic, int32_t *length_in_bytes, uint8_t **data);
int32_t IsSubscriberPresent(const char *topic, int32_t *status);
int32_t ReceiveBulkData(uint8_t **bulk_data, int32_t *length_in_bytes, int32_t *topic_count);
int32_t UnblockReceiveData();
};
#endif // _px4muorb_KraitWrapper_hpp_