Browse Source

Packed union to save more space

sbg
David Sidrane 8 years ago committed by Lorenz Meier
parent
commit
ecbe8c2179
  1. 3
      src/modules/dataman/dataman.h

3
src/modules/dataman/dataman.h

@ -107,15 +107,18 @@ typedef enum { @@ -107,15 +107,18 @@ typedef enum {
* defined by adding the structure type to the union below
*/
#pragma pack(push, 1)
typedef union dataman_max_size_t {
struct mission_item_s mission_item;
struct mission_s mission;
struct fence_vertex_s vertex;
} dataman_max_size_t;
#pragma pack(pop)
#define DM_MAX_DATA_SIZE sizeof(dataman_max_size_t)
/** Retrieve from the data manager store */
__EXPORT ssize_t
dm_read(

Loading…
Cancel
Save