I want a process to expose a structure of a message, so it can be used by other processes receiving it. However, this structure includes types of arguments which are defined in other header files, which themselves include a bunch of other header files.
typedef struct sfp_info_s {
int port;
char platform_id[50];
sff_eeprom_t sff_type;
char status_str[50];
sff_dom_t sff_dom;
}sfp_info_t;
sff_eeprom_t is defined in a header file named : sff_db.h and this file itself includes other files :
#ifndef __SFF_SFF_H__
#define __SFF_SFF_H__
#include <sff/sff_config.h>
#include <AIM/aim_pvs.h>
#include <dependmodules.x>
What is the best way to create this API without the mess of including all these files in all the processes which need to know only the structure of the message?