Skip to content

Commit

Permalink
Rename IOX_CLASS -> IOX_C_CLASS
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebentley15 committed Aug 22, 2024
1 parent 387828f commit edc7718
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion iceoryx_binding_c/include/iceoryx_binding_c/client.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "iceoryx_binding_c/types.h"

/// @brief client handle
typedef IOX_CLASS UntypedClient* iox_client_t;
typedef IOX_C_CLASS UntypedClient* iox_client_t;

/// @brief options to be set for a client
typedef struct
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@

#include <cstdint>

#define IOX_CLASS class
#define IOX_C_CLASS class

#else

#include <stdbool.h>
#include <stdint.h>

#define IOX_CLASS struct
#define IOX_C_CLASS struct

#endif

Expand Down
2 changes: 1 addition & 1 deletion iceoryx_binding_c/include/iceoryx_binding_c/listener.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "iceoryx_binding_c/types.h"
#include "iceoryx_binding_c/user_trigger.h"

typedef IOX_CLASS Listener* iox_listener_t;
typedef IOX_C_CLASS Listener* iox_listener_t;


/// @brief initializes a listener struct from a storage struct pointer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "iceoryx_binding_c/user_trigger.h"

/// @brief notification info handle
typedef const IOX_CLASS NotificationInfo* iox_notification_info_t;
typedef const IOX_C_CLASS NotificationInfo* iox_notification_info_t;

/// @brief returns the id of the notification
/// @param[in] self handle to notification info
Expand Down
4 changes: 2 additions & 2 deletions iceoryx_binding_c/include/iceoryx_binding_c/request_header.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
#include "iceoryx_binding_c/internal/c2cpp_binding.h"

/// @brief request header handle
typedef IOX_CLASS RequestHeader* iox_request_header_t;
typedef IOX_C_CLASS RequestHeader* iox_request_header_t;

/// @brief const request header handle
typedef const IOX_CLASS RequestHeader* iox_const_request_header_t;
typedef const IOX_C_CLASS RequestHeader* iox_const_request_header_t;

/// @brief extract the request header from a given payload
/// @param[in] payload the pointer to the payload
Expand Down
4 changes: 2 additions & 2 deletions iceoryx_binding_c/include/iceoryx_binding_c/response_header.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
#include "iceoryx_binding_c/internal/c2cpp_binding.h"

/// @brief response header handle
typedef IOX_CLASS ResponseHeader* iox_response_header_t;
typedef IOX_C_CLASS ResponseHeader* iox_response_header_t;

/// @brief const response header handle
typedef const IOX_CLASS ResponseHeader* iox_const_response_header_t;
typedef const IOX_C_CLASS ResponseHeader* iox_const_response_header_t;

/// @brief extract the response header from a given payload
/// @param[in] payload the pointer to the payload
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_binding_c/include/iceoryx_binding_c/server.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "iceoryx_binding_c/types.h"

/// @brief server handle
typedef IOX_CLASS UntypedServer* iox_server_t;
typedef IOX_C_CLASS UntypedServer* iox_server_t;

/// @brief options to be set for a server
typedef struct
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "service_description.h"

/// @brief service discovery handle
typedef IOX_CLASS ServiceDiscovery* iox_service_discovery_t;
typedef IOX_C_CLASS ServiceDiscovery* iox_service_discovery_t;

/// @brief initializes a service discovery from a storage struct pointer
/// @param[in] self pointer to raw memory which can hold a service discovery
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_binding_c/include/iceoryx_binding_c/user_trigger.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "iceoryx_binding_c/types.h"

/// @brief user trigger handle
typedef IOX_CLASS UserTrigger* iox_user_trigger_t;
typedef IOX_C_CLASS UserTrigger* iox_user_trigger_t;

/// @brief initialize user trigger handle
/// @param[in] self pointer to preallocated memory of size = sizeof(iox_user_trigger_storage_t)
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_binding_c/include/iceoryx_binding_c/wait_set.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <time.h>

/// @brief wait set handle
typedef IOX_CLASS cpp2c_WaitSet* iox_ws_t;
typedef IOX_C_CLASS cpp2c_WaitSet* iox_ws_t;

/// @brief initialize wait set handle
/// @param[in] self pointer to preallocated memory of size = sizeof(iox_ws_storage_t)
Expand Down

0 comments on commit edc7718

Please sign in to comment.