-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[core] registration specific functions moved from Util:: to Registrat…
…ion:: (#1700) * registration specific functions moved from Util:: to Registration::
- Loading branch information
1 parent
2b2e4d7
commit ab0870c
Showing
26 changed files
with
1,266 additions
and
1,074 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,176 @@ | ||
/* ========================= eCAL LICENSE ================================= | ||
* | ||
* Copyright (C) 2016 - 2024 Continental Corporation | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* ========================= eCAL LICENSE ================================= | ||
*/ | ||
|
||
/** | ||
* @file ecal_registration_cimpl.h | ||
* @brief eCAL registration c interface | ||
**/ | ||
|
||
#ifndef ecal_registration_cimpl_h_included | ||
#define ecal_registration_cimpl_h_included | ||
|
||
#include <ecal/ecal_os.h> | ||
#include <ecal/ecalc_types.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" | ||
{ | ||
#endif /*__cplusplus*/ | ||
/** | ||
* @brief Gets type name of the specified topic. | ||
* | ||
* @param topic_name_ Topic name. | ||
* @param [out] topic_type_ Pointer to store the type name information. | ||
* @param topic_type_len_ Length of allocated buffer or ECAL_ALLOCATE_4ME if | ||
* eCAL should allocate the buffer for you (see eCAL_FreeMem). | ||
* | ||
* @return Type name buffer length or zero if failed. | ||
**/ | ||
ECALC_API int eCAL_Registration_GetTopicTypeName(const char* topic_name_, void* topic_type_, int topic_type_len_); | ||
|
||
/** | ||
* @brief Gets encoding of the specified topic. | ||
* | ||
* @param topic_name_ Topic name. | ||
* @param [out] topic_encoding_ Pointer to store the encoding information. | ||
* @param topic_encoding__len_ Length of allocated buffer or ECAL_ALLOCATE_4ME if | ||
* eCAL should allocate the buffer for you (see eCAL_FreeMem). | ||
* | ||
* @return Type name buffer length or zero if failed. | ||
**/ | ||
ECALC_API int eCAL_Registration_GetTopicEncoding(const char* topic_name_, void* topic_encoding_, int topic_encoding_len_); | ||
|
||
/** | ||
* @brief Gets type description of the specified topic. | ||
* | ||
* @param topic_name_ Topic name. | ||
* @param [out] topic_desc_ Pointer to store the type description0 information. | ||
* @param topic_desc_len_ Length of allocated buffer or ECAL_ALLOCATE_4ME if | ||
* eCAL should allocate the buffer for you (see eCAL_FreeMem). | ||
* | ||
* @return Type name buffer length or zero if failed. | ||
**/ | ||
ECALC_API int eCAL_Registration_GetTopicDescription(const char* topic_name_, void* topic_desc_, int topic_desc_len_); | ||
|
||
/** | ||
* @brief Gets service method request type name. | ||
* | ||
* @param service_name_ Service name. | ||
* @param method_name_ Method name. | ||
* @param [out] req_type_ Pointer to store the request type. | ||
* @param req_type_len_ Length of allocated buffer or ECAL_ALLOCATE_4ME if | ||
* eCAL should allocate the buffer for you (see eCAL_FreeMem). | ||
* | ||
* @return Type name buffer length or zero if failed. | ||
**/ | ||
ECALC_API int eCAL_Registration_GetServiceRequestTypeName(const char* service_name_, const char* method_name_, void* req_type_, int req_type_len_); | ||
|
||
/** | ||
* @brief Gets service method response type name. | ||
* | ||
* @param service_name_ Service name. | ||
* @param method_name_ Method name. | ||
* @param [out] resp_type_ Pointer to store the response type. | ||
* @param resp_type_len_ Length of allocated buffer or ECAL_ALLOCATE_4ME if | ||
* | ||
* @return Type name buffer length or zero if failed. | ||
**/ | ||
ECALC_API int eCAL_Registration_GetServiceResponseTypeName(const char* service_name_, const char* method_name_, void* resp_type_, int resp_type_len_); | ||
|
||
/** | ||
* @brief Gets service method request description. | ||
* | ||
* @param service_name_ Service name. | ||
* @param method_name_ Method name. | ||
* @param [out] req_desc_ Pointer to store the request description. | ||
* @param req_desc_len_ Length of allocated buffer or ECAL_ALLOCATE_4ME if | ||
* eCAL should allocate the buffer for you (see eCAL_FreeMem). | ||
* | ||
* @return Request description buffer length or zero if failed. | ||
**/ | ||
ECALC_API int eCAL_Registration_GetServiceRequestDescription(const char* service_name_, const char* method_name_, void* req_desc_, int req_desc_len_); | ||
|
||
/** | ||
* @brief Gets service method response description. | ||
* | ||
* @param service_name_ Service name. | ||
* @param method_name_ Method name. | ||
* @param [out] resp_desc_ Pointer to store the response description. | ||
* @param resp_desc_len_ Length of allocated buffer or ECAL_ALLOCATE_4ME if | ||
* eCAL should allocate the buffer for you (see eCAL_FreeMem). | ||
* | ||
* @return Response description buffer length or zero if failed. | ||
**/ | ||
ECALC_API int eCAL_Registration_GetServiceResponseDescription(const char* service_name_, const char* method_name_, void* resp_desc_, int resp_desc_len_); | ||
|
||
/** | ||
* @brief Gets client method request type name. | ||
* | ||
* @param client_name_ Client name. | ||
* @param method_name_ Method name. | ||
* @param [out] req_type_ Pointer to store the request type. | ||
* @param req_type_len_ Length of allocated buffer or ECAL_ALLOCATE_4ME if | ||
* eCAL should allocate the buffer for you (see eCAL_FreeMem). | ||
* | ||
* @return Type name buffer length or zero if failed. | ||
**/ | ||
ECALC_API int eCAL_Registration_GetClientRequestTypeName(const char* client_name_, const char* method_name_, void* req_type_, int req_type_len_); | ||
|
||
/** | ||
* @brief Gets client method response type name. | ||
* | ||
* @param client_name_ Client name. | ||
* @param method_name_ Method name. | ||
* @param [out] resp_type_ Pointer to store the response type. | ||
* @param resp_type_len_ Length of allocated buffer or ECAL_ALLOCATE_4ME if | ||
* | ||
* @return Type name buffer length or zero if failed. | ||
**/ | ||
ECALC_API int eCAL_Registration_GetClientResponseTypeName(const char* client_name_, const char* method_name_, void* resp_type_, int resp_type_len_); | ||
|
||
/** | ||
* @brief Gets client method request description. | ||
* | ||
* @param client_name_ Client name. | ||
* @param method_name_ Method name. | ||
* @param [out] req_desc_ Pointer to store the request description. | ||
* @param req_desc_len_ Length of allocated buffer or ECAL_ALLOCATE_4ME if | ||
* eCAL should allocate the buffer for you (see eCAL_FreeMem). | ||
* | ||
* @return Request description buffer length or zero if failed. | ||
**/ | ||
ECALC_API int eCAL_Registration_GetClientRequestDescription(const char* client_name_, const char* method_name_, void* req_desc_, int req_desc_len_); | ||
|
||
/** | ||
* @brief Gets client method response description. | ||
* | ||
* @param client_name_ Client name. | ||
* @param method_name_ Method name. | ||
* @param [out] resp_desc_ Pointer to store the response description. | ||
* @param resp_desc_len_ Length of allocated buffer or ECAL_ALLOCATE_4ME if | ||
* eCAL should allocate the buffer for you (see eCAL_FreeMem). | ||
* | ||
* @return Response description buffer length or zero if failed. | ||
**/ | ||
ECALC_API int eCAL_Registration_GetClientResponseDescription(const char* client_name_, const char* method_name_, void* resp_desc_, int resp_desc_len_); | ||
#ifdef __cplusplus | ||
} | ||
#endif /*__cplusplus*/ | ||
|
||
#endif /*ecal_registration_cimpl_h_included*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.