Re: Network Manager reason codes



On Thursday 10 of February 2011 22:42:49 Byte Soup wrote:
> > 
> > You can find the reason codes in
> > 
> > http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/include/Ne
> > tworkManager.h?id=2dbaab2221c092e1cb1855b14419964b4b8a04fc#n235
> 
> Sorry, I dont really understand the code that well, can I assume that the
> "enum" means we take each line as the next reason code? (see my comments
> below)
> 
> typedef enum {
> 	/* No reason given */
> 	NM_DEVICE_STATE_REASON_NONE = 0,
> 
> 	/* Unknown error */
> 	NM_DEVICE_STATE_REASON_UNKNOWN, <<-- reason code 1?
> 
> 	/* Device is now managed */
> 	NM_DEVICE_STATE_REASON_NOW_MANAGED, <<-- reason code 2?
> 
> Thanks

 Yup, exactly.


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