diff --git a/libs/synapse.h b/libs/synapse.h index c400e8e..bd177a5 100644 --- a/libs/synapse.h +++ b/libs/synapse.h @@ -307,8 +307,8 @@ public: CSynapseClient(); virtual ~CSynapseClient(); -int GetAPICount(); ///< returns the number of APIs that this module provides -APIDescriptor_t* GetAPIDescriptor( int ); ///< retrieve specific information about on of the APIs +int GetAPICount() const; ///< returns the number of APIs that this module provides +APIDescriptor_t* GetAPIDescriptor( int ) const; ///< retrieve specific information about on of the APIs /*! Add the API to the CSynapseClient information diff --git a/libs/synapse/synapse.cpp b/libs/synapse/synapse.cpp index ff7d787..48a6c4a 100644 --- a/libs/synapse/synapse.cpp +++ b/libs/synapse/synapse.cpp @@ -816,11 +816,11 @@ CSynapseClient::~CSynapseClient(){ Shutdown(); } -int CSynapseClient::GetAPICount(){ +int CSynapseClient::GetAPICount() const { return mAPIDescriptors.size(); } -APIDescriptor_t* CSynapseClient::GetAPIDescriptor( int i ){ +APIDescriptor_t* CSynapseClient::GetAPIDescriptor( int i ) const { return mAPIDescriptors[i]; }