Skip to content

Commit

Permalink
Don't typedef in internal header (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
JanderJLR authored and magnusfeuer committed Oct 15, 2019
1 parent c66d18f commit 31152db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rmc_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ typedef struct rmc_connection_vector {


// A publisher single context.
typedef struct rmc_pub_context {
struct rmc_pub_context {
pub_context_t pub_ctx;

rmc_connection_vector_t conn_vec;
Expand Down Expand Up @@ -246,10 +246,10 @@ typedef struct rmc_pub_context {
user_data_t user_data);


} rmc_pub_context_t;
};

// A single subscriber context
typedef struct rmc_sub_context {
struct rmc_sub_context {
rmc_connection_vector_t conn_vec;

// Array of publishers maintained with the same index as conn_vec
Expand Down Expand Up @@ -371,7 +371,7 @@ typedef struct rmc_sub_context {
void (*payload_free)(void* payload,
payload_len_t payload_len,
user_data_t user_data);
} rmc_sub_context_t;
};

typedef struct rmc_conn_command_dispatch {
uint8_t command;
Expand Down

0 comments on commit 31152db

Please sign in to comment.