Make it clear whcih member s are internal and external

This commit is contained in:
Nils O. Selåsdal
2013-01-21 23:11:13 +01:00
parent 4c21413df3
commit b378b205c9
+3 -1
View File
@@ -22,7 +22,7 @@ enum {
typedef void (*uc_timer_cb)(struct UCTimers *timers, struct UCTimer *timer); typedef void (*uc_timer_cb)(struct UCTimers *timers, struct UCTimer *timer);
struct UCTimer { struct UCTimer {
//internal members //Internal members
RBNode rb_node; //the RBNode will hold a data pointer to the RBNode rb_node; //the RBNode will hold a data pointer to the
//the UCTimer it's a member of. We might get rid of that member, and use CONTAINER_OF //the UCTimer it's a member of. We might get rid of that member, and use CONTAINER_OF
//to find the UCTimer from a RBNode //to find the UCTimer from a RBNode
@@ -34,6 +34,8 @@ struct UCTimer {
unsigned char state; unsigned char state;
TAILQ_ENTRY(UCTimer) ready_entry; //entry in ready_list in UCTimers TAILQ_ENTRY(UCTimer) ready_entry; //entry in ready_list in UCTimers
//External members
//callback function //callback function
uc_timer_cb callback; uc_timer_cb callback;