Q: use of enum in struct dtv_frontend_properties

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am adding DTMB support (again) for DVB API. There is new parameter interleaving needed. Currently it has 3 values. I defined it as a enum as typedef enum is not allowed anymore in Kernel.

Should I define it as (enum fe_interleaving) or (u8) in struct dtv_frontend_properties?

enum fe_interleaving {
	INTERLEAVING_NONE,
	INTERLEAVING_240,
	INTERLEAVING_720,
};

struct dtv_frontend_properties {
	enum fe_interleaving    interleaving;
};

*** OR ***:

struct dtv_frontend_properties {
	u8    interleaving;
};



regards
Antti



--
http://palosaari.fi/

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux