Fixed failing FreeRTOS target due to recent code refactors
Signed-off-by: Thijs Sassen <thijs.sassen@adlinktech.com> Adjusted the close methode not to expand by the lwip close macro and added a check for DDSI_INCLUDE_SSM to match the correct pid table size. Signed-off-by: Thijs Sassen <thijs.sassen@adlinktech.com>
This commit is contained in:
		
							parent
							
								
									ee9a12b469
								
							
						
					
					
						commit
						2fe4a4ca35
					
				
					 9 changed files with 34 additions and 29 deletions
				
			
		| 
						 | 
				
			
			@ -173,8 +173,9 @@ dds_return_t dds_entity_deriver_dummy_delete (struct dds_entity *e);
 | 
			
		|||
dds_return_t dds_entity_deriver_dummy_set_qos (struct dds_entity *e, const dds_qos_t *qos, bool enabled);
 | 
			
		||||
dds_return_t dds_entity_deriver_dummy_validate_status (uint32_t mask);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
inline dds_return_t dds_entity_deriver_close (struct dds_entity *e) {
 | 
			
		||||
  return dds_entity_deriver_table[e->m_kind]->close (e);
 | 
			
		||||
  return (dds_entity_deriver_table[e->m_kind]->close) (e);
 | 
			
		||||
}
 | 
			
		||||
inline dds_return_t dds_entity_deriver_delete (struct dds_entity *e) {
 | 
			
		||||
  return dds_entity_deriver_table[e->m_kind]->delete (e);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -18,7 +18,7 @@
 | 
			
		|||
extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
struct whc *whc_new (int is_transient_local, unsigned hdepth, unsigned tldepth);
 | 
			
		||||
struct whc *whc_new (int is_transient_local, uint32_t hdepth, uint32_t tldepth);
 | 
			
		||||
 | 
			
		||||
#if defined (__cplusplus)
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -73,8 +73,8 @@ typedef void (*whc_free_t)(struct whc *whc);
 | 
			
		|||
/* max_drop_seq must go soon, it's way too ugly. */
 | 
			
		||||
/* plist may be NULL or ddsrt_malloc'd, WHC takes ownership of plist */
 | 
			
		||||
typedef int (*whc_insert_t)(struct whc *whc, seqno_t max_drop_seq, seqno_t seq, struct nn_plist *plist, struct ddsi_serdata *serdata, struct ddsi_tkmap_instance *tk);
 | 
			
		||||
typedef unsigned (*whc_downgrade_to_volatile_t)(struct whc *whc, struct whc_state *st);
 | 
			
		||||
typedef unsigned (*whc_remove_acked_messages_t)(struct whc *whc, seqno_t max_drop_seq, struct whc_state *whcst, struct whc_node **deferred_free_list);
 | 
			
		||||
typedef uint32_t (*whc_downgrade_to_volatile_t)(struct whc *whc, struct whc_state *st);
 | 
			
		||||
typedef uint32_t (*whc_remove_acked_messages_t)(struct whc *whc, seqno_t max_drop_seq, struct whc_state *whcst, struct whc_node **deferred_free_list);
 | 
			
		||||
typedef void (*whc_free_deferred_free_list_t)(struct whc *whc, struct whc_node *deferred_free_list);
 | 
			
		||||
 | 
			
		||||
struct whc_ops {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -295,7 +295,7 @@ static void debug_print_rawdata (const char *msg, const void *data, size_t len)
 | 
			
		|||
  DDS_TRACE(">");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void handle_PMD (UNUSED_ARG (const struct receiver_state *rst), nn_wctime_t timestamp, unsigned statusinfo, const void *vdata, uint32_t len)
 | 
			
		||||
void handle_PMD (UNUSED_ARG (const struct receiver_state *rst), nn_wctime_t timestamp, uint32_t statusinfo, const void *vdata, uint32_t len)
 | 
			
		||||
{
 | 
			
		||||
  const struct CDRHeader *data = vdata; /* built-ins not deserialized (yet) */
 | 
			
		||||
  const int bswap = (data->identifier == CDR_LE) ^ (DDSRT_ENDIAN == DDSRT_LITTLE_ENDIAN);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1106,7 +1106,11 @@ struct piddesc_index {
 | 
			
		|||
   Sizes are such that the highest PID (without flags) in
 | 
			
		||||
   table are the last entry in the array.  Checked by
 | 
			
		||||
   nn_plist_init_tables. */
 | 
			
		||||
#ifdef DDSI_INCLUDE_SSM
 | 
			
		||||
static const struct piddesc *piddesc_omg_index[115];
 | 
			
		||||
#else
 | 
			
		||||
static const struct piddesc *piddesc_omg_index[114];
 | 
			
		||||
#endif
 | 
			
		||||
static const struct piddesc *piddesc_eclipse_index[19];
 | 
			
		||||
static const struct piddesc *piddesc_prismtech_index[19];
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue